diff --git a/packages/google-cloud-dialogflow-cx/README.md b/packages/google-cloud-dialogflow-cx/README.md index 646be851653..c88d7cdabeb 100644 --- a/packages/google-cloud-dialogflow-cx/README.md +++ b/packages/google-cloud-dialogflow-cx/README.md @@ -186,7 +186,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Flows.validate_flow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.validate_flow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.validate_flow.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.create_intent | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.create_intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.create_intent.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.delete_intent | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.delete_intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.delete_intent.js,packages/google-cloud-dialogflow-cx/samples/README.md) | +| Intents.export_intents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.export_intents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.export_intents.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.get_intent | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.get_intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.get_intent.js,packages/google-cloud-dialogflow-cx/samples/README.md) | +| Intents.import_intents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.import_intents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.import_intents.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.list_intents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.list_intents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.list_intents.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.update_intent | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.update_intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.update_intent.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Pages.create_page | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.create_page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.create_page.js,packages/google-cloud-dialogflow-cx/samples/README.md) | @@ -285,7 +287,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Flows.validate_flow | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.validate_flow.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.validate_flow.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.create_intent | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.create_intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.create_intent.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.delete_intent | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.delete_intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.delete_intent.js,packages/google-cloud-dialogflow-cx/samples/README.md) | +| Intents.export_intents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.export_intents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.export_intents.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.get_intent | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.get_intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.get_intent.js,packages/google-cloud-dialogflow-cx/samples/README.md) | +| Intents.import_intents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.import_intents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.import_intents.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.list_intents | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.list_intents.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.list_intents.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Intents.update_intent | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.update_intent.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.update_intent.js,packages/google-cloud-dialogflow-cx/samples/README.md) | | Pages.create_page | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.create_page.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.create_page.js,packages/google-cloud-dialogflow-cx/samples/README.md) | diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto index a50433e44f3..5f8cb9194a7 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto @@ -40,6 +40,23 @@ option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; // // Hierarchy: Agent->Flow->Page->Fulfillment/Parameter. message AdvancedSettings { + // Define behaviors for DTMF (dual tone multi frequency). + message DtmfSettings { + // If true, incoming audio is processed for DTMF (dual tone multi frequency) + // events. For example, if the caller presses a button on their telephone + // keypad and DTMF processing is enabled, Dialogflow will detect the + // event (e.g. a "3" was pressed) in the incoming audio and pass the event + // to the bot to drive business logic (e.g. when 3 is pressed, return the + // account balance). + bool enabled = 1; + + // Max length of DTMF digits. + int32 max_digits = 2; + + // The digit that terminates a DTMF digit sequence. + string finish_digit = 3; + } + // Define behaviors on logging. message LoggingSettings { // If true, StackDriver logging is currently enabled. @@ -56,6 +73,14 @@ message AdvancedSettings { // - Flow level GcsDestination audio_export_gcs_destination = 2; + // Settings for DTMF. + // Exposed at the following levels: + // - Agent level + // - Flow level + // - Page level + // - Parameter level. + DtmfSettings dtmf_settings = 5; + // Settings for logging. // Settings for Dialogflow History, Contact Center messages, StackDriver logs, // and speech logging. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/flow.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/flow.proto index 24706eb90a2..11c861b674e 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/flow.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/flow.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/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/import_strategy.proto"; import "google/cloud/dialogflow/cx/v3/page.proto"; import "google/cloud/dialogflow/cx/v3/validation_message.proto"; @@ -321,6 +322,10 @@ message Flow { // NLU related settings of the flow. NluSettings nlu_settings = 11; + // Hierarchical advanced settings for this flow. The settings exposed at the + // lower level overrides the settings exposed at the higher level. + AdvancedSettings advanced_settings = 14; + // Optional. Knowledge connector configuration. KnowledgeConnectorSettings knowledge_connector_settings = 18 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/fulfillment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/fulfillment.proto index ce75390d3b6..56c2247484c 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/fulfillment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/fulfillment.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3; import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/response_message.proto"; import "google/protobuf/struct.proto"; @@ -124,4 +125,15 @@ message Fulfillment { // Conditional cases for this fulfillment. repeated ConditionalCases conditional_cases = 5; + + // Hierarchical advanced settings for this fulfillment. The settings exposed + // at the lower level overrides the settings exposed at the higher level. + AdvancedSettings advanced_settings = 7; + + // If the flag is true, the agent will utilize LLM to generate a text + // response. If LLM generation fails, the defined + // [responses][google.cloud.dialogflow.cx.v3.Fulfillment.messages] in the + // fulfillment will be respected. This flag is only useful for fulfillments + // associated with no-match event handlers. + bool enable_generative_fallback = 12; } diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/inline.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/inline.proto new file mode 100644 index 00000000000..26c398ba439 --- /dev/null +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/inline.proto @@ -0,0 +1,43 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/field_behavior.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; +option java_multiple_files = true; +option java_outer_classname = "InlineProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; + +// Inline destination for a Dialogflow operation that writes or exports objects +// (e.g. [intents][google.cloud.dialogflow.cx.v3.Intent]) outside of Dialogflow. +message InlineDestination { + // Output only. The uncompressed byte content for the objects. + // Only populated in responses. + bytes content = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Inline source for a Dialogflow operation that reads or imports objects +// (e.g. [intents][google.cloud.dialogflow.cx.v3.Intent]) into Dialogflow. +message InlineSource { + // The uncompressed byte content for the objects. + bytes content = 1; +} diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/intent.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/intent.proto index 4b67223f9d8..6b2aa9565ea 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/intent.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/intent.proto @@ -20,6 +20,8 @@ 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/inline.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -92,6 +94,50 @@ service Intents { }; option (google.api.method_signature) = "name"; } + + // Imports the specified intents into the agent. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: + // [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3.ImportIntentsMetadata] + // - `response`: + // [ImportIntentsResponse][google.cloud.dialogflow.cx.v3.ImportIntentsResponse] + rpc ImportIntents(ImportIntentsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/intents:import" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ImportIntentsResponse" + metadata_type: "ImportIntentsMetadata" + }; + } + + // Exports the selected intents. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: + // [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3.ExportIntentsMetadata] + // - `response`: + // [ExportIntentsResponse][google.cloud.dialogflow.cx.v3.ExportIntentsResponse] + rpc ExportIntents(ExportIntentsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/intents:export" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ExportIntentsResponse" + metadata_type: "ExportIntentsMetadata" + }; + } } // An intent represents a user's intent to interact with a conversational agent. @@ -386,3 +432,178 @@ enum IntentView { // All fields are populated. INTENT_VIEW_FULL = 2; } + +// The request message for +// [Intents.ImportIntents][google.cloud.dialogflow.cx.v3.Intents.ImportIntents]. +message ImportIntentsRequest { + // Merge option when display name conflicts exist during import. + enum MergeOption { + // Unspecified. Should not be used. + MERGE_OPTION_UNSPECIFIED = 0; + + // DEPRECATED: Please use + // [REPORT_CONFLICT][ImportIntentsRequest.REPORT_CONFLICT] instead. + // Fail the request if there are intents whose display names conflict with + // the display names of intents in the agent. + REJECT = 1 [deprecated = true]; + + // Replace the original intent in the agent with the new intent when display + // name conflicts exist. + REPLACE = 2; + + // Merge the original intent with the new intent when display name conflicts + // exist. + MERGE = 3; + + // Create new intents with new display names to differentiate them from the + // existing intents when display name conflicts exist. + RENAME = 4; + + // Report conflict information if display names conflict is detected. + // Otherwise, import intents. + REPORT_CONFLICT = 5; + + // Keep the original intent and discard the conflicting new intent when + // display name conflicts exist. + KEEP = 6; + } + + // Required. The agent to import the intents into. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Intent" + } + ]; + + // Required. The intents to import. + oneof intents { + // The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + // to import intents from. The format of this URI must be + // `gs:///`. + // + // Dialogflow performs a read operation for the Cloud Storage object + // on the caller's behalf, so your request authentication must + // have read permissions for the object. For more information, see + // [Dialogflow access + // control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + string intents_uri = 2; + + // Uncompressed byte content of intents. + InlineSource intents_content = 3; + } + + // Merge option for importing intents. If not specified, `REJECT` is assumed. + MergeOption merge_option = 4; +} + +// The response message for +// [Intents.ImportIntents][google.cloud.dialogflow.cx.v3.Intents.ImportIntents]. +message ImportIntentsResponse { + // Conflicting resources detected during the import process. Only filled when + // [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] is set in the + // request and there are conflicts in the display names. + message ConflictingResources { + // Display names of conflicting intents. + repeated string intent_display_names = 1; + + // Display names of conflicting entities. + repeated string entity_display_names = 2; + } + + // The unique identifier of the imported intents. + // Format: `projects//locations//agents//intents/`. + repeated string intents = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // Info which resources have conflicts when + // [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + // set in ImportIntentsRequest. + ConflictingResources conflicting_resources = 2; +} + +// Metadata returned for the +// [Intents.ImportIntents][google.cloud.dialogflow.cx.v3.Intents.ImportIntents] +// long running operation. +message ImportIntentsMetadata {} + +// The request message for +// [Intents.ExportIntents][google.cloud.dialogflow.cx.v3.Intents.ExportIntents]. +message ExportIntentsRequest { + // Data format of the exported intents. + enum DataFormat { + // Unspecified format. Treated as `BLOB`. + DATA_FORMAT_UNSPECIFIED = 0; + + // Intents will be exported as raw bytes. + BLOB = 1; + + // Intents will be exported in JSON format. + JSON = 2; + + // Intents will be exported in CSV format. + CSV = 3; + } + + // Required. The name of the parent agent to export intents. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Intent" + } + ]; + + // Required. The name of the intents to export. + // Format: `projects//locations//agents//intents/`. + repeated string intents = 2 [(google.api.field_behavior) = REQUIRED]; + + // The destination to export. + oneof destination { + // Optional. The [Google Cloud + // Storage](https://cloud.google.com/storage/docs/) URI to export the + // intents to. The format of this URI must be + // `gs:///`. + // + // Dialogflow performs a write operation for the Cloud Storage object + // on the caller's behalf, so your request authentication must + // have write permissions for the object. For more information, see + // [Dialogflow access + // control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + string intents_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The option to return the serialized intents inline. + bool intents_content_inline = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The data format of the exported intents. If not specified, `BLOB` + // is assumed. + DataFormat data_format = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for +// [Intents.ExportIntents][google.cloud.dialogflow.cx.v3.Intents.ExportIntents]. +message ExportIntentsResponse { + // The exported intents. + oneof intents { + // The URI to a file containing the exported intents. This field is + // populated only if `intents_uri` is specified in + // [ExportIntentsRequest][google.cloud.dialogflow.cx.v3.ExportIntentsRequest]. + string intents_uri = 1; + + // Uncompressed byte content for intents. This field is populated only if + // `intents_content_inline` is set to true in + // [ExportIntentsRequest][google.cloud.dialogflow.cx.v3.ExportIntentsRequest]. + InlineDestination intents_content = 2; + } +} + +// Metadata returned for the +// [Intents.ExportIntents][google.cloud.dialogflow.cx.v3.Intents.ExportIntents] +// long running operation. +message ExportIntentsMetadata {} diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/page.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/page.proto index 57420037634..06dd721c21b 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/page.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/page.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/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/data_store_connection.proto"; import "google/cloud/dialogflow/cx/v3/fulfillment.proto"; import "google/protobuf/empty.proto"; @@ -190,6 +191,10 @@ message Page { // no match or no input. repeated EventHandler event_handlers = 10; + // Hierarchical advanced settings for this page. The settings exposed at the + // lower level overrides the settings exposed at the higher level. + AdvancedSettings advanced_settings = 13; + // Optional. Knowledge connector configuration. KnowledgeConnectorSettings knowledge_connector_settings = 18 [(google.api.field_behavior) = OPTIONAL]; @@ -285,6 +290,10 @@ message Form { // level redaction or [entity type level // redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. bool redact = 11; + + // Hierarchical advanced settings for this parameter. The settings exposed + // at the lower level overrides the settings exposed at the higher level. + AdvancedSettings advanced_settings = 12; } // Parameters to collect from the user. 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 62b3c8b4fe5..9c322fd516f 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 @@ -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/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3/audio_config.proto"; import "google/cloud/dialogflow/cx/v3/intent.proto"; import "google/cloud/dialogflow/cx/v3/page.proto"; @@ -764,6 +765,13 @@ message QueryResult { // [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], // specified in the request. SentimentAnalysisResult sentiment_analysis_result = 17; + + // Returns the current advanced settings including IVR settings. Even though + // the operations configured by these settings are performed by Dialogflow, + // the client may need to perform special logic at the moment. For example, if + // Dialogflow exports audio to Google Cloud Storage, then the client may need + // to wait for the resulting object to appear in the bucket before proceeding. + AdvancedSettings advanced_settings = 21; } // Represents the natural language text to be processed. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto index 983fb1ff871..e6086381b6d 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto @@ -40,6 +40,23 @@ option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1"; // // Hierarchy: Agent->Flow->Page->Fulfillment/Parameter. message AdvancedSettings { + // Define behaviors for DTMF (dual tone multi frequency). + message DtmfSettings { + // If true, incoming audio is processed for DTMF (dual tone multi frequency) + // events. For example, if the caller presses a button on their telephone + // keypad and DTMF processing is enabled, Dialogflow will detect the + // event (e.g. a "3" was pressed) in the incoming audio and pass the event + // to the bot to drive business logic (e.g. when 3 is pressed, return the + // account balance). + bool enabled = 1; + + // Max length of DTMF digits. + int32 max_digits = 2; + + // The digit that terminates a DTMF digit sequence. + string finish_digit = 3; + } + // Define behaviors on logging. message LoggingSettings { // If true, StackDriver logging is currently enabled. @@ -56,6 +73,14 @@ message AdvancedSettings { // - Flow level GcsDestination audio_export_gcs_destination = 2; + // Settings for DTMF. + // Exposed at the following levels: + // - Agent level + // - Flow level + // - Page level + // - Parameter level. + DtmfSettings dtmf_settings = 5; + // Settings for logging. // Settings for Dialogflow History, Contact Center messages, StackDriver logs, // and speech logging. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto index 861e02bcba3..dd88934fdba 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/flow.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/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3beta1/import_strategy.proto"; import "google/cloud/dialogflow/cx/v3beta1/page.proto"; import "google/cloud/dialogflow/cx/v3beta1/validation_message.proto"; @@ -321,6 +322,10 @@ message Flow { // NLU related settings of the flow. NluSettings nlu_settings = 11; + // Hierarchical advanced settings for this flow. The settings exposed at the + // lower level overrides the settings exposed at the higher level. + AdvancedSettings advanced_settings = 14; + // Optional. Knowledge connector configuration. KnowledgeConnectorSettings knowledge_connector_settings = 18 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto index 23d8e388de3..4817a7ba142 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3beta1; import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3beta1/response_message.proto"; import "google/protobuf/struct.proto"; @@ -126,4 +127,15 @@ message Fulfillment { // Conditional cases for this fulfillment. repeated ConditionalCases conditional_cases = 5; + + // Hierarchical advanced settings for this fulfillment. The settings exposed + // at the lower level overrides the settings exposed at the higher level. + AdvancedSettings advanced_settings = 7; + + // If the flag is true, the agent will utilize LLM to generate a text + // response. If LLM generation fails, the defined + // [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the + // fulfillment will be respected. This flag is only useful for fulfillments + // associated with no-match event handlers. + bool enable_generative_fallback = 12; } diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/inline.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/inline.proto new file mode 100644 index 00000000000..cf182ee289b --- /dev/null +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/inline.proto @@ -0,0 +1,44 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3beta1; + +import "google/api/field_behavior.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb"; +option java_multiple_files = true; +option java_outer_classname = "InlineProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1"; + +// Inline destination for a Dialogflow operation that writes or exports objects +// (e.g. [intents][google.cloud.dialogflow.cx.v3beta1.Intent]) outside of +// Dialogflow. +message InlineDestination { + // Output only. The uncompressed byte content for the objects. + // Only populated in responses. + bytes content = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Inline source for a Dialogflow operation that reads or imports objects +// (e.g. [intents][google.cloud.dialogflow.cx.v3beta1.Intent]) into Dialogflow. +message InlineSource { + // The uncompressed byte content for the objects. + bytes content = 1; +} diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/intent.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/intent.proto index b62ae80682b..29a050a8ab6 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/intent.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/intent.proto @@ -20,6 +20,8 @@ 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/inline.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -92,6 +94,50 @@ service Intents { }; option (google.api.method_signature) = "name"; } + + // Imports the specified intents into the agent. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: + // [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] + // - `response`: + // [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse] + rpc ImportIntents(ImportIntentsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents:import" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ImportIntentsResponse" + metadata_type: "ImportIntentsMetadata" + }; + } + + // Exports the selected intents. + // + // This method is a [long-running + // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + // The returned `Operation` type has the following method-specific fields: + // + // - `metadata`: + // [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] + // - `response`: + // [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse] + rpc ExportIntents(ExportIntentsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents:export" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ExportIntentsResponse" + metadata_type: "ExportIntentsMetadata" + }; + } } // An intent represents a user's intent to interact with a conversational agent. @@ -388,3 +434,178 @@ enum IntentView { // All fields are populated. INTENT_VIEW_FULL = 2; } + +// The request message for +// [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents]. +message ImportIntentsRequest { + // Merge option when display name conflicts exist during import. + enum MergeOption { + // Unspecified. Should not be used. + MERGE_OPTION_UNSPECIFIED = 0; + + // DEPRECATED: Please use + // [REPORT_CONFLICT][ImportIntentsRequest.REPORT_CONFLICT] instead. + // Fail the request if there are intents whose display names conflict with + // the display names of intents in the agent. + REJECT = 1 [deprecated = true]; + + // Replace the original intent in the agent with the new intent when display + // name conflicts exist. + REPLACE = 2; + + // Merge the original intent with the new intent when display name conflicts + // exist. + MERGE = 3; + + // Create new intents with new display names to differentiate them from the + // existing intents when display name conflicts exist. + RENAME = 4; + + // Report conflict information if display names conflict is detected. + // Otherwise, import intents. + REPORT_CONFLICT = 5; + + // Keep the original intent and discard the conflicting new intent when + // display name conflicts exist. + KEEP = 6; + } + + // Required. The agent to import the intents into. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Intent" + } + ]; + + // Required. The intents to import. + oneof intents { + // The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + // to import intents from. The format of this URI must be + // `gs:///`. + // + // Dialogflow performs a read operation for the Cloud Storage object + // on the caller's behalf, so your request authentication must + // have read permissions for the object. For more information, see + // [Dialogflow access + // control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + string intents_uri = 2; + + // Uncompressed byte content of intents. + InlineSource intents_content = 3; + } + + // Merge option for importing intents. If not specified, `REJECT` is assumed. + MergeOption merge_option = 4; +} + +// The response message for +// [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents]. +message ImportIntentsResponse { + // Conflicting resources detected during the import process. Only filled when + // [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] is set in the + // request and there are conflicts in the display names. + message ConflictingResources { + // Display names of conflicting intents. + repeated string intent_display_names = 1; + + // Display names of conflicting entities. + repeated string entity_display_names = 2; + } + + // The unique identifier of the imported intents. + // Format: `projects//locations//agents//intents/`. + repeated string intents = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // Info which resources have conflicts when + // [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is + // set in ImportIntentsRequest. + ConflictingResources conflicting_resources = 2; +} + +// Metadata returned for the +// [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents] +// long running operation. +message ImportIntentsMetadata {} + +// The request message for +// [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents]. +message ExportIntentsRequest { + // Data format of the exported intents. + enum DataFormat { + // Unspecified format. Treated as `BLOB`. + DATA_FORMAT_UNSPECIFIED = 0; + + // Intents will be exported as raw bytes. + BLOB = 1; + + // Intents will be exported in JSON format. + JSON = 2; + + // Intents will be exported in CSV format. + CSV = 3; + } + + // Required. The name of the parent agent to export intents. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Intent" + } + ]; + + // Required. The name of the intents to export. + // Format: `projects//locations//agents//intents/`. + repeated string intents = 2 [(google.api.field_behavior) = REQUIRED]; + + // The destination to export. + oneof destination { + // Optional. The [Google Cloud + // Storage](https://cloud.google.com/storage/docs/) URI to export the + // intents to. The format of this URI must be + // `gs:///`. + // + // Dialogflow performs a write operation for the Cloud Storage object + // on the caller's behalf, so your request authentication must + // have write permissions for the object. For more information, see + // [Dialogflow access + // control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + string intents_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The option to return the serialized intents inline. + bool intents_content_inline = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The data format of the exported intents. If not specified, `BLOB` + // is assumed. + DataFormat data_format = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for +// [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents]. +message ExportIntentsResponse { + // The exported intents. + oneof intents { + // The URI to a file containing the exported intents. This field is + // populated only if `intents_uri` is specified in + // [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + string intents_uri = 1; + + // Uncompressed byte content for intents. This field is populated only if + // `intents_content_inline` is set to true in + // [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest]. + InlineDestination intents_content = 2; + } +} + +// Metadata returned for the +// [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents] +// long running operation. +message ExportIntentsMetadata {} diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto index 1d56080128c..22c2283d89d 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/page.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/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3beta1/data_store_connection.proto"; import "google/cloud/dialogflow/cx/v3beta1/fulfillment.proto"; import "google/protobuf/empty.proto"; @@ -179,6 +180,10 @@ message Page { // no match or no input. repeated EventHandler event_handlers = 10; + // Hierarchical advanced settings for this page. The settings exposed at the + // lower level overrides the settings exposed at the higher level. + AdvancedSettings advanced_settings = 13; + // Optional. Knowledge connector configuration. KnowledgeConnectorSettings knowledge_connector_settings = 18 [(google.api.field_behavior) = OPTIONAL]; @@ -275,6 +280,10 @@ message Form { // redaction][google.cloud.dialogflow.cx.v3beta1.EntityType.redact] is // enabled. bool redact = 11; + + // Hierarchical advanced settings for this parameter. The settings exposed + // at the lower level overrides the settings exposed at the higher level. + AdvancedSettings advanced_settings = 12; } // Parameters to collect from the user. diff --git a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto index aae82bff376..d0895cf89e4 100644 --- a/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/session.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/advanced_settings.proto"; import "google/cloud/dialogflow/cx/v3beta1/audio_config.proto"; import "google/cloud/dialogflow/cx/v3beta1/intent.proto"; import "google/cloud/dialogflow/cx/v3beta1/page.proto"; @@ -766,6 +767,13 @@ message QueryResult { // [google.cloud.dialogflow.cx.v3beta1.QueryParameters.analyze_query_text_sentiment], // specified in the request. SentimentAnalysisResult sentiment_analysis_result = 17; + + // Returns the current advanced settings including IVR settings. Even though + // the operations configured by these settings are performed by Dialogflow, + // the client may need to perform special logic at the moment. For example, if + // Dialogflow exports audio to Google Cloud Storage, then the client may need + // to wait for the resulting object to appear in the bucket before proceeding. + AdvancedSettings advanced_settings = 21; } // Represents the natural language text to be processed. diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.d.ts b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts index 87fbdefd42b..660cdfefdb7 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.d.ts +++ b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts @@ -35,6 +35,9 @@ export namespace google { /** AdvancedSettings audioExportGcsDestination */ audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3.IGcsDestination|null); + /** AdvancedSettings dtmfSettings */ + dtmfSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings|null); + /** AdvancedSettings loggingSettings */ loggingSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null); } @@ -51,6 +54,9 @@ export namespace google { /** AdvancedSettings audioExportGcsDestination. */ public audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3.IGcsDestination|null); + /** AdvancedSettings dtmfSettings. */ + public dtmfSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings|null); + /** AdvancedSettings loggingSettings. */ public loggingSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null); @@ -134,6 +140,115 @@ export namespace google { namespace AdvancedSettings { + /** Properties of a DtmfSettings. */ + interface IDtmfSettings { + + /** DtmfSettings enabled */ + enabled?: (boolean|null); + + /** DtmfSettings maxDigits */ + maxDigits?: (number|null); + + /** DtmfSettings finishDigit */ + finishDigit?: (string|null); + } + + /** Represents a DtmfSettings. */ + class DtmfSettings implements IDtmfSettings { + + /** + * Constructs a new DtmfSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings); + + /** DtmfSettings enabled. */ + public enabled: boolean; + + /** DtmfSettings maxDigits. */ + public maxDigits: number; + + /** DtmfSettings finishDigit. */ + public finishDigit: string; + + /** + * Creates a new DtmfSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns DtmfSettings instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings): google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings; + + /** + * Encodes the specified DtmfSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.verify|verify} messages. + * @param message DtmfSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DtmfSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.verify|verify} messages. + * @param message DtmfSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DtmfSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DtmfSettings + * @throws {Error} If the payload is not a reader or 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.AdvancedSettings.DtmfSettings; + + /** + * Decodes a DtmfSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DtmfSettings + * @throws {Error} If the payload is not a 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.AdvancedSettings.DtmfSettings; + + /** + * Verifies a DtmfSettings message. + * @param message Plain 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 DtmfSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DtmfSettings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings; + + /** + * Creates a plain object from a DtmfSettings message. Also converts values to other types if specified. + * @param message DtmfSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DtmfSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DtmfSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a LoggingSettings. */ interface ILoggingSettings { @@ -4017,6 +4132,9 @@ export namespace google { /** Flow nluSettings */ nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + /** Flow advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + /** Flow knowledgeConnectorSettings */ knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3.IKnowledgeConnectorSettings|null); } @@ -4051,6 +4169,9 @@ export namespace google { /** Flow nluSettings. */ public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + /** Flow advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + /** Flow knowledgeConnectorSettings. */ public knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3.IKnowledgeConnectorSettings|null); @@ -5892,6 +6013,9 @@ export namespace google { /** Page eventHandlers */ eventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); + /** Page advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + /** Page knowledgeConnectorSettings */ knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3.IKnowledgeConnectorSettings|null); } @@ -5926,6 +6050,9 @@ export namespace google { /** Page eventHandlers. */ public eventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; + /** Page advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + /** Page knowledgeConnectorSettings. */ public knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3.IKnowledgeConnectorSettings|null); @@ -6129,6 +6256,9 @@ export namespace google { /** Parameter redact */ redact?: (boolean|null); + + /** Parameter advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); } /** Represents a Parameter. */ @@ -6161,6 +6291,9 @@ export namespace google { /** Parameter redact. */ public redact: boolean; + /** Parameter advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + /** * Creates a new Parameter instance using the specified properties. * @param [properties] Properties to set @@ -7503,6 +7636,12 @@ export namespace google { /** Fulfillment conditionalCases */ conditionalCases?: (google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases[]|null); + + /** Fulfillment advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + + /** Fulfillment enableGenerativeFallback */ + enableGenerativeFallback?: (boolean|null); } /** Represents a Fulfillment. */ @@ -7532,6 +7671,12 @@ export namespace google { /** Fulfillment conditionalCases. */ public conditionalCases: google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases[]; + /** Fulfillment advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + + /** Fulfillment enableGenerativeFallback. */ + public enableGenerativeFallback: boolean; + /** * Creates a new Fulfillment instance using the specified properties. * @param [properties] Properties to set @@ -19493,6 +19638,34 @@ export namespace google { * @returns Promise */ public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): Promise; + + /** + * Calls ImportIntents. + * @param request ImportIntentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importIntents(request: google.cloud.dialogflow.cx.v3.IImportIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ImportIntentsCallback): void; + + /** + * Calls ImportIntents. + * @param request ImportIntentsRequest message or plain object + * @returns Promise + */ + public importIntents(request: google.cloud.dialogflow.cx.v3.IImportIntentsRequest): Promise; + + /** + * Calls ExportIntents. + * @param request ExportIntentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportIntents(request: google.cloud.dialogflow.cx.v3.IExportIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ExportIntentsCallback): void; + + /** + * Calls ExportIntents. + * @param request ExportIntentsRequest message or plain object + * @returns Promise + */ + public exportIntents(request: google.cloud.dialogflow.cx.v3.IExportIntentsRequest): Promise; } namespace Intents { @@ -19531,6 +19704,20 @@ export namespace google { * @param [response] Empty */ type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents|importIntents}. + * @param error Error, if any + * @param [response] Operation + */ + type ImportIntentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents|exportIntents}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportIntentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } /** Properties of an Intent. */ @@ -20654,3511 +20841,3615 @@ export namespace google { INTENT_VIEW_FULL = 2 } - /** Represents a Sessions */ - class Sessions extends $protobuf.rpc.Service { + /** Properties of an ImportIntentsRequest. */ + interface IImportIntentsRequest { - /** - * 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); + /** ImportIntentsRequest parent */ + parent?: (string|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; + /** ImportIntentsRequest intentsUri */ + intentsUri?: (string|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.v3.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback): void; + /** ImportIntentsRequest intentsContent */ + intentsContent?: (google.cloud.dialogflow.cx.v3.IInlineSource|null); + + /** ImportIntentsRequest mergeOption */ + mergeOption?: (google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption|keyof typeof google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption|null); + } + + /** Represents an ImportIntentsRequest. */ + class ImportIntentsRequest implements IImportIntentsRequest { /** - * Calls DetectIntent. - * @param request DetectIntentRequest message or plain object - * @returns Promise + * Constructs a new ImportIntentsRequest. + * @param [properties] Properties to set */ - public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportIntentsRequest); + + /** ImportIntentsRequest parent. */ + public parent: string; + + /** ImportIntentsRequest intentsUri. */ + public intentsUri?: (string|null); + + /** ImportIntentsRequest intentsContent. */ + public intentsContent?: (google.cloud.dialogflow.cx.v3.IInlineSource|null); + + /** ImportIntentsRequest mergeOption. */ + public mergeOption: (google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption|keyof typeof google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption); + + /** ImportIntentsRequest intents. */ + public intents?: ("intentsUri"|"intentsContent"); /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse + * Creates a new ImportIntentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportIntentsRequest instance */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportIntentsRequest): google.cloud.dialogflow.cx.v3.ImportIntentsRequest; /** - * Calls StreamingDetectIntent. - * @param request StreamingDetectIntentRequest message or plain object - * @returns Promise + * Encodes the specified ImportIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsRequest.verify|verify} messages. + * @param message ImportIntentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.IImportIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 ImportIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsRequest.verify|verify} messages. + * @param message ImportIntentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls MatchIntent. - * @param request MatchIntentRequest message or plain object - * @returns Promise + * Decodes an ImportIntentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportIntentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportIntentsRequest; /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse + * Decodes an ImportIntentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportIntentsRequest + * @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.v3.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportIntentsRequest; /** - * Calls FulfillIntent. - * @param request FulfillIntentRequest message or plain object - * @returns Promise + * Verifies an ImportIntentsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): Promise; - } - - namespace Sessions { + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions|detectIntent}. - * @param error Error, if any - * @param [response] DetectIntentResponse + * Creates an ImportIntentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportIntentsRequest */ - type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.DetectIntentResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportIntentsRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions|streamingDetectIntent}. - * @param error Error, if any - * @param [response] StreamingDetectIntentResponse + * Creates a plain object from an ImportIntentsRequest message. Also converts values to other types if specified. + * @param message ImportIntentsRequest + * @param [options] Conversion options + * @returns Plain object */ - type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions|matchIntent}. - * @param error Error, if any - * @param [response] MatchIntentResponse + * Converts this ImportIntentsRequest to JSON. + * @returns JSON object */ - type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.MatchIntentResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions|fulfillIntent}. - * @param error Error, if any - * @param [response] FulfillIntentResponse + * Gets the default type url for ImportIntentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FulfillIntentResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DetectIntentRequest. */ - interface IDetectIntentRequest { + namespace ImportIntentsRequest { - /** DetectIntentRequest session */ - session?: (string|null); + /** MergeOption enum. */ + enum MergeOption { + MERGE_OPTION_UNSPECIFIED = 0, + REJECT = 1, + REPLACE = 2, + MERGE = 3, + RENAME = 4, + REPORT_CONFLICT = 5, + KEEP = 6 + } + } - /** DetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** Properties of an ImportIntentsResponse. */ + interface IImportIntentsResponse { - /** DetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** ImportIntentsResponse intents */ + intents?: (string[]|null); - /** DetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** ImportIntentsResponse conflictingResources */ + conflictingResources?: (google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources|null); } - /** Represents a DetectIntentRequest. */ - class DetectIntentRequest implements IDetectIntentRequest { + /** Represents an ImportIntentsResponse. */ + class ImportIntentsResponse implements IImportIntentsResponse { /** - * Constructs a new DetectIntentRequest. + * Constructs a new ImportIntentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest); - - /** DetectIntentRequest session. */ - public session: string; - - /** DetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportIntentsResponse); - /** DetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** ImportIntentsResponse intents. */ + public intents: string[]; - /** DetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** ImportIntentsResponse conflictingResources. */ + public conflictingResources?: (google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources|null); /** - * Creates a new DetectIntentRequest instance using the specified properties. + * Creates a new ImportIntentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DetectIntentRequest instance + * @returns ImportIntentsResponse 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.IImportIntentsResponse): google.cloud.dialogflow.cx.v3.ImportIntentsResponse; /** - * 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 ImportIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsResponse.verify|verify} messages. + * @param message ImportIntentsResponse 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.IImportIntentsResponse, 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 ImportIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsResponse.verify|verify} messages. + * @param message ImportIntentsResponse 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.IImportIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes an ImportIntentsResponse 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 ImportIntentsResponse * @throws {Error} If the payload is not a reader or 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.ImportIntentsResponse; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportIntentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DetectIntentRequest + * @returns ImportIntentsResponse * @throws {Error} If the payload is not a 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.ImportIntentsResponse; /** - * Verifies a DetectIntentRequest message. + * Verifies an ImportIntentsResponse message. * @param message Plain 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 ImportIntentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DetectIntentRequest + * @returns ImportIntentsResponse */ - 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.ImportIntentsResponse; /** - * 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 ImportIntentsResponse message. Also converts values to other types if specified. + * @param message ImportIntentsResponse * @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.ImportIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this ImportIntentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DetectIntentRequest + * Gets the default type url for ImportIntentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DetectIntentResponse. */ - interface IDetectIntentResponse { + namespace ImportIntentsResponse { - /** DetectIntentResponse responseId */ - responseId?: (string|null); + /** Properties of a ConflictingResources. */ + interface IConflictingResources { - /** DetectIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + /** ConflictingResources intentDisplayNames */ + intentDisplayNames?: (string[]|null); - /** DetectIntentResponse outputAudio */ - outputAudio?: (Uint8Array|string|null); + /** ConflictingResources entityDisplayNames */ + entityDisplayNames?: (string[]|null); + } - /** DetectIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** Represents a ConflictingResources. */ + class ConflictingResources implements IConflictingResources { - /** DetectIntentResponse responseType */ - responseType?: (google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|null); + /** + * Constructs a new ConflictingResources. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources); - /** DetectIntentResponse allowCancellation */ - allowCancellation?: (boolean|null); - } + /** ConflictingResources intentDisplayNames. */ + public intentDisplayNames: string[]; - /** Represents a DetectIntentResponse. */ - class DetectIntentResponse implements IDetectIntentResponse { + /** ConflictingResources entityDisplayNames. */ + public entityDisplayNames: string[]; - /** - * Constructs a new DetectIntentResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse); + /** + * Creates a new ConflictingResources instance using the specified properties. + * @param [properties] Properties to set + * @returns ConflictingResources instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources): google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources; - /** DetectIntentResponse responseId. */ - public responseId: string; + /** + * Encodes the specified ConflictingResources message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.verify|verify} messages. + * @param message ConflictingResources message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources, writer?: $protobuf.Writer): $protobuf.Writer; - /** DetectIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); + /** + * Encodes the specified ConflictingResources message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.verify|verify} messages. + * @param message ConflictingResources message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources, writer?: $protobuf.Writer): $protobuf.Writer; - /** DetectIntentResponse outputAudio. */ - public outputAudio: (Uint8Array|string); + /** + * Decodes a ConflictingResources message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConflictingResources + * @throws {Error} If the payload is not a reader or 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.ImportIntentsResponse.ConflictingResources; - /** DetectIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** + * Decodes a ConflictingResources message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConflictingResources + * @throws {Error} If the payload is not a 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.ImportIntentsResponse.ConflictingResources; - /** DetectIntentResponse responseType. */ - public responseType: (google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType); + /** + * Verifies a ConflictingResources message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** DetectIntentResponse allowCancellation. */ - public allowCancellation: boolean; + /** + * Creates a ConflictingResources message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConflictingResources + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources; + + /** + * Creates a plain object from a ConflictingResources message. Also converts values to other types if specified. + * @param message ConflictingResources + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConflictingResources to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConflictingResources + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an ImportIntentsMetadata. */ + interface IImportIntentsMetadata { + } + + /** Represents an ImportIntentsMetadata. */ + class ImportIntentsMetadata implements IImportIntentsMetadata { /** - * Creates a new DetectIntentResponse instance using the specified properties. + * Constructs a new ImportIntentsMetadata. * @param [properties] Properties to set - * @returns DetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportIntentsMetadata); /** - * 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 + * Creates a new ImportIntentsMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportIntentsMetadata instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportIntentsMetadata): google.cloud.dialogflow.cx.v3.ImportIntentsMetadata; + + /** + * Encodes the specified ImportIntentsMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsMetadata.verify|verify} messages. + * @param message ImportIntentsMetadata 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; + public static encode(message: google.cloud.dialogflow.cx.v3.IImportIntentsMetadata, 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 + * Encodes the specified ImportIntentsMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsMetadata.verify|verify} messages. + * @param message ImportIntentsMetadata 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportIntentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. + * Decodes an ImportIntentsMetadata 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 ImportIntentsMetadata * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportIntentsMetadata; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportIntentsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DetectIntentResponse + * @returns ImportIntentsMetadata * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportIntentsMetadata; /** - * Verifies a DetectIntentResponse message. + * Verifies an ImportIntentsMetadata message. * @param message Plain 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 ImportIntentsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DetectIntentResponse + * @returns ImportIntentsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportIntentsMetadata; /** - * 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 ImportIntentsMetadata message. Also converts values to other types if specified. + * @param message ImportIntentsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportIntentsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DetectIntentResponse to JSON. + * Converts this ImportIntentsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DetectIntentResponse + * Gets the default type url for ImportIntentsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace DetectIntentResponse { - - /** ResponseType enum. */ - enum ResponseType { - RESPONSE_TYPE_UNSPECIFIED = 0, - PARTIAL = 1, - FINAL = 2 - } - } - - /** Properties of a StreamingDetectIntentRequest. */ - interface IStreamingDetectIntentRequest { - - /** StreamingDetectIntentRequest session */ - session?: (string|null); + /** Properties of an ExportIntentsRequest. */ + interface IExportIntentsRequest { - /** StreamingDetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** ExportIntentsRequest parent */ + parent?: (string|null); - /** StreamingDetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** ExportIntentsRequest intents */ + intents?: (string[]|null); - /** StreamingDetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** ExportIntentsRequest intentsUri */ + intentsUri?: (string|null); - /** StreamingDetectIntentRequest enablePartialResponse */ - enablePartialResponse?: (boolean|null); + /** ExportIntentsRequest intentsContentInline */ + intentsContentInline?: (boolean|null); - /** StreamingDetectIntentRequest enableDebuggingInfo */ - enableDebuggingInfo?: (boolean|null); + /** ExportIntentsRequest dataFormat */ + dataFormat?: (google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat|null); } - /** Represents a StreamingDetectIntentRequest. */ - class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { + /** Represents an ExportIntentsRequest. */ + class ExportIntentsRequest implements IExportIntentsRequest { /** - * Constructs a new StreamingDetectIntentRequest. + * Constructs a new ExportIntentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportIntentsRequest); - /** StreamingDetectIntentRequest session. */ - public session: string; + /** ExportIntentsRequest parent. */ + public parent: string; - /** StreamingDetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); + /** ExportIntentsRequest intents. */ + public intents: string[]; - /** StreamingDetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** ExportIntentsRequest intentsUri. */ + public intentsUri?: (string|null); - /** StreamingDetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** ExportIntentsRequest intentsContentInline. */ + public intentsContentInline?: (boolean|null); - /** StreamingDetectIntentRequest enablePartialResponse. */ - public enablePartialResponse: boolean; + /** ExportIntentsRequest dataFormat. */ + public dataFormat: (google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat); - /** StreamingDetectIntentRequest enableDebuggingInfo. */ - public enableDebuggingInfo: boolean; + /** ExportIntentsRequest destination. */ + public destination?: ("intentsUri"|"intentsContentInline"); /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * Creates a new ExportIntentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingDetectIntentRequest instance + * @returns ExportIntentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportIntentsRequest): google.cloud.dialogflow.cx.v3.ExportIntentsRequest; /** - * 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 + * Encodes the specified ExportIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsRequest.verify|verify} messages. + * @param message ExportIntentsRequest 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.IExportIntentsRequest, 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 ExportIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsRequest.verify|verify} messages. + * @param message ExportIntentsRequest 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.IExportIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes an ExportIntentsRequest 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 ExportIntentsRequest * @throws {Error} If the payload is not a reader or 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.ExportIntentsRequest; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentRequest + * @returns ExportIntentsRequest * @throws {Error} If the payload is not a 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.ExportIntentsRequest; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies an ExportIntentsRequest message. * @param message Plain 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 ExportIntentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentRequest + * @returns ExportIntentsRequest */ - 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.ExportIntentsRequest; /** - * 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 ExportIntentsRequest message. Also converts values to other types if specified. + * @param message ExportIntentsRequest * @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.ExportIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Converts this ExportIntentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamingDetectIntentRequest + * Gets the default type url for ExportIntentsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CloudConversationDebuggingInfo. */ - interface ICloudConversationDebuggingInfo { + namespace ExportIntentsRequest { - /** CloudConversationDebuggingInfo audioDataChunks */ - audioDataChunks?: (number|null); + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + BLOB = 1, + JSON = 2, + CSV = 3 + } + } - /** CloudConversationDebuggingInfo resultEndTimeOffset */ - resultEndTimeOffset?: (google.protobuf.IDuration|null); + /** Properties of an ExportIntentsResponse. */ + interface IExportIntentsResponse { - /** CloudConversationDebuggingInfo firstAudioDuration */ - firstAudioDuration?: (google.protobuf.IDuration|null); + /** ExportIntentsResponse intentsUri */ + intentsUri?: (string|null); - /** CloudConversationDebuggingInfo singleUtterance */ - singleUtterance?: (boolean|null); + /** ExportIntentsResponse intentsContent */ + intentsContent?: (google.cloud.dialogflow.cx.v3.IInlineDestination|null); + } - /** CloudConversationDebuggingInfo speechPartialResultsEndTimes */ - speechPartialResultsEndTimes?: (google.protobuf.IDuration[]|null); + /** Represents an ExportIntentsResponse. */ + class ExportIntentsResponse implements IExportIntentsResponse { - /** CloudConversationDebuggingInfo speechFinalResultsEndTimes */ - speechFinalResultsEndTimes?: (google.protobuf.IDuration[]|null); + /** + * Constructs a new ExportIntentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportIntentsResponse); - /** CloudConversationDebuggingInfo partialResponses */ - partialResponses?: (number|null); + /** ExportIntentsResponse intentsUri. */ + public intentsUri?: (string|null); - /** CloudConversationDebuggingInfo speakerIdPassiveLatencyMsOffset */ - speakerIdPassiveLatencyMsOffset?: (number|null); + /** ExportIntentsResponse intentsContent. */ + public intentsContent?: (google.cloud.dialogflow.cx.v3.IInlineDestination|null); - /** CloudConversationDebuggingInfo bargeinEventTriggered */ - bargeinEventTriggered?: (boolean|null); + /** ExportIntentsResponse intents. */ + public intents?: ("intentsUri"|"intentsContent"); - /** CloudConversationDebuggingInfo speechSingleUtterance */ - speechSingleUtterance?: (boolean|null); + /** + * Creates a new ExportIntentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportIntentsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportIntentsResponse): google.cloud.dialogflow.cx.v3.ExportIntentsResponse; - /** CloudConversationDebuggingInfo dtmfPartialResultsTimes */ - dtmfPartialResultsTimes?: (google.protobuf.IDuration[]|null); + /** + * Encodes the specified ExportIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsResponse.verify|verify} messages. + * @param message ExportIntentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IExportIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** CloudConversationDebuggingInfo dtmfFinalResultsTimes */ - dtmfFinalResultsTimes?: (google.protobuf.IDuration[]|null); + /** + * Encodes the specified ExportIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsResponse.verify|verify} messages. + * @param message ExportIntentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** CloudConversationDebuggingInfo singleUtteranceEndTimeOffset */ - singleUtteranceEndTimeOffset?: (google.protobuf.IDuration|null); + /** + * Decodes an ExportIntentsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportIntentsResponse + * @throws {Error} If the payload is not a reader or 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.ExportIntentsResponse; - /** CloudConversationDebuggingInfo noSpeechTimeout */ - noSpeechTimeout?: (google.protobuf.IDuration|null); - - /** CloudConversationDebuggingInfo endpointingTimeout */ - endpointingTimeout?: (google.protobuf.IDuration|null); - - /** CloudConversationDebuggingInfo isInputText */ - isInputText?: (boolean|null); - - /** CloudConversationDebuggingInfo clientHalfCloseTimeOffset */ - clientHalfCloseTimeOffset?: (google.protobuf.IDuration|null); - - /** CloudConversationDebuggingInfo clientHalfCloseStreamingTimeOffset */ - clientHalfCloseStreamingTimeOffset?: (google.protobuf.IDuration|null); - } - - /** Represents a CloudConversationDebuggingInfo. */ - class CloudConversationDebuggingInfo implements ICloudConversationDebuggingInfo { + /** + * Decodes an ExportIntentsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportIntentsResponse + * @throws {Error} If the payload is not a 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.ExportIntentsResponse; /** - * Constructs a new CloudConversationDebuggingInfo. - * @param [properties] Properties to set + * Verifies an ExportIntentsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo); - - /** CloudConversationDebuggingInfo audioDataChunks. */ - public audioDataChunks: number; - - /** CloudConversationDebuggingInfo resultEndTimeOffset. */ - public resultEndTimeOffset?: (google.protobuf.IDuration|null); - - /** CloudConversationDebuggingInfo firstAudioDuration. */ - public firstAudioDuration?: (google.protobuf.IDuration|null); - - /** CloudConversationDebuggingInfo singleUtterance. */ - public singleUtterance: boolean; - - /** CloudConversationDebuggingInfo speechPartialResultsEndTimes. */ - public speechPartialResultsEndTimes: google.protobuf.IDuration[]; - - /** CloudConversationDebuggingInfo speechFinalResultsEndTimes. */ - public speechFinalResultsEndTimes: google.protobuf.IDuration[]; - - /** CloudConversationDebuggingInfo partialResponses. */ - public partialResponses: number; - - /** CloudConversationDebuggingInfo speakerIdPassiveLatencyMsOffset. */ - public speakerIdPassiveLatencyMsOffset: number; - - /** CloudConversationDebuggingInfo bargeinEventTriggered. */ - public bargeinEventTriggered: boolean; - - /** CloudConversationDebuggingInfo speechSingleUtterance. */ - public speechSingleUtterance: boolean; - - /** CloudConversationDebuggingInfo dtmfPartialResultsTimes. */ - public dtmfPartialResultsTimes: google.protobuf.IDuration[]; + public static verify(message: { [k: string]: any }): (string|null); - /** CloudConversationDebuggingInfo dtmfFinalResultsTimes. */ - public dtmfFinalResultsTimes: google.protobuf.IDuration[]; + /** + * Creates an ExportIntentsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportIntentsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportIntentsResponse; - /** CloudConversationDebuggingInfo singleUtteranceEndTimeOffset. */ - public singleUtteranceEndTimeOffset?: (google.protobuf.IDuration|null); + /** + * Creates a plain object from an ExportIntentsResponse message. Also converts values to other types if specified. + * @param message ExportIntentsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CloudConversationDebuggingInfo noSpeechTimeout. */ - public noSpeechTimeout?: (google.protobuf.IDuration|null); + /** + * Converts this ExportIntentsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CloudConversationDebuggingInfo endpointingTimeout. */ - public endpointingTimeout?: (google.protobuf.IDuration|null); + /** + * Gets the default type url for ExportIntentsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** CloudConversationDebuggingInfo isInputText. */ - public isInputText: boolean; + /** Properties of an ExportIntentsMetadata. */ + interface IExportIntentsMetadata { + } - /** CloudConversationDebuggingInfo clientHalfCloseTimeOffset. */ - public clientHalfCloseTimeOffset?: (google.protobuf.IDuration|null); + /** Represents an ExportIntentsMetadata. */ + class ExportIntentsMetadata implements IExportIntentsMetadata { - /** CloudConversationDebuggingInfo clientHalfCloseStreamingTimeOffset. */ - public clientHalfCloseStreamingTimeOffset?: (google.protobuf.IDuration|null); + /** + * Constructs a new ExportIntentsMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportIntentsMetadata); /** - * Creates a new CloudConversationDebuggingInfo instance using the specified properties. + * Creates a new ExportIntentsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CloudConversationDebuggingInfo instance + * @returns ExportIntentsMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo): google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportIntentsMetadata): google.cloud.dialogflow.cx.v3.ExportIntentsMetadata; /** - * Encodes the specified CloudConversationDebuggingInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify|verify} messages. - * @param message CloudConversationDebuggingInfo message or plain object to encode + * Encodes the specified ExportIntentsMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsMetadata.verify|verify} messages. + * @param message ExportIntentsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportIntentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CloudConversationDebuggingInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify|verify} messages. - * @param message CloudConversationDebuggingInfo message or plain object to encode + * Encodes the specified ExportIntentsMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsMetadata.verify|verify} messages. + * @param message ExportIntentsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportIntentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CloudConversationDebuggingInfo message from the specified reader or buffer. + * Decodes an ExportIntentsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CloudConversationDebuggingInfo + * @returns ExportIntentsMetadata * @throws {Error} If the payload is not a reader or 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.CloudConversationDebuggingInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportIntentsMetadata; /** - * Decodes a CloudConversationDebuggingInfo message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CloudConversationDebuggingInfo + * @returns ExportIntentsMetadata * @throws {Error} If the payload is not a 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.CloudConversationDebuggingInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportIntentsMetadata; /** - * Verifies a CloudConversationDebuggingInfo message. + * Verifies an ExportIntentsMetadata message. * @param message Plain 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 CloudConversationDebuggingInfo message from a plain object. Also converts values to their respective internal types. + * Creates an ExportIntentsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CloudConversationDebuggingInfo + * @returns ExportIntentsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportIntentsMetadata; /** - * Creates a plain object from a CloudConversationDebuggingInfo message. Also converts values to other types if specified. - * @param message CloudConversationDebuggingInfo + * Creates a plain object from an ExportIntentsMetadata message. Also converts values to other types if specified. + * @param message ExportIntentsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportIntentsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CloudConversationDebuggingInfo to JSON. + * Converts this ExportIntentsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CloudConversationDebuggingInfo + * Gets the default type url for ExportIntentsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StreamingDetectIntentResponse. */ - interface IStreamingDetectIntentResponse { - - /** StreamingDetectIntentResponse recognitionResult */ - recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); - - /** StreamingDetectIntentResponse detectIntentResponse */ - detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); + /** Properties of an InlineDestination. */ + interface IInlineDestination { - /** StreamingDetectIntentResponse debuggingInfo */ - debuggingInfo?: (google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo|null); + /** InlineDestination content */ + content?: (Uint8Array|string|null); } - /** Represents a StreamingDetectIntentResponse. */ - class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { + /** Represents an InlineDestination. */ + class InlineDestination implements IInlineDestination { /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new InlineDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IInlineDestination); - /** StreamingDetectIntentResponse recognitionResult. */ - public recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); - - /** StreamingDetectIntentResponse detectIntentResponse. */ - public detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); - - /** StreamingDetectIntentResponse debuggingInfo. */ - public debuggingInfo?: (google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo|null); - - /** StreamingDetectIntentResponse response. */ - public response?: ("recognitionResult"|"detectIntentResponse"); + /** InlineDestination content. */ + public content: (Uint8Array|string); /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new InlineDestination instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingDetectIntentResponse instance + * @returns InlineDestination 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.IInlineDestination): google.cloud.dialogflow.cx.v3.InlineDestination; /** - * 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 InlineDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InlineDestination.verify|verify} messages. + * @param message InlineDestination 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.IInlineDestination, 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 InlineDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InlineDestination.verify|verify} messages. + * @param message InlineDestination 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.IInlineDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes an InlineDestination 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 InlineDestination * @throws {Error} If the payload is not a reader or 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.InlineDestination; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an InlineDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingDetectIntentResponse + * @returns InlineDestination * @throws {Error} If the payload is not a 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.InlineDestination; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies an InlineDestination message. * @param message Plain 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 an InlineDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingDetectIntentResponse + * @returns InlineDestination */ - 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.InlineDestination; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. - * @param message StreamingDetectIntentResponse + * Creates a plain object from an InlineDestination message. Also converts values to other types if specified. + * @param message InlineDestination * @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.InlineDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this InlineDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamingDetectIntentResponse + * Gets the default type url for InlineDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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); - - /** StreamingRecognitionResult speechWordInfo */ - speechWordInfo?: (google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]|null); - - /** StreamingRecognitionResult speechEndOffset */ - speechEndOffset?: (google.protobuf.IDuration|null); + /** Properties of an InlineSource. */ + interface IInlineSource { - /** StreamingRecognitionResult languageCode */ - languageCode?: (string|null); + /** InlineSource content */ + content?: (Uint8Array|string|null); } - /** Represents a StreamingRecognitionResult. */ - class StreamingRecognitionResult implements IStreamingRecognitionResult { + /** Represents an InlineSource. */ + class InlineSource implements IInlineSource { /** - * Constructs a new StreamingRecognitionResult. + * Constructs a new InlineSource. * @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.IInlineSource); - /** StreamingRecognitionResult speechWordInfo. */ - public speechWordInfo: google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]; - - /** StreamingRecognitionResult speechEndOffset. */ - public speechEndOffset?: (google.protobuf.IDuration|null); - - /** StreamingRecognitionResult languageCode. */ - public languageCode: string; + /** InlineSource content. */ + public content: (Uint8Array|string); /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new InlineSource instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingRecognitionResult instance + * @returns InlineSource 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.IInlineSource): google.cloud.dialogflow.cx.v3.InlineSource; /** - * 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 InlineSource message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InlineSource.verify|verify} messages. + * @param message InlineSource 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.IInlineSource, 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 InlineSource message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InlineSource.verify|verify} messages. + * @param message InlineSource 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.IInlineSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes an InlineSource 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 InlineSource * @throws {Error} If the payload is not a reader or 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.InlineSource; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes an InlineSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingRecognitionResult + * @returns InlineSource * @throws {Error} If the payload is not a 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.InlineSource; /** - * Verifies a StreamingRecognitionResult message. + * Verifies an InlineSource message. * @param message Plain 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 InlineSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingRecognitionResult + * @returns InlineSource */ - 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.InlineSource; /** - * 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 InlineSource message. Also converts values to other types if specified. + * @param message InlineSource * @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.InlineSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this InlineSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StreamingRecognitionResult + * Gets the default type url for InlineSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace StreamingRecognitionResult { - - /** MessageType enum. */ - enum MessageType { - MESSAGE_TYPE_UNSPECIFIED = 0, - TRANSCRIPT = 1, - END_OF_SINGLE_UTTERANCE = 2 - } - } - - /** Properties of a QueryParameters. */ - interface IQueryParameters { + /** Represents a Sessions */ + class Sessions extends $protobuf.rpc.Service { - /** QueryParameters timeZone */ - timeZone?: (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); - /** QueryParameters geoLocation */ - geoLocation?: (google.type.ILatLng|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; - /** QueryParameters sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|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.v3.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback): void; - /** QueryParameters payload */ - payload?: (google.protobuf.IStruct|null); + /** + * Calls DetectIntent. + * @param request DetectIntentRequest message or plain object + * @returns Promise + */ + public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): Promise; - /** QueryParameters parameters */ - parameters?: (google.protobuf.IStruct|null); + /** + * 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.v3.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback): void; - /** QueryParameters currentPage */ - currentPage?: (string|null); + /** + * Calls StreamingDetectIntent. + * @param request StreamingDetectIntentRequest message or plain object + * @returns Promise + */ + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): Promise; - /** QueryParameters disableWebhook */ - disableWebhook?: (boolean|null); + /** + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MatchIntentResponse + */ + public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback): void; - /** QueryParameters analyzeQueryTextSentiment */ - analyzeQueryTextSentiment?: (boolean|null); + /** + * Calls MatchIntent. + * @param request MatchIntentRequest message or plain object + * @returns Promise + */ + public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): Promise; - /** QueryParameters webhookHeaders */ - webhookHeaders?: ({ [k: string]: string }|null); + /** + * 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; - /** QueryParameters flowVersions */ - flowVersions?: (string[]|null); + /** + * Calls FulfillIntent. + * @param request FulfillIntentRequest message or plain object + * @returns Promise + */ + public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): Promise; + } - /** QueryParameters channel */ - channel?: (string|null); + namespace Sessions { - /** QueryParameters sessionTtl */ - sessionTtl?: (google.protobuf.IDuration|null); - } + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions|detectIntent}. + * @param error Error, if any + * @param [response] DetectIntentResponse + */ + type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.DetectIntentResponse) => void; - /** Represents a QueryParameters. */ - class QueryParameters implements IQueryParameters { + /** + * 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; /** - * Constructs a new QueryParameters. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions|matchIntent}. + * @param error Error, if any + * @param [response] MatchIntentResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters); + type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.MatchIntentResponse) => void; - /** QueryParameters timeZone. */ - public timeZone: string; + /** + * 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; + } - /** QueryParameters geoLocation. */ - public geoLocation?: (google.type.ILatLng|null); + /** Properties of a DetectIntentRequest. */ + interface IDetectIntentRequest { - /** QueryParameters sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; + /** DetectIntentRequest session */ + session?: (string|null); - /** QueryParameters payload. */ - public payload?: (google.protobuf.IStruct|null); + /** DetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - /** QueryParameters parameters. */ - public parameters?: (google.protobuf.IStruct|null); + /** DetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - /** QueryParameters currentPage. */ - public currentPage: string; + /** DetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + } - /** QueryParameters disableWebhook. */ - public disableWebhook: boolean; + /** Represents a DetectIntentRequest. */ + class DetectIntentRequest implements IDetectIntentRequest { - /** QueryParameters analyzeQueryTextSentiment. */ - public analyzeQueryTextSentiment: boolean; + /** + * Constructs a new DetectIntentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest); - /** QueryParameters webhookHeaders. */ - public webhookHeaders: { [k: string]: string }; + /** DetectIntentRequest session. */ + public session: string; - /** QueryParameters flowVersions. */ - public flowVersions: string[]; + /** DetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - /** QueryParameters channel. */ - public channel: string; + /** DetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - /** QueryParameters sessionTtl. */ - public sessionTtl?: (google.protobuf.IDuration|null); + /** DetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** - * Creates a new QueryParameters instance using the specified properties. + * Creates a new DetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryParameters instance + * @returns DetectIntentRequest 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.IDetectIntentRequest): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * 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 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.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, 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 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.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryParameters 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 QueryParameters + * @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.QueryParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Decodes a QueryParameters 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 QueryParameters + * @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.QueryParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Verifies a QueryParameters 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 QueryParameters 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 QueryParameters + * @returns DetectIntentRequest */ - 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.DetectIntentRequest; /** - * 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 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.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryParameters to JSON. + * Converts this DetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryParameters + * Gets the default type url for DetectIntentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryInput. */ - interface IQueryInput { + /** Properties of a DetectIntentResponse. */ + interface IDetectIntentResponse { - /** QueryInput text */ - text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); + /** DetectIntentResponse responseId */ + responseId?: (string|null); - /** QueryInput intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); + /** DetectIntentResponse queryResult */ + queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); - /** QueryInput audio */ - audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); + /** DetectIntentResponse outputAudio */ + outputAudio?: (Uint8Array|string|null); - /** QueryInput event */ - event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); + /** DetectIntentResponse outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - /** QueryInput dtmf */ - dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + /** DetectIntentResponse responseType */ + responseType?: (google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|null); - /** QueryInput languageCode */ - languageCode?: (string|null); + /** DetectIntentResponse allowCancellation */ + allowCancellation?: (boolean|null); } - /** Represents a QueryInput. */ - class QueryInput implements IQueryInput { + /** Represents a DetectIntentResponse. */ + class DetectIntentResponse implements IDetectIntentResponse { /** - * Constructs a new QueryInput. + * Constructs a new DetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse); - /** QueryInput text. */ - public text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); + /** DetectIntentResponse responseId. */ + public responseId: string; - /** QueryInput intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); - - /** QueryInput audio. */ - public audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); + /** DetectIntentResponse queryResult. */ + public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); - /** QueryInput event. */ - public event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); + /** DetectIntentResponse outputAudio. */ + public outputAudio: (Uint8Array|string); - /** QueryInput dtmf. */ - public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + /** DetectIntentResponse outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - /** QueryInput languageCode. */ - public languageCode: string; + /** DetectIntentResponse responseType. */ + public responseType: (google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|keyof typeof google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType); - /** QueryInput input. */ - public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); + /** DetectIntentResponse allowCancellation. */ + public allowCancellation: boolean; /** - * Creates a new QueryInput instance using the specified properties. + * Creates a new DetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns QueryInput instance + * @returns DetectIntentResponse 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.IDetectIntentResponse): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * 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 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.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, 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 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.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryInput 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 QueryInput + * @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.QueryInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Decodes a QueryInput 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 QueryInput + * @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.QueryInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Verifies a QueryInput 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 QueryInput 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 QueryInput + * @returns DetectIntentResponse */ - 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.DetectIntentResponse; /** - * Creates a plain object from a QueryInput message. Also converts values to other types if specified. - * @param message QueryInput + * 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.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryInput to JSON. + * Converts this DetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryInput + * Gets the default type url for DetectIntentResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 dtmf */ - dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); - - /** QueryResult languageCode */ - languageCode?: (string|null); - - /** QueryResult parameters */ - parameters?: (google.protobuf.IStruct|null); - - /** QueryResult responseMessages */ - responseMessages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); + namespace DetectIntentResponse { - /** QueryResult webhookStatuses */ - webhookStatuses?: (google.rpc.IStatus[]|null); + /** ResponseType enum. */ + enum ResponseType { + RESPONSE_TYPE_UNSPECIFIED = 0, + PARTIAL = 1, + FINAL = 2 + } + } - /** QueryResult webhookPayloads */ - webhookPayloads?: (google.protobuf.IStruct[]|null); + /** Properties of a StreamingDetectIntentRequest. */ + interface IStreamingDetectIntentRequest { - /** QueryResult currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** StreamingDetectIntentRequest session */ + session?: (string|null); - /** QueryResult intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** StreamingDetectIntentRequest queryParams */ + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - /** QueryResult intentDetectionConfidence */ - intentDetectionConfidence?: (number|null); + /** StreamingDetectIntentRequest queryInput */ + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - /** QueryResult match */ - match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + /** StreamingDetectIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - /** QueryResult diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); + /** StreamingDetectIntentRequest enablePartialResponse */ + enablePartialResponse?: (boolean|null); - /** QueryResult sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + /** StreamingDetectIntentRequest enableDebuggingInfo */ + enableDebuggingInfo?: (boolean|null); } - /** Represents a QueryResult. */ - class QueryResult implements IQueryResult { + /** Represents a StreamingDetectIntentRequest. */ + class StreamingDetectIntentRequest implements IStreamingDetectIntentRequest { /** - * Constructs a new QueryResult. + * Constructs a new StreamingDetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryResult); - - /** QueryResult text. */ - public text?: (string|null); - - /** QueryResult triggerIntent. */ - public triggerIntent?: (string|null); - - /** QueryResult transcript. */ - public transcript?: (string|null); - - /** QueryResult triggerEvent. */ - public triggerEvent?: (string|null); - - /** QueryResult dtmf. */ - public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); - - /** 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); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest); - /** QueryResult intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** StreamingDetectIntentRequest session. */ + public session: string; - /** QueryResult intentDetectionConfidence. */ - public intentDetectionConfidence: number; + /** StreamingDetectIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - /** QueryResult match. */ - public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + /** StreamingDetectIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); - /** QueryResult diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); + /** StreamingDetectIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); - /** QueryResult sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + /** StreamingDetectIntentRequest enablePartialResponse. */ + public enablePartialResponse: boolean; - /** QueryResult query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"); + /** StreamingDetectIntentRequest enableDebuggingInfo. */ + public enableDebuggingInfo: boolean; /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryResult instance + * @returns StreamingDetectIntentRequest 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.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * 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 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.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, 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 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.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryResult 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 QueryResult + * @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.QueryResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Decodes a QueryResult 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 QueryResult + * @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.QueryResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Verifies a QueryResult 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 QueryResult 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 QueryResult + * @returns StreamingDetectIntentRequest */ - 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.StreamingDetectIntentRequest; /** - * 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 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.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryResult to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryResult + * Gets the default type url for StreamingDetectIntentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TextInput. */ - interface ITextInput { + /** Properties of a CloudConversationDebuggingInfo. */ + interface ICloudConversationDebuggingInfo { - /** TextInput text */ - text?: (string|null); + /** CloudConversationDebuggingInfo audioDataChunks */ + audioDataChunks?: (number|null); + + /** CloudConversationDebuggingInfo resultEndTimeOffset */ + resultEndTimeOffset?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo firstAudioDuration */ + firstAudioDuration?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo singleUtterance */ + singleUtterance?: (boolean|null); + + /** CloudConversationDebuggingInfo speechPartialResultsEndTimes */ + speechPartialResultsEndTimes?: (google.protobuf.IDuration[]|null); + + /** CloudConversationDebuggingInfo speechFinalResultsEndTimes */ + speechFinalResultsEndTimes?: (google.protobuf.IDuration[]|null); + + /** CloudConversationDebuggingInfo partialResponses */ + partialResponses?: (number|null); + + /** CloudConversationDebuggingInfo speakerIdPassiveLatencyMsOffset */ + speakerIdPassiveLatencyMsOffset?: (number|null); + + /** CloudConversationDebuggingInfo bargeinEventTriggered */ + bargeinEventTriggered?: (boolean|null); + + /** CloudConversationDebuggingInfo speechSingleUtterance */ + speechSingleUtterance?: (boolean|null); + + /** CloudConversationDebuggingInfo dtmfPartialResultsTimes */ + dtmfPartialResultsTimes?: (google.protobuf.IDuration[]|null); + + /** CloudConversationDebuggingInfo dtmfFinalResultsTimes */ + dtmfFinalResultsTimes?: (google.protobuf.IDuration[]|null); + + /** CloudConversationDebuggingInfo singleUtteranceEndTimeOffset */ + singleUtteranceEndTimeOffset?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo noSpeechTimeout */ + noSpeechTimeout?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo endpointingTimeout */ + endpointingTimeout?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo isInputText */ + isInputText?: (boolean|null); + + /** CloudConversationDebuggingInfo clientHalfCloseTimeOffset */ + clientHalfCloseTimeOffset?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo clientHalfCloseStreamingTimeOffset */ + clientHalfCloseStreamingTimeOffset?: (google.protobuf.IDuration|null); } - /** Represents a TextInput. */ - class TextInput implements ITextInput { + /** Represents a CloudConversationDebuggingInfo. */ + class CloudConversationDebuggingInfo implements ICloudConversationDebuggingInfo { /** - * Constructs a new TextInput. + * Constructs a new CloudConversationDebuggingInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITextInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo); - /** TextInput text. */ - public text: string; + /** CloudConversationDebuggingInfo audioDataChunks. */ + public audioDataChunks: number; + + /** CloudConversationDebuggingInfo resultEndTimeOffset. */ + public resultEndTimeOffset?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo firstAudioDuration. */ + public firstAudioDuration?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo singleUtterance. */ + public singleUtterance: boolean; + + /** CloudConversationDebuggingInfo speechPartialResultsEndTimes. */ + public speechPartialResultsEndTimes: google.protobuf.IDuration[]; + + /** CloudConversationDebuggingInfo speechFinalResultsEndTimes. */ + public speechFinalResultsEndTimes: google.protobuf.IDuration[]; + + /** CloudConversationDebuggingInfo partialResponses. */ + public partialResponses: number; + + /** CloudConversationDebuggingInfo speakerIdPassiveLatencyMsOffset. */ + public speakerIdPassiveLatencyMsOffset: number; + + /** CloudConversationDebuggingInfo bargeinEventTriggered. */ + public bargeinEventTriggered: boolean; + + /** CloudConversationDebuggingInfo speechSingleUtterance. */ + public speechSingleUtterance: boolean; + + /** CloudConversationDebuggingInfo dtmfPartialResultsTimes. */ + public dtmfPartialResultsTimes: google.protobuf.IDuration[]; + + /** CloudConversationDebuggingInfo dtmfFinalResultsTimes. */ + public dtmfFinalResultsTimes: google.protobuf.IDuration[]; + + /** CloudConversationDebuggingInfo singleUtteranceEndTimeOffset. */ + public singleUtteranceEndTimeOffset?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo noSpeechTimeout. */ + public noSpeechTimeout?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo endpointingTimeout. */ + public endpointingTimeout?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo isInputText. */ + public isInputText: boolean; + + /** CloudConversationDebuggingInfo clientHalfCloseTimeOffset. */ + public clientHalfCloseTimeOffset?: (google.protobuf.IDuration|null); + + /** CloudConversationDebuggingInfo clientHalfCloseStreamingTimeOffset. */ + public clientHalfCloseStreamingTimeOffset?: (google.protobuf.IDuration|null); /** - * Creates a new TextInput instance using the specified properties. + * Creates a new CloudConversationDebuggingInfo instance using the specified properties. * @param [properties] Properties to set - * @returns TextInput instance + * @returns CloudConversationDebuggingInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITextInput): google.cloud.dialogflow.cx.v3.TextInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo): google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo; /** - * 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 + * Encodes the specified CloudConversationDebuggingInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify|verify} messages. + * @param message CloudConversationDebuggingInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified CloudConversationDebuggingInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify|verify} messages. + * @param message CloudConversationDebuggingInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TextInput message from the specified reader or buffer. + * Decodes a CloudConversationDebuggingInfo 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 CloudConversationDebuggingInfo * @throws {Error} If the payload is not a reader or 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.TextInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo; /** - * Decodes a TextInput message from the specified reader or buffer, length delimited. + * Decodes a CloudConversationDebuggingInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TextInput + * @returns CloudConversationDebuggingInfo * @throws {Error} If the payload is not a 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.TextInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo; /** - * Verifies a TextInput message. + * Verifies a CloudConversationDebuggingInfo message. * @param message Plain 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 CloudConversationDebuggingInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TextInput + * @returns CloudConversationDebuggingInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TextInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo; /** - * 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 CloudConversationDebuggingInfo message. Also converts values to other types if specified. + * @param message CloudConversationDebuggingInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TextInput to JSON. + * Converts this CloudConversationDebuggingInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TextInput + * Gets the default type url for CloudConversationDebuggingInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IntentInput. */ - interface IIntentInput { + /** Properties of a StreamingDetectIntentResponse. */ + interface IStreamingDetectIntentResponse { - /** IntentInput intent */ - intent?: (string|null); + /** StreamingDetectIntentResponse recognitionResult */ + recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); + + /** StreamingDetectIntentResponse detectIntentResponse */ + detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); + + /** StreamingDetectIntentResponse debuggingInfo */ + debuggingInfo?: (google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo|null); } - /** Represents an IntentInput. */ - class IntentInput implements IIntentInput { + /** Represents a StreamingDetectIntentResponse. */ + class StreamingDetectIntentResponse implements IStreamingDetectIntentResponse { /** - * Constructs a new IntentInput. + * Constructs a new StreamingDetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse); - /** IntentInput intent. */ - public intent: string; + /** StreamingDetectIntentResponse recognitionResult. */ + public recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); + + /** StreamingDetectIntentResponse detectIntentResponse. */ + public detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); + + /** StreamingDetectIntentResponse debuggingInfo. */ + public debuggingInfo?: (google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo|null); + + /** StreamingDetectIntentResponse response. */ + public response?: ("recognitionResult"|"detectIntentResponse"); /** - * Creates a new IntentInput instance using the specified properties. + * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns IntentInput instance + * @returns StreamingDetectIntentResponse 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.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * 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 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.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, 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 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.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntentInput 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 IntentInput + * @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.IntentInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Decodes an IntentInput 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 IntentInput + * @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.IntentInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Verifies an IntentInput 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 an IntentInput 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 IntentInput + * @returns StreamingDetectIntentResponse */ - 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.StreamingDetectIntentResponse; /** - * 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 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.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntentInput to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IntentInput + * Gets the default type url for StreamingDetectIntentResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AudioInput. */ - interface IAudioInput { + /** Properties of a StreamingRecognitionResult. */ + interface IStreamingRecognitionResult { - /** AudioInput config */ - config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); + /** StreamingRecognitionResult messageType */ + messageType?: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null); - /** AudioInput audio */ - audio?: (Uint8Array|string|null); - } + /** StreamingRecognitionResult transcript */ + transcript?: (string|null); - /** Represents an AudioInput. */ - class AudioInput implements IAudioInput { + /** StreamingRecognitionResult isFinal */ + isFinal?: (boolean|null); + + /** StreamingRecognitionResult confidence */ + confidence?: (number|null); + + /** StreamingRecognitionResult stability */ + stability?: (number|null); + + /** StreamingRecognitionResult speechWordInfo */ + speechWordInfo?: (google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]|null); + + /** StreamingRecognitionResult speechEndOffset */ + speechEndOffset?: (google.protobuf.IDuration|null); + + /** StreamingRecognitionResult languageCode */ + languageCode?: (string|null); + } + + /** Represents a StreamingRecognitionResult. */ + class StreamingRecognitionResult implements IStreamingRecognitionResult { /** - * Constructs a new AudioInput. + * Constructs a new StreamingRecognitionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IAudioInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult); - /** AudioInput config. */ - public config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); + /** StreamingRecognitionResult messageType. */ + public messageType: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType); - /** AudioInput audio. */ - public audio: (Uint8Array|string); + /** 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.v3.ISpeechWordInfo[]; + + /** StreamingRecognitionResult speechEndOffset. */ + public speechEndOffset?: (google.protobuf.IDuration|null); + + /** StreamingRecognitionResult languageCode. */ + public languageCode: string; /** - * Creates a new AudioInput instance using the specified properties. + * Creates a new StreamingRecognitionResult instance using the specified properties. * @param [properties] Properties to set - * @returns AudioInput instance + * @returns StreamingRecognitionResult 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.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * 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 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.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, 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 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.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudioInput 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 AudioInput + * @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.AudioInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Decodes an AudioInput 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 AudioInput + * @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.AudioInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Verifies an AudioInput 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 an AudioInput 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 AudioInput + * @returns StreamingRecognitionResult */ - 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.StreamingRecognitionResult; /** - * 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 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.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudioInput to JSON. + * Converts this StreamingRecognitionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudioInput + * Gets the default type url for StreamingRecognitionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EventInput. */ - interface IEventInput { + namespace StreamingRecognitionResult { - /** EventInput event */ - event?: (string|null); + /** MessageType enum. */ + enum MessageType { + MESSAGE_TYPE_UNSPECIFIED = 0, + TRANSCRIPT = 1, + END_OF_SINGLE_UTTERANCE = 2 + } } - /** Represents an EventInput. */ - class EventInput implements IEventInput { + /** 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); + + /** QueryParameters parameters */ + parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters currentPage */ + currentPage?: (string|null); + + /** QueryParameters disableWebhook */ + disableWebhook?: (boolean|null); + + /** QueryParameters analyzeQueryTextSentiment */ + analyzeQueryTextSentiment?: (boolean|null); + + /** QueryParameters webhookHeaders */ + webhookHeaders?: ({ [k: string]: string }|null); + + /** QueryParameters flowVersions */ + flowVersions?: (string[]|null); + + /** QueryParameters channel */ + channel?: (string|null); + + /** QueryParameters sessionTtl */ + sessionTtl?: (google.protobuf.IDuration|null); + } + + /** Represents a QueryParameters. */ + class QueryParameters implements IQueryParameters { /** - * Constructs a new EventInput. + * Constructs a new QueryParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IEventInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters); - /** EventInput event. */ - public event: string; + /** 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); + + /** QueryParameters parameters. */ + public parameters?: (google.protobuf.IStruct|null); + + /** QueryParameters currentPage. */ + public currentPage: string; + + /** QueryParameters disableWebhook. */ + public disableWebhook: boolean; + + /** QueryParameters analyzeQueryTextSentiment. */ + public analyzeQueryTextSentiment: boolean; + + /** QueryParameters webhookHeaders. */ + public webhookHeaders: { [k: string]: string }; + + /** QueryParameters flowVersions. */ + public flowVersions: string[]; + + /** QueryParameters channel. */ + public channel: string; + + /** QueryParameters sessionTtl. */ + public sessionTtl?: (google.protobuf.IDuration|null); /** - * Creates a new EventInput instance using the specified properties. + * Creates a new QueryParameters instance using the specified properties. * @param [properties] Properties to set - * @returns EventInput instance + * @returns QueryParameters 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.IQueryParameters): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * 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 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.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryParameters, 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 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.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventInput 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 EventInput + * @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.EventInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Decodes an EventInput 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 EventInput + * @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.EventInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Verifies an EventInput 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 EventInput 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 EventInput + * @returns QueryParameters */ - 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.QueryParameters; /** - * 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 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.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventInput to JSON. + * Converts this QueryParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventInput + * Gets the default type url for QueryParameters * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DtmfInput. */ - interface IDtmfInput { + /** Properties of a QueryInput. */ + interface IQueryInput { - /** DtmfInput digits */ - digits?: (string|null); + /** QueryInput text */ + text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); - /** DtmfInput finishDigit */ - finishDigit?: (string|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); + + /** QueryInput dtmf */ + dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + + /** QueryInput languageCode */ + languageCode?: (string|null); } - /** Represents a DtmfInput. */ - class DtmfInput implements IDtmfInput { + /** Represents a QueryInput. */ + class QueryInput implements IQueryInput { /** - * Constructs a new DtmfInput. + * Constructs a new QueryInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryInput); - /** DtmfInput digits. */ - public digits: string; + /** QueryInput text. */ + public text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); - /** DtmfInput finishDigit. */ - public finishDigit: string; + /** 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); + + /** QueryInput dtmf. */ + public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + + /** QueryInput languageCode. */ + public languageCode: string; + + /** QueryInput input. */ + public input?: ("text"|"intent"|"audio"|"event"|"dtmf"); /** - * Creates a new DtmfInput instance using the specified properties. + * Creates a new QueryInput instance using the specified properties. * @param [properties] Properties to set - * @returns DtmfInput instance + * @returns QueryInput 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.IQueryInput): google.cloud.dialogflow.cx.v3.QueryInput; /** - * 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 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.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryInput, 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 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.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DtmfInput 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 DtmfInput + * @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.DtmfInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Decodes a DtmfInput 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 DtmfInput + * @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.DtmfInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Verifies a DtmfInput 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 DtmfInput 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 DtmfInput + * @returns QueryInput */ - 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.QueryInput; /** - * 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 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.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DtmfInput to JSON. + * Converts this QueryInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DtmfInput + * Gets the default type url for QueryInput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Match. */ - interface IMatch { + /** Properties of a QueryResult. */ + interface IQueryResult { - /** Match intent */ - intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** QueryResult text */ + text?: (string|null); - /** Match event */ - event?: (string|null); + /** QueryResult triggerIntent */ + triggerIntent?: (string|null); - /** Match parameters */ + /** QueryResult transcript */ + transcript?: (string|null); + + /** QueryResult triggerEvent */ + triggerEvent?: (string|null); + + /** QueryResult dtmf */ + dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + + /** QueryResult languageCode */ + languageCode?: (string|null); + + /** QueryResult parameters */ parameters?: (google.protobuf.IStruct|null); - /** Match resolvedInput */ - resolvedInput?: (string|null); + /** QueryResult responseMessages */ + responseMessages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - /** Match matchType */ - matchType?: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType|null); + /** QueryResult webhookStatuses */ + webhookStatuses?: (google.rpc.IStatus[]|null); - /** Match confidence */ - confidence?: (number|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); + + /** QueryResult sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); + + /** QueryResult advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); } - /** Represents a Match. */ - class Match implements IMatch { + /** Represents a QueryResult. */ + class QueryResult implements IQueryResult { /** - * Constructs a new Match. + * Constructs a new QueryResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IMatch); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryResult); - /** Match intent. */ - public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + /** QueryResult text. */ + public text?: (string|null); - /** Match event. */ - public event: string; + /** QueryResult triggerIntent. */ + public triggerIntent?: (string|null); - /** Match parameters. */ + /** QueryResult transcript. */ + public transcript?: (string|null); + + /** QueryResult triggerEvent. */ + public triggerEvent?: (string|null); + + /** QueryResult dtmf. */ + public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); + + /** QueryResult languageCode. */ + public languageCode: string; + + /** QueryResult parameters. */ public parameters?: (google.protobuf.IStruct|null); - /** Match resolvedInput. */ - public resolvedInput: string; + /** QueryResult responseMessages. */ + public responseMessages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - /** Match matchType. */ - public matchType: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType); + /** QueryResult webhookStatuses. */ + public webhookStatuses: google.rpc.IStatus[]; - /** Match confidence. */ - public confidence: number; + /** 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); + + /** QueryResult advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + + /** QueryResult query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"); /** - * Creates a new Match instance using the specified properties. + * Creates a new QueryResult instance using the specified properties. * @param [properties] Properties to set - * @returns Match instance + * @returns QueryResult 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.IQueryResult): google.cloud.dialogflow.cx.v3.QueryResult; /** - * 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 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.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryResult, 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 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.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Match 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 Match + * @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.Match; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Decodes a Match 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 Match + * @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.Match; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Verifies a Match 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 Match 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 Match + * @returns QueryResult */ - 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.QueryResult; /** - * Creates a plain object from a Match message. Also converts values to other types if specified. - * @param message Match - * @param [options] Conversion options + * 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.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Match to JSON. + * Converts this QueryResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Match + * Gets the default type url for QueryResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - 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); - - /** MatchIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - - /** MatchIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + /** Properties of a TextInput. */ + interface ITextInput { - /** MatchIntentRequest persistParameterChanges */ - persistParameterChanges?: (boolean|null); + /** TextInput text */ + text?: (string|null); } - /** Represents a MatchIntentRequest. */ - class MatchIntentRequest implements IMatchIntentRequest { + /** Represents a TextInput. */ + class TextInput implements ITextInput { /** - * Constructs a new MatchIntentRequest. + * Constructs a new TextInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest); - - /** 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); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITextInput); - /** MatchIntentRequest persistParameterChanges. */ - public persistParameterChanges: boolean; + /** TextInput text. */ + public text: string; /** - * Creates a new MatchIntentRequest instance using the specified properties. + * Creates a new TextInput instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentRequest instance + * @returns TextInput 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.ITextInput): google.cloud.dialogflow.cx.v3.TextInput; /** - * 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 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.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITextInput, 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 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.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentRequest 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 MatchIntentRequest + * @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.MatchIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TextInput; /** - * Decodes a MatchIntentRequest 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 MatchIntentRequest + * @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.MatchIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TextInput; /** - * Verifies a MatchIntentRequest 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 MatchIntentRequest 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 MatchIntentRequest + * @returns TextInput */ - 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.TextInput; /** - * 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 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.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this TextInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MatchIntentRequest + * Gets the default type url for TextInput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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); - - /** MatchIntentResponse matches */ - matches?: (google.cloud.dialogflow.cx.v3.IMatch[]|null); + /** Properties of an IntentInput. */ + interface IIntentInput { - /** MatchIntentResponse currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** IntentInput intent */ + intent?: (string|null); } - /** Represents a MatchIntentResponse. */ - class MatchIntentResponse implements IMatchIntentResponse { + /** Represents an IntentInput. */ + class IntentInput implements IIntentInput { /** - * Constructs a new MatchIntentResponse. + * Constructs a new IntentInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse); - - /** MatchIntentResponse text. */ - public text?: (string|null); - - /** MatchIntentResponse triggerIntent. */ - public triggerIntent?: (string|null); - - /** MatchIntentResponse transcript. */ - public transcript?: (string|null); - - /** MatchIntentResponse triggerEvent. */ - public triggerEvent?: (string|null); - - /** MatchIntentResponse matches. */ - public matches: google.cloud.dialogflow.cx.v3.IMatch[]; - - /** MatchIntentResponse currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentInput); - /** MatchIntentResponse query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** IntentInput intent. */ + public intent: string; /** - * Creates a new MatchIntentResponse instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @param [properties] Properties to set - * @returns MatchIntentResponse instance + * @returns IntentInput 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.IIntentInput): google.cloud.dialogflow.cx.v3.IntentInput; /** - * 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 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.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IIntentInput, 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 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.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MatchIntentResponse 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 MatchIntentResponse + * @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.MatchIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Decodes a MatchIntentResponse 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 MatchIntentResponse + * @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.MatchIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Verifies a MatchIntentResponse 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 MatchIntentResponse 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 MatchIntentResponse + * @returns IntentInput */ - 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.IntentInput; /** - * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. - * @param message MatchIntentResponse + * 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.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this IntentInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MatchIntentResponse + * Gets the default type url for IntentInput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FulfillIntentRequest. */ - interface IFulfillIntentRequest { - - /** FulfillIntentRequest matchIntentRequest */ - matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); + /** Properties of an AudioInput. */ + interface IAudioInput { - /** FulfillIntentRequest match */ - match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + /** AudioInput config */ + config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); - /** FulfillIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** AudioInput audio */ + audio?: (Uint8Array|string|null); } - /** Represents a FulfillIntentRequest. */ - class FulfillIntentRequest implements IFulfillIntentRequest { + /** Represents an AudioInput. */ + class AudioInput implements IAudioInput { /** - * Constructs a new FulfillIntentRequest. + * Constructs a new AudioInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest); - - /** FulfillIntentRequest matchIntentRequest. */ - public matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IAudioInput); - /** FulfillIntentRequest match. */ - public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + /** AudioInput config. */ + public config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); - /** FulfillIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** AudioInput audio. */ + public audio: (Uint8Array|string); /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new AudioInput instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentRequest instance + * @returns AudioInput 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.IAudioInput): google.cloud.dialogflow.cx.v3.AudioInput; /** - * 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 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 static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IAudioInput, 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 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 static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentRequest 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 FulfillIntentRequest + * @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.v3.FulfillIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Decodes a FulfillIntentRequest 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 FulfillIntentRequest + * @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.v3.FulfillIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Verifies a FulfillIntentRequest 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 FulfillIntentRequest 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 FulfillIntentRequest + * @returns AudioInput */ - 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.AudioInput; /** - * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. - * @param message FulfillIntentRequest + * 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.v3.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this AudioInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FulfillIntentRequest + * Gets the default type url for AudioInput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 an EventInput. */ + interface IEventInput { - /** FulfillIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** EventInput event */ + event?: (string|null); } - /** Represents a FulfillIntentResponse. */ - class FulfillIntentResponse implements IFulfillIntentResponse { + /** Represents an EventInput. */ + class EventInput implements IEventInput { /** - * Constructs a new FulfillIntentResponse. + * Constructs a new EventInput. * @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.IEventInput); - /** FulfillIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); + /** EventInput event. */ + public event: string; /** - * Creates a new FulfillIntentResponse instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillIntentResponse instance + * @returns EventInput 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.IEventInput): google.cloud.dialogflow.cx.v3.EventInput; /** - * 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 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.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEventInput, 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 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.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillIntentResponse 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 FulfillIntentResponse + * @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.FulfillIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EventInput; /** - * Decodes a FulfillIntentResponse 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 FulfillIntentResponse + * @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.FulfillIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EventInput; /** - * Verifies a FulfillIntentResponse 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 FulfillIntentResponse 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 FulfillIntentResponse + * @returns EventInput */ - 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.EventInput; /** - * 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 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.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this EventInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FulfillIntentResponse + * Gets the default type url for EventInput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SentimentAnalysisResult. */ - interface ISentimentAnalysisResult { + /** Properties of a DtmfInput. */ + interface IDtmfInput { - /** SentimentAnalysisResult score */ - score?: (number|null); + /** DtmfInput digits */ + digits?: (string|null); - /** SentimentAnalysisResult magnitude */ - magnitude?: (number|null); + /** DtmfInput finishDigit */ + finishDigit?: (string|null); } - /** Represents a SentimentAnalysisResult. */ - class SentimentAnalysisResult implements ISentimentAnalysisResult { + /** Represents a DtmfInput. */ + class DtmfInput implements IDtmfInput { /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new DtmfInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput); - /** SentimentAnalysisResult score. */ - public score: number; + /** DtmfInput digits. */ + public digits: string; - /** SentimentAnalysisResult magnitude. */ - public magnitude: number; + /** DtmfInput finishDigit. */ + public finishDigit: string; /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * Creates a new DtmfInput instance using the specified properties. * @param [properties] Properties to set - * @returns SentimentAnalysisResult instance + * @returns DtmfInput 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.IDtmfInput): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * 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 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.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDtmfInput, 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 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.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SentimentAnalysisResult 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 SentimentAnalysisResult + * @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.SentimentAnalysisResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Decodes a SentimentAnalysisResult 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 SentimentAnalysisResult + * @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.SentimentAnalysisResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Verifies a SentimentAnalysisResult 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 SentimentAnalysisResult 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 SentimentAnalysisResult + * @returns DtmfInput */ - 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.DtmfInput; /** - * 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 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.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SentimentAnalysisResult to JSON. + * Converts this DtmfInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SentimentAnalysisResult + * Gets the default type url for DtmfInput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a SessionEntityTypes */ - class SessionEntityTypes extends $protobuf.rpc.Service { + /** Properties of a Match. */ + interface IMatch { - /** - * 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); + /** Match intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|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; + /** Match event */ + event?: (string|null); - /** - * 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.v3.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback): void; + /** Match parameters */ + parameters?: (google.protobuf.IStruct|null); - /** - * Calls ListSessionEntityTypes. - * @param request ListSessionEntityTypesRequest message or plain object - * @returns Promise - */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): Promise; + /** 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 Match. */ + class Match implements IMatch { /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * Constructs a new Match. + * @param [properties] Properties to set */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatch); - /** - * Calls GetSessionEntityType. - * @param request GetSessionEntityTypeRequest message or plain object - * @returns Promise - */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): Promise; + /** Match intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); - /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType - */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback): void; + /** 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; /** - * Calls CreateSessionEntityType. - * @param request CreateSessionEntityTypeRequest message or plain object - * @returns Promise + * Creates a new Match instance using the specified properties. + * @param [properties] Properties to set + * @returns Match instance */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatch): google.cloud.dialogflow.cx.v3.Match; /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SessionEntityType + * 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 updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateSessionEntityType. - * @param request UpdateSessionEntityTypeRequest message or plain object - * @returns Promise + * 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 updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * 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 Match + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Match; /** - * Calls DeleteSessionEntityType. - * @param request DeleteSessionEntityTypeRequest message or plain object - * @returns Promise + * Decodes a Match message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Match + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): Promise; - } - - namespace SessionEntityTypes { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Match; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|listSessionEntityTypes}. - * @param error Error, if any - * @param [response] ListSessionEntityTypesResponse + * Verifies a Match message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|getSessionEntityType}. - * @param error Error, if any - * @param [response] SessionEntityType + * Creates a Match message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Match */ - type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Match; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|createSessionEntityType}. - * @param error Error, if any - * @param [response] SessionEntityType + * 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 */ - type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|updateSessionEntityType}. - * @param error Error, if any - * @param [response] SessionEntityType + * Converts this Match to JSON. + * @returns JSON object */ - type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|deleteSessionEntityType}. - * @param error Error, if any - * @param [response] Empty + * Gets the default type url for Match + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SessionEntityType. */ - interface ISessionEntityType { + namespace Match { - /** SessionEntityType 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 + } + } - /** SessionEntityType entityOverrideMode */ - entityOverrideMode?: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null); + /** Properties of a MatchIntentRequest. */ + interface IMatchIntentRequest { - /** SessionEntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); + /** 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); + + /** MatchIntentRequest persistParameterChanges */ + persistParameterChanges?: (boolean|null); } - /** Represents a SessionEntityType. */ - class SessionEntityType implements ISessionEntityType { + /** Represents a MatchIntentRequest. */ + class MatchIntentRequest implements IMatchIntentRequest { /** - * Constructs a new SessionEntityType. + * Constructs a new MatchIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest); - /** SessionEntityType name. */ - public name: string; + /** MatchIntentRequest session. */ + public session: string; - /** SessionEntityType entityOverrideMode. */ - public entityOverrideMode: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode); + /** MatchIntentRequest queryParams. */ + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); - /** SessionEntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; + /** MatchIntentRequest queryInput. */ + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); + + /** MatchIntentRequest persistParameterChanges. */ + public persistParameterChanges: boolean; /** - * Creates a new SessionEntityType instance using the specified properties. + * Creates a new MatchIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SessionEntityType instance + * @returns MatchIntentRequest 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.IMatchIntentRequest): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * 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 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.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, 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 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.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SessionEntityType 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 SessionEntityType + * @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.SessionEntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Decodes a SessionEntityType 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 SessionEntityType + * @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.SessionEntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Verifies a SessionEntityType 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 SessionEntityType 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 SessionEntityType + * @returns MatchIntentRequest */ - 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.MatchIntentRequest; /** - * 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 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.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SessionEntityType to JSON. + * Converts this MatchIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SessionEntityType + * Gets the default type url for MatchIntentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SessionEntityType { + /** Properties of a MatchIntentResponse. */ + interface IMatchIntentResponse { - /** EntityOverrideMode enum. */ - enum EntityOverrideMode { - ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0, - ENTITY_OVERRIDE_MODE_OVERRIDE = 1, - ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2 - } - } + /** MatchIntentResponse text */ + text?: (string|null); - /** Properties of a ListSessionEntityTypesRequest. */ - interface IListSessionEntityTypesRequest { + /** MatchIntentResponse triggerIntent */ + triggerIntent?: (string|null); - /** ListSessionEntityTypesRequest parent */ - parent?: (string|null); + /** MatchIntentResponse transcript */ + transcript?: (string|null); - /** ListSessionEntityTypesRequest pageSize */ - pageSize?: (number|null); + /** MatchIntentResponse triggerEvent */ + triggerEvent?: (string|null); - /** ListSessionEntityTypesRequest pageToken */ - pageToken?: (string|null); + /** MatchIntentResponse matches */ + matches?: (google.cloud.dialogflow.cx.v3.IMatch[]|null); + + /** MatchIntentResponse currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); } - /** Represents a ListSessionEntityTypesRequest. */ - class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { + /** Represents a MatchIntentResponse. */ + class MatchIntentResponse implements IMatchIntentResponse { /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new MatchIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse); - /** ListSessionEntityTypesRequest parent. */ - public parent: string; + /** MatchIntentResponse text. */ + public text?: (string|null); - /** ListSessionEntityTypesRequest pageSize. */ - public pageSize: number; + /** MatchIntentResponse triggerIntent. */ + public triggerIntent?: (string|null); - /** ListSessionEntityTypesRequest pageToken. */ - public pageToken: string; + /** MatchIntentResponse transcript. */ + public transcript?: (string|null); + + /** MatchIntentResponse triggerEvent. */ + public triggerEvent?: (string|null); + + /** 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 ListSessionEntityTypesRequest instance using the specified properties. + * Creates a new MatchIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesRequest instance + * @returns MatchIntentResponse 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.IMatchIntentResponse): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * 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 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.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, 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 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.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesRequest 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 ListSessionEntityTypesRequest + * @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.ListSessionEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Decodes a ListSessionEntityTypesRequest 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 ListSessionEntityTypesRequest + * @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.ListSessionEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Verifies a ListSessionEntityTypesRequest 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 ListSessionEntityTypesRequest 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 ListSessionEntityTypesRequest + * @returns MatchIntentResponse */ - 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.MatchIntentResponse; /** - * 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 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.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this MatchIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSessionEntityTypesRequest + * Gets the default type url for MatchIntentResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSessionEntityTypesResponse. */ - interface IListSessionEntityTypesResponse { + /** Properties of a FulfillIntentRequest. */ + interface IFulfillIntentRequest { - /** ListSessionEntityTypesResponse sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); + /** FulfillIntentRequest matchIntentRequest */ + matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); - /** ListSessionEntityTypesResponse nextPageToken */ - nextPageToken?: (string|null); + /** FulfillIntentRequest match */ + match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + + /** FulfillIntentRequest outputAudioConfig */ + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } - /** Represents a ListSessionEntityTypesResponse. */ - class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { + /** Represents a FulfillIntentRequest. */ + class FulfillIntentRequest implements IFulfillIntentRequest { /** - * Constructs a new ListSessionEntityTypesResponse. + * Constructs a new FulfillIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest); - /** ListSessionEntityTypesResponse sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; + /** FulfillIntentRequest matchIntentRequest. */ + public matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); - /** ListSessionEntityTypesResponse nextPageToken. */ - public nextPageToken: string; + /** FulfillIntentRequest match. */ + public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); + + /** FulfillIntentRequest outputAudioConfig. */ + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. + * Creates a new FulfillIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListSessionEntityTypesResponse instance + * @returns FulfillIntentRequest 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.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * 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 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.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, 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 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.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSessionEntityTypesResponse 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 ListSessionEntityTypesResponse + * @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.ListSessionEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Decodes a ListSessionEntityTypesResponse 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 ListSessionEntityTypesResponse + * @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.ListSessionEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Verifies a ListSessionEntityTypesResponse 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 ListSessionEntityTypesResponse 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 ListSessionEntityTypesResponse + * @returns FulfillIntentRequest */ - 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.FulfillIntentRequest; /** - * 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 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.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSessionEntityTypesResponse to JSON. + * Converts this FulfillIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSessionEntityTypesResponse + * Gets the default type url for FulfillIntentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetSessionEntityTypeRequest. */ - interface IGetSessionEntityTypeRequest { + /** Properties of a FulfillIntentResponse. */ + interface IFulfillIntentResponse { - /** GetSessionEntityTypeRequest 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 GetSessionEntityTypeRequest. */ - class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { + /** Represents a FulfillIntentResponse. */ + class FulfillIntentResponse implements IFulfillIntentResponse { /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new FulfillIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse); - /** GetSessionEntityTypeRequest 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 GetSessionEntityTypeRequest instance using the specified properties. + * Creates a new FulfillIntentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetSessionEntityTypeRequest instance + * @returns FulfillIntentResponse 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.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * 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 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.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, 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 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.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetSessionEntityTypeRequest 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 GetSessionEntityTypeRequest + * @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.GetSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Decodes a GetSessionEntityTypeRequest 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 GetSessionEntityTypeRequest + * @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.GetSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Verifies a GetSessionEntityTypeRequest 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 GetSessionEntityTypeRequest 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 GetSessionEntityTypeRequest + * @returns FulfillIntentResponse */ - 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.FulfillIntentResponse; /** - * 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 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.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this FulfillIntentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetSessionEntityTypeRequest + * Gets the default type url for FulfillIntentResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateSessionEntityTypeRequest. */ - interface ICreateSessionEntityTypeRequest { + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { - /** CreateSessionEntityTypeRequest parent */ - parent?: (string|null); + /** SentimentAnalysisResult score */ + score?: (number|null); - /** CreateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|null); } - /** Represents a CreateSessionEntityTypeRequest. */ - class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { - - /** - * Constructs a new CreateSessionEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest); - - /** CreateSessionEntityTypeRequest parent. */ - public parent: string; - - /** CreateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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 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; - - /** - * 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 }; - - /** - * Converts this CreateSessionEntityTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateSessionEntityTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateSessionEntityTypeRequest. */ - interface IUpdateSessionEntityTypeRequest { - - /** UpdateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); - - /** UpdateSessionEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents an UpdateSessionEntityTypeRequest. */ - class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { - - /** - * Constructs a new UpdateSessionEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest); - - /** UpdateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); - - /** UpdateSessionEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { /** - * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. + * Constructs a new SentimentAnalysisResult. * @param [properties] Properties to set - * @returns UpdateSessionEntityTypeRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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 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; - - /** - * 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 }; - - /** - * Converts this UpdateSessionEntityTypeRequest to JSON. - * @returns JSON object */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateSessionEntityTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteSessionEntityTypeRequest. */ - interface IDeleteSessionEntityTypeRequest { - - /** DeleteSessionEntityTypeRequest name */ - name?: (string|null); - } - - /** Represents a DeleteSessionEntityTypeRequest. */ - class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { + constructor(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult); - /** - * Constructs a new DeleteSessionEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest); + /** SentimentAnalysisResult score. */ + public score: number; - /** DeleteSessionEntityTypeRequest name. */ - public name: string; + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * Creates a new SentimentAnalysisResult instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSessionEntityTypeRequest instance + * @returns SentimentAnalysisResult 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.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * 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 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 static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, 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 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 static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * 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 DeleteSessionEntityTypeRequest + * @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.DeleteSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSessionEntityTypeRequest + * @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.DeleteSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Verifies a DeleteSessionEntityTypeRequest message. + * 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 DeleteSessionEntityTypeRequest 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. * @param object Plain object - * @returns DeleteSessionEntityTypeRequest + * @returns SentimentAnalysisResult */ - 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.SentimentAnalysisResult; /** - * 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 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.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSessionEntityTypeRequest to JSON. + * Converts this SentimentAnalysisResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteSessionEntityTypeRequest + * Gets the default type url for SentimentAnalysisResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a TransitionRouteGroups */ - class TransitionRouteGroups extends $protobuf.rpc.Service { + /** Represents a SessionEntityTypes */ + class SessionEntityTypes extends $protobuf.rpc.Service { /** - * Constructs a new TransitionRouteGroups service. + * 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 @@ -24166,879 +24457,859 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. + * 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): TransitionRouteGroups; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionEntityTypes; /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback): void; /** - * Calls ListTransitionRouteGroups. - * @param request ListTransitionRouteGroupsRequest message or plain object + * Calls ListSessionEntityTypes. + * @param request ListSessionEntityTypesRequest message or plain object * @returns Promise */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): Promise; + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): Promise; /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback): void; /** - * Calls GetTransitionRouteGroup. - * @param request GetTransitionRouteGroupRequest message or plain object + * Calls GetSessionEntityType. + * @param request GetSessionEntityTypeRequest message or plain object * @returns Promise */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): Promise; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): Promise; /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback): void; /** - * Calls CreateTransitionRouteGroup. - * @param request CreateTransitionRouteGroupRequest message or plain object + * Calls CreateSessionEntityType. + * @param request CreateSessionEntityTypeRequest message or plain object * @returns Promise */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): Promise; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): Promise; /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; /** - * Calls UpdateTransitionRouteGroup. - * @param request UpdateTransitionRouteGroupRequest message or plain object + * Calls UpdateSessionEntityType. + * @param request UpdateSessionEntityTypeRequest message or plain object * @returns Promise */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): Promise; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): Promise; /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or 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 deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; /** - * Calls DeleteTransitionRouteGroup. - * @param request DeleteTransitionRouteGroupRequest message or plain object + * Calls DeleteSessionEntityType. + * @param request DeleteSessionEntityTypeRequest message or plain object * @returns Promise */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): Promise; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): Promise; } - namespace TransitionRouteGroups { + namespace SessionEntityTypes { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|listTransitionRouteGroups}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|listSessionEntityTypes}. * @param error Error, if any - * @param [response] ListTransitionRouteGroupsResponse + * @param [response] ListSessionEntityTypesResponse */ - type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) => void; + type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|getTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|getSessionEntityType}. * @param error Error, if any - * @param [response] TransitionRouteGroup + * @param [response] SessionEntityType */ - type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|createTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|createSessionEntityType}. * @param error Error, if any - * @param [response] TransitionRouteGroup + * @param [response] SessionEntityType */ - type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|updateTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|updateSessionEntityType}. * @param error Error, if any - * @param [response] TransitionRouteGroup + * @param [response] SessionEntityType */ - type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; + type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|deleteTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes|deleteSessionEntityType}. * @param error Error, if any * @param [response] Empty */ - type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type DeleteSessionEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a TransitionRouteGroup. */ - interface ITransitionRouteGroup { + /** Properties of a SessionEntityType. */ + interface ISessionEntityType { - /** TransitionRouteGroup name */ + /** SessionEntityType name */ name?: (string|null); - /** TransitionRouteGroup displayName */ - displayName?: (string|null); + /** SessionEntityType entityOverrideMode */ + entityOverrideMode?: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null); - /** TransitionRouteGroup transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); + /** SessionEntityType entities */ + entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); } - /** Represents a TransitionRouteGroup. */ - class TransitionRouteGroup implements ITransitionRouteGroup { + /** Represents a SessionEntityType. */ + class SessionEntityType implements ISessionEntityType { /** - * Constructs a new TransitionRouteGroup. + * Constructs a new SessionEntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType); - /** TransitionRouteGroup name. */ + /** SessionEntityType name. */ public name: string; - /** TransitionRouteGroup displayName. */ - public displayName: string; + /** SessionEntityType entityOverrideMode. */ + public entityOverrideMode: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode); - /** TransitionRouteGroup transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; + /** SessionEntityType entities. */ + public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; /** - * Creates a new TransitionRouteGroup instance using the specified properties. + * Creates a new SessionEntityType instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionRouteGroup instance + * @returns SessionEntityType 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.ISessionEntityType): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * 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 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.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, 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 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.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionRouteGroup 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 TransitionRouteGroup + * @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.TransitionRouteGroup; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Decodes a TransitionRouteGroup 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 TransitionRouteGroup + * @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.TransitionRouteGroup; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Verifies a TransitionRouteGroup 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 TransitionRouteGroup 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 TransitionRouteGroup + * @returns SessionEntityType */ - 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.SessionEntityType; /** - * 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 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.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionRouteGroup to JSON. + * Converts this SessionEntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TransitionRouteGroup + * Gets the default type url for SessionEntityType * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTransitionRouteGroupsRequest. */ - interface IListTransitionRouteGroupsRequest { + namespace SessionEntityType { - /** ListTransitionRouteGroupsRequest parent */ + /** 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); - /** ListTransitionRouteGroupsRequest pageSize */ + /** ListSessionEntityTypesRequest pageSize */ pageSize?: (number|null); - /** ListTransitionRouteGroupsRequest pageToken */ + /** ListSessionEntityTypesRequest pageToken */ pageToken?: (string|null); - - /** ListTransitionRouteGroupsRequest languageCode */ - languageCode?: (string|null); } - /** Represents a ListTransitionRouteGroupsRequest. */ - class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { + /** Represents a ListSessionEntityTypesRequest. */ + class ListSessionEntityTypesRequest implements IListSessionEntityTypesRequest { /** - * Constructs a new ListTransitionRouteGroupsRequest. + * Constructs a new ListSessionEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest); - /** ListTransitionRouteGroupsRequest parent. */ + /** ListSessionEntityTypesRequest parent. */ public parent: string; - /** ListTransitionRouteGroupsRequest pageSize. */ + /** ListSessionEntityTypesRequest pageSize. */ public pageSize: number; - /** ListTransitionRouteGroupsRequest pageToken. */ + /** ListSessionEntityTypesRequest pageToken. */ public pageToken: string; - /** ListTransitionRouteGroupsRequest languageCode. */ - public languageCode: string; - /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsRequest instance + * @returns ListSessionEntityTypesRequest 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.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * 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 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.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, 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 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.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTransitionRouteGroupsRequest 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 ListTransitionRouteGroupsRequest + * @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.ListTransitionRouteGroupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Decodes a ListTransitionRouteGroupsRequest 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 ListTransitionRouteGroupsRequest + * @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.ListTransitionRouteGroupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Verifies a ListTransitionRouteGroupsRequest 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 ListTransitionRouteGroupsRequest 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 ListTransitionRouteGroupsRequest + * @returns ListSessionEntityTypesRequest */ - 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.ListSessionEntityTypesRequest; /** - * 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 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.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTransitionRouteGroupsRequest to JSON. + * Converts this ListSessionEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTransitionRouteGroupsRequest + * Gets the default type url for ListSessionEntityTypesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTransitionRouteGroupsResponse. */ - interface IListTransitionRouteGroupsResponse { + /** Properties of a ListSessionEntityTypesResponse. */ + interface IListSessionEntityTypesResponse { - /** ListTransitionRouteGroupsResponse transitionRouteGroups */ - transitionRouteGroups?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]|null); + /** ListSessionEntityTypesResponse sessionEntityTypes */ + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); - /** ListTransitionRouteGroupsResponse nextPageToken */ + /** ListSessionEntityTypesResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListTransitionRouteGroupsResponse. */ - class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { + /** Represents a ListSessionEntityTypesResponse. */ + class ListSessionEntityTypesResponse implements IListSessionEntityTypesResponse { /** - * Constructs a new ListTransitionRouteGroupsResponse. + * Constructs a new ListSessionEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse); - /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ - public transitionRouteGroups: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]; + /** ListSessionEntityTypesResponse sessionEntityTypes. */ + public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; - /** ListTransitionRouteGroupsResponse nextPageToken. */ + /** ListSessionEntityTypesResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTransitionRouteGroupsResponse instance + * @returns ListSessionEntityTypesResponse 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.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * 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 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.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, 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 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.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTransitionRouteGroupsResponse 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 ListTransitionRouteGroupsResponse + * @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.ListTransitionRouteGroupsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Decodes a ListTransitionRouteGroupsResponse 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 ListTransitionRouteGroupsResponse + * @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.ListTransitionRouteGroupsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Verifies a ListTransitionRouteGroupsResponse 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 ListTransitionRouteGroupsResponse 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 ListTransitionRouteGroupsResponse + * @returns ListSessionEntityTypesResponse */ - 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.ListSessionEntityTypesResponse; /** - * 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 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.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTransitionRouteGroupsResponse to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTransitionRouteGroupsResponse + * Gets the default type url for ListSessionEntityTypesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTransitionRouteGroupRequest. */ - interface IGetTransitionRouteGroupRequest { + /** Properties of a GetSessionEntityTypeRequest. */ + interface IGetSessionEntityTypeRequest { - /** GetTransitionRouteGroupRequest name */ + /** GetSessionEntityTypeRequest name */ name?: (string|null); - - /** GetTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); } - /** Represents a GetTransitionRouteGroupRequest. */ - class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { + /** Represents a GetSessionEntityTypeRequest. */ + class GetSessionEntityTypeRequest implements IGetSessionEntityTypeRequest { /** - * Constructs a new GetTransitionRouteGroupRequest. + * Constructs a new GetSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest); - /** GetTransitionRouteGroupRequest name. */ + /** GetSessionEntityTypeRequest name. */ public name: string; - /** GetTransitionRouteGroupRequest languageCode. */ - public languageCode: string; - /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTransitionRouteGroupRequest instance + * @returns GetSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * 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 + * 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.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, 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 + * 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.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTransitionRouteGroupRequest 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 GetTransitionRouteGroupRequest + * @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.GetTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Decodes a GetTransitionRouteGroupRequest 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 GetTransitionRouteGroupRequest + * @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.GetTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Verifies a GetTransitionRouteGroupRequest 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 GetTransitionRouteGroupRequest 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 GetTransitionRouteGroupRequest + * @returns GetSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message GetTransitionRouteGroupRequest + * 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.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTransitionRouteGroupRequest to JSON. + * Converts this GetSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTransitionRouteGroupRequest + * Gets the default type url for GetSessionEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTransitionRouteGroupRequest. */ - interface ICreateTransitionRouteGroupRequest { + /** Properties of a CreateSessionEntityTypeRequest. */ + interface ICreateSessionEntityTypeRequest { - /** CreateTransitionRouteGroupRequest parent */ + /** CreateSessionEntityTypeRequest parent */ parent?: (string|null); - /** CreateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - - /** CreateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); + /** CreateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); } - /** Represents a CreateTransitionRouteGroupRequest. */ - class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { + /** Represents a CreateSessionEntityTypeRequest. */ + class CreateSessionEntityTypeRequest implements ICreateSessionEntityTypeRequest { /** - * Constructs a new CreateTransitionRouteGroupRequest. + * Constructs a new CreateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest); - /** CreateTransitionRouteGroupRequest parent. */ + /** CreateSessionEntityTypeRequest parent. */ public parent: string; - /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - - /** CreateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; + /** CreateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTransitionRouteGroupRequest instance + * @returns CreateSessionEntityTypeRequest 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.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** - * 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 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.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, 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 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.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTransitionRouteGroupRequest 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 CreateTransitionRouteGroupRequest + * @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.CreateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** - * Decodes a CreateTransitionRouteGroupRequest 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 CreateTransitionRouteGroupRequest + * @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.CreateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** - * Verifies a CreateTransitionRouteGroupRequest 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 CreateTransitionRouteGroupRequest 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 CreateTransitionRouteGroupRequest + * @returns CreateSessionEntityTypeRequest */ - 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.CreateSessionEntityTypeRequest; /** - * 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 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.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTransitionRouteGroupRequest to JSON. + * Converts this CreateSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTransitionRouteGroupRequest + * Gets the default type url for CreateSessionEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTransitionRouteGroupRequest. */ - interface IUpdateTransitionRouteGroupRequest { + /** Properties of an UpdateSessionEntityTypeRequest. */ + interface IUpdateSessionEntityTypeRequest { - /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** UpdateSessionEntityTypeRequest sessionEntityType */ + sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); - /** UpdateTransitionRouteGroupRequest updateMask */ + /** UpdateSessionEntityTypeRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); - - /** UpdateTransitionRouteGroupRequest languageCode */ - languageCode?: (string|null); } - /** Represents an UpdateTransitionRouteGroupRequest. */ - class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { + /** Represents an UpdateSessionEntityTypeRequest. */ + class UpdateSessionEntityTypeRequest implements IUpdateSessionEntityTypeRequest { /** - * Constructs a new UpdateTransitionRouteGroupRequest. + * Constructs a new UpdateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest); - /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + /** UpdateSessionEntityTypeRequest sessionEntityType. */ + public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); - /** UpdateTransitionRouteGroupRequest updateMask. */ + /** UpdateSessionEntityTypeRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); - /** UpdateTransitionRouteGroupRequest languageCode. */ - public languageCode: string; - /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTransitionRouteGroupRequest instance + * @returns UpdateSessionEntityTypeRequest 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.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** - * 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 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.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, 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 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.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTransitionRouteGroupRequest 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 UpdateTransitionRouteGroupRequest + * @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.UpdateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** - * Decodes an UpdateTransitionRouteGroupRequest 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 UpdateTransitionRouteGroupRequest + * @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.UpdateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** - * Verifies an UpdateTransitionRouteGroupRequest 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 an UpdateTransitionRouteGroupRequest 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 UpdateTransitionRouteGroupRequest + * @returns UpdateSessionEntityTypeRequest */ - 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.UpdateSessionEntityTypeRequest; /** - * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. - * @param message UpdateTransitionRouteGroupRequest + * 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.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. + * Converts this UpdateSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTransitionRouteGroupRequest + * Gets the default type url for UpdateSessionEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTransitionRouteGroupRequest. */ - interface IDeleteTransitionRouteGroupRequest { + /** Properties of a DeleteSessionEntityTypeRequest. */ + interface IDeleteSessionEntityTypeRequest { - /** DeleteTransitionRouteGroupRequest name */ + /** DeleteSessionEntityTypeRequest name */ name?: (string|null); - - /** DeleteTransitionRouteGroupRequest force */ - force?: (boolean|null); } - /** Represents a DeleteTransitionRouteGroupRequest. */ - class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { + /** Represents a DeleteSessionEntityTypeRequest. */ + class DeleteSessionEntityTypeRequest implements IDeleteSessionEntityTypeRequest { /** - * Constructs a new DeleteTransitionRouteGroupRequest. + * Constructs a new DeleteSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest); - /** DeleteTransitionRouteGroupRequest name. */ + /** DeleteSessionEntityTypeRequest name. */ public name: string; - /** DeleteTransitionRouteGroupRequest force. */ - public force: boolean; - /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTransitionRouteGroupRequest instance + * @returns DeleteSessionEntityTypeRequest 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.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** - * 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 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.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, 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 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.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTransitionRouteGroupRequest 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 DeleteTransitionRouteGroupRequest + * @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.DeleteTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** - * Decodes a DeleteTransitionRouteGroupRequest 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 DeleteTransitionRouteGroupRequest + * @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.DeleteTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** - * Verifies a DeleteTransitionRouteGroupRequest 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 a DeleteTransitionRouteGroupRequest 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 DeleteTransitionRouteGroupRequest + * @returns DeleteSessionEntityTypeRequest */ - 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.DeleteSessionEntityTypeRequest; /** - * 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 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.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTransitionRouteGroupRequest to JSON. + * Converts this DeleteSessionEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTransitionRouteGroupRequest + * Gets the default type url for DeleteSessionEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a Webhooks */ - class Webhooks extends $protobuf.rpc.Service { + /** Represents a TransitionRouteGroups */ + class TransitionRouteGroups extends $protobuf.rpc.Service { /** - * Constructs a new Webhooks 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 @@ -25046,16487 +25317,19250 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new Webhooks service using the specified rpc implementation. + * 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): Webhooks; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TransitionRouteGroups; /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void; + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object + * Calls ListTransitionRouteGroups. + * @param request ListTransitionRouteGroupsRequest message or plain object * @returns Promise */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): Promise; + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): Promise; /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup */ - public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void; + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object + * Calls GetTransitionRouteGroup. + * @param request GetTransitionRouteGroupRequest message or plain object * @returns Promise */ - public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): Promise; + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): Promise; /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup */ - public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void; + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object + * Calls CreateTransitionRouteGroup. + * @param request CreateTransitionRouteGroupRequest message or plain object * @returns Promise */ - public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): Promise; + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): Promise; /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void; + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object + * Calls UpdateTransitionRouteGroup. + * @param request UpdateTransitionRouteGroupRequest message or plain object * @returns Promise */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): Promise; + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): Promise; /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest 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; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object + * Calls DeleteTransitionRouteGroup. + * @param request DeleteTransitionRouteGroupRequest message or plain object * @returns Promise */ - public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): Promise; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): Promise; } - namespace Webhooks { + namespace TransitionRouteGroups { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|listWebhooks}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|listTransitionRouteGroups}. * @param error Error, if any - * @param [response] ListWebhooksResponse + * @param [response] ListTransitionRouteGroupsResponse */ - type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListWebhooksResponse) => void; + type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|getWebhook}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|getTransitionRouteGroup}. * @param error Error, if any - * @param [response] Webhook + * @param [response] TransitionRouteGroup */ - type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|createWebhook}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|createTransitionRouteGroup}. * @param error Error, if any - * @param [response] Webhook + * @param [response] TransitionRouteGroup */ - type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|updateWebhook}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|updateTransitionRouteGroup}. * @param error Error, if any - * @param [response] Webhook + * @param [response] TransitionRouteGroup */ - type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|deleteWebhook}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups|deleteTransitionRouteGroup}. * @param error Error, if any * @param [response] Empty */ - type DeleteWebhookCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type DeleteTransitionRouteGroupCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a Webhook. */ - interface IWebhook { + /** Properties of a TransitionRouteGroup. */ + interface ITransitionRouteGroup { - /** Webhook name */ + /** TransitionRouteGroup name */ name?: (string|null); - /** Webhook displayName */ + /** TransitionRouteGroup displayName */ displayName?: (string|null); - /** Webhook genericWebService */ - genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - - /** Webhook serviceDirectory */ - serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); - - /** Webhook timeout */ - timeout?: (google.protobuf.IDuration|null); - - /** Webhook disabled */ - disabled?: (boolean|null); + /** TransitionRouteGroup transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); } - /** Represents a Webhook. */ - class Webhook implements IWebhook { + /** Represents a TransitionRouteGroup. */ + class TransitionRouteGroup implements ITransitionRouteGroup { /** - * Constructs a new Webhook. + * Constructs a new TransitionRouteGroup. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhook); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup); - /** Webhook name. */ + /** TransitionRouteGroup name. */ public name: string; - /** Webhook displayName. */ + /** TransitionRouteGroup displayName. */ public displayName: string; - /** Webhook genericWebService. */ - public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - - /** Webhook serviceDirectory. */ - public serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); - - /** Webhook timeout. */ - public timeout?: (google.protobuf.IDuration|null); - - /** Webhook disabled. */ - public disabled: boolean; - - /** Webhook webhook. */ - public webhook?: ("genericWebService"|"serviceDirectory"); + /** TransitionRouteGroup transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; /** - * Creates a new Webhook instance using the specified properties. + * Creates a new TransitionRouteGroup instance using the specified properties. * @param [properties] Properties to set - * @returns Webhook instance + * @returns TransitionRouteGroup 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.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * 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 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.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, 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 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.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Webhook 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 Webhook + * @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.Webhook; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Decodes a Webhook 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 Webhook + * @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.Webhook; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Verifies a Webhook 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 Webhook 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 Webhook + * @returns TransitionRouteGroup */ - 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.TransitionRouteGroup; /** - * 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 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.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Webhook to JSON. + * Converts this TransitionRouteGroup to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Webhook + * Gets the default type url for TransitionRouteGroup * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Webhook { - - /** Properties of a GenericWebService. */ - interface IGenericWebService { - - /** GenericWebService uri */ - uri?: (string|null); - - /** GenericWebService username */ - username?: (string|null); - - /** GenericWebService password */ - password?: (string|null); - - /** GenericWebService requestHeaders */ - requestHeaders?: ({ [k: string]: string }|null); - - /** GenericWebService allowedCaCerts */ - allowedCaCerts?: (Uint8Array[]|null); - - /** GenericWebService webhookType */ - webhookType?: (google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType|keyof typeof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType|null); - - /** GenericWebService httpMethod */ - httpMethod?: (google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod|keyof typeof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod|null); - - /** GenericWebService requestBody */ - requestBody?: (string|null); - - /** GenericWebService parameterMapping */ - parameterMapping?: ({ [k: string]: string }|null); - } - - /** Represents a GenericWebService. */ - class GenericWebService implements IGenericWebService { - - /** - * Constructs a new GenericWebService. - * @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; - - /** GenericWebService requestHeaders. */ - public requestHeaders: { [k: string]: string }; - - /** GenericWebService allowedCaCerts. */ - public allowedCaCerts: Uint8Array[]; - - /** GenericWebService webhookType. */ - public webhookType: (google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType|keyof typeof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType); - - /** GenericWebService httpMethod. */ - public httpMethod: (google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod|keyof typeof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod); - - /** GenericWebService requestBody. */ - public requestBody: string; - - /** GenericWebService parameterMapping. */ - public parameterMapping: { [k: string]: string }; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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); - - /** - * 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; - - /** - * 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 }; - - /** - * Converts this GenericWebService to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GenericWebService - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace GenericWebService { - - /** WebhookType enum. */ - enum WebhookType { - WEBHOOK_TYPE_UNSPECIFIED = 0, - STANDARD = 1, - FLEXIBLE = 2 - } - - /** HttpMethod enum. */ - enum HttpMethod { - HTTP_METHOD_UNSPECIFIED = 0, - POST = 1, - GET = 2, - HEAD = 3, - PUT = 4, - DELETE = 5, - PATCH = 6, - OPTIONS = 7 - } - } - - /** Properties of a ServiceDirectoryConfig. */ - interface IServiceDirectoryConfig { - - /** ServiceDirectoryConfig service */ - service?: (string|null); - - /** ServiceDirectoryConfig genericWebService */ - genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - } - - /** Represents a ServiceDirectoryConfig. */ - class ServiceDirectoryConfig implements IServiceDirectoryConfig { - - /** - * Constructs a new ServiceDirectoryConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig); - - /** ServiceDirectoryConfig service. */ - public service: string; - - /** ServiceDirectoryConfig genericWebService. */ - public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - - /** - * Creates a new ServiceDirectoryConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceDirectoryConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; - - /** - * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @param message ServiceDirectoryConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @param message ServiceDirectoryConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceDirectoryConfig - * @throws {Error} If the payload is not a reader or 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.ServiceDirectoryConfig; - - /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ServiceDirectoryConfig - * @throws {Error} If the payload is not a 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.ServiceDirectoryConfig; - - /** - * Verifies a ServiceDirectoryConfig message. - * @param message Plain 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 ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ServiceDirectoryConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; - - /** - * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. - * @param message ServiceDirectoryConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ServiceDirectoryConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ServiceDirectoryConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ListWebhooksRequest. */ - interface IListWebhooksRequest { + /** Properties of a ListTransitionRouteGroupsRequest. */ + interface IListTransitionRouteGroupsRequest { - /** ListWebhooksRequest parent */ + /** ListTransitionRouteGroupsRequest parent */ parent?: (string|null); - /** ListWebhooksRequest pageSize */ + /** ListTransitionRouteGroupsRequest pageSize */ pageSize?: (number|null); - /** ListWebhooksRequest pageToken */ + /** ListTransitionRouteGroupsRequest pageToken */ pageToken?: (string|null); + + /** ListTransitionRouteGroupsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListWebhooksRequest. */ - class ListWebhooksRequest implements IListWebhooksRequest { + /** Represents a ListTransitionRouteGroupsRequest. */ + class ListTransitionRouteGroupsRequest implements IListTransitionRouteGroupsRequest { /** - * Constructs a new ListWebhooksRequest. + * Constructs a new ListTransitionRouteGroupsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest); - /** ListWebhooksRequest parent. */ + /** ListTransitionRouteGroupsRequest parent. */ public parent: string; - /** ListWebhooksRequest pageSize. */ + /** ListTransitionRouteGroupsRequest pageSize. */ public pageSize: number; - /** ListWebhooksRequest pageToken. */ + /** ListTransitionRouteGroupsRequest pageToken. */ public pageToken: string; + /** ListTransitionRouteGroupsRequest languageCode. */ + public languageCode: string; + /** - * Creates a new ListWebhooksRequest instance using the specified properties. + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListWebhooksRequest instance + * @returns ListTransitionRouteGroupsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * 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 + * 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.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWebhooksRequest 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 ListWebhooksRequest + * @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.ListWebhooksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Decodes a ListWebhooksRequest 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 ListWebhooksRequest + * @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.ListWebhooksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Verifies a ListWebhooksRequest 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 ListWebhooksRequest 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 ListWebhooksRequest + * @returns ListTransitionRouteGroupsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. - * @param message ListWebhooksRequest + * 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.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWebhooksRequest to JSON. + * Converts this ListTransitionRouteGroupsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListWebhooksRequest + * Gets the default type url for ListTransitionRouteGroupsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListWebhooksResponse. */ - interface IListWebhooksResponse { + /** Properties of a ListTransitionRouteGroupsResponse. */ + interface IListTransitionRouteGroupsResponse { - /** ListWebhooksResponse webhooks */ - webhooks?: (google.cloud.dialogflow.cx.v3.IWebhook[]|null); + /** ListTransitionRouteGroupsResponse transitionRouteGroups */ + transitionRouteGroups?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]|null); - /** ListWebhooksResponse nextPageToken */ + /** ListTransitionRouteGroupsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListWebhooksResponse. */ - class ListWebhooksResponse implements IListWebhooksResponse { + /** Represents a ListTransitionRouteGroupsResponse. */ + class ListTransitionRouteGroupsResponse implements IListTransitionRouteGroupsResponse { /** - * Constructs a new ListWebhooksResponse. + * Constructs a new ListTransitionRouteGroupsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse); - /** ListWebhooksResponse webhooks. */ - public webhooks: google.cloud.dialogflow.cx.v3.IWebhook[]; + /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ + public transitionRouteGroups: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]; - /** ListWebhooksResponse nextPageToken. */ + /** ListTransitionRouteGroupsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListWebhooksResponse instance using the specified properties. + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListWebhooksResponse instance + * @returns ListTransitionRouteGroupsResponse 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.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** - * 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 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.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, 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 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.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWebhooksResponse 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 ListWebhooksResponse + * @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.ListWebhooksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** - * Decodes a ListWebhooksResponse 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 ListWebhooksResponse + * @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.ListWebhooksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** - * Verifies a ListWebhooksResponse 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 ListWebhooksResponse 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 ListWebhooksResponse + * @returns ListTransitionRouteGroupsResponse */ - 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.ListTransitionRouteGroupsResponse; /** - * 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 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.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWebhooksResponse to JSON. + * Converts this ListTransitionRouteGroupsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListWebhooksResponse + * Gets the default type url for ListTransitionRouteGroupsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetWebhookRequest. */ - interface IGetWebhookRequest { + /** Properties of a GetTransitionRouteGroupRequest. */ + interface IGetTransitionRouteGroupRequest { - /** GetWebhookRequest name */ + /** GetTransitionRouteGroupRequest name */ name?: (string|null); + + /** GetTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a GetWebhookRequest. */ - class GetWebhookRequest implements IGetWebhookRequest { + /** Represents a GetTransitionRouteGroupRequest. */ + class GetTransitionRouteGroupRequest implements IGetTransitionRouteGroupRequest { /** - * Constructs a new GetWebhookRequest. + * Constructs a new GetTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest); - /** GetWebhookRequest name. */ + /** GetTransitionRouteGroupRequest name. */ public name: string; + /** GetTransitionRouteGroupRequest languageCode. */ + public languageCode: string; + /** - * Creates a new GetWebhookRequest instance using the specified properties. + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetWebhookRequest instance + * @returns GetTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** - * 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 + * 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.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetWebhookRequest 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 GetWebhookRequest + * @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.GetWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** - * Decodes a GetWebhookRequest 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 GetWebhookRequest + * @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.GetWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** - * Verifies a GetWebhookRequest 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 GetWebhookRequest 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 GetWebhookRequest + * @returns GetTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** - * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. - * @param message GetWebhookRequest + * 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.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetWebhookRequest to JSON. + * Converts this GetTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetWebhookRequest + * Gets the default type url for GetTransitionRouteGroupRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateWebhookRequest. */ - interface ICreateWebhookRequest { + /** Properties of a CreateTransitionRouteGroupRequest. */ + interface ICreateTransitionRouteGroupRequest { - /** CreateWebhookRequest parent */ + /** CreateTransitionRouteGroupRequest parent */ parent?: (string|null); - /** CreateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** CreateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + + /** CreateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents a CreateWebhookRequest. */ - class CreateWebhookRequest implements ICreateWebhookRequest { + /** Represents a CreateTransitionRouteGroupRequest. */ + class CreateTransitionRouteGroupRequest implements ICreateTransitionRouteGroupRequest { /** - * Constructs a new CreateWebhookRequest. + * Constructs a new CreateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest); - /** CreateWebhookRequest parent. */ + /** CreateTransitionRouteGroupRequest parent. */ public parent: string; - /** CreateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); + + /** CreateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; /** - * Creates a new CreateWebhookRequest instance using the specified properties. + * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateWebhookRequest instance + * @returns CreateTransitionRouteGroupRequest 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.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** - * 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 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.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, 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 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.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateWebhookRequest 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 CreateWebhookRequest + * @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.CreateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** - * Decodes a CreateWebhookRequest 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 CreateWebhookRequest + * @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.CreateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** - * Verifies a CreateWebhookRequest 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 CreateWebhookRequest 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 CreateWebhookRequest + * @returns CreateTransitionRouteGroupRequest */ - 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.CreateTransitionRouteGroupRequest; /** - * 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 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.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateWebhookRequest to JSON. + * Converts this CreateTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateWebhookRequest + * Gets the default type url for CreateTransitionRouteGroupRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateWebhookRequest. */ - interface IUpdateWebhookRequest { + /** Properties of an UpdateTransitionRouteGroupRequest. */ + interface IUpdateTransitionRouteGroupRequest { - /** UpdateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** UpdateWebhookRequest updateMask */ + /** UpdateTransitionRouteGroupRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTransitionRouteGroupRequest languageCode */ + languageCode?: (string|null); } - /** Represents an UpdateWebhookRequest. */ - class UpdateWebhookRequest implements IUpdateWebhookRequest { + /** Represents an UpdateTransitionRouteGroupRequest. */ + class UpdateTransitionRouteGroupRequest implements IUpdateTransitionRouteGroupRequest { /** - * Constructs a new UpdateWebhookRequest. + * Constructs a new UpdateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest); - /** UpdateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); - /** UpdateWebhookRequest updateMask. */ + /** UpdateTransitionRouteGroupRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); + /** UpdateTransitionRouteGroupRequest languageCode. */ + public languageCode: string; + /** - * Creates a new UpdateWebhookRequest instance using the specified properties. + * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateWebhookRequest instance + * @returns UpdateTransitionRouteGroupRequest 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.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * 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 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.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, 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 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.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateWebhookRequest 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 UpdateWebhookRequest + * @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.UpdateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Decodes an UpdateWebhookRequest 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 UpdateWebhookRequest + * @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.UpdateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Verifies an UpdateWebhookRequest 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 an UpdateWebhookRequest 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 UpdateWebhookRequest + * @returns UpdateTransitionRouteGroupRequest */ - 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.UpdateTransitionRouteGroupRequest; /** - * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. - * @param message UpdateWebhookRequest + * 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.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateWebhookRequest to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateWebhookRequest + * Gets the default type url for UpdateTransitionRouteGroupRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteWebhookRequest. */ - interface IDeleteWebhookRequest { + /** Properties of a DeleteTransitionRouteGroupRequest. */ + interface IDeleteTransitionRouteGroupRequest { - /** DeleteWebhookRequest name */ + /** DeleteTransitionRouteGroupRequest name */ name?: (string|null); - /** DeleteWebhookRequest force */ + /** DeleteTransitionRouteGroupRequest force */ force?: (boolean|null); } - /** Represents a DeleteWebhookRequest. */ - class DeleteWebhookRequest implements IDeleteWebhookRequest { + /** Represents a DeleteTransitionRouteGroupRequest. */ + class DeleteTransitionRouteGroupRequest implements IDeleteTransitionRouteGroupRequest { /** - * Constructs a new DeleteWebhookRequest. + * Constructs a new DeleteTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest); - /** DeleteWebhookRequest name. */ + /** DeleteTransitionRouteGroupRequest name. */ public name: string; - /** DeleteWebhookRequest force. */ + /** DeleteTransitionRouteGroupRequest force. */ public force: boolean; /** - * Creates a new DeleteWebhookRequest instance using the specified properties. + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteWebhookRequest instance + * @returns DeleteTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** - * 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 + * 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.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, 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 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.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteWebhookRequest 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 DeleteWebhookRequest + * @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.DeleteWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** - * Decodes a DeleteWebhookRequest 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 DeleteWebhookRequest + * @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.DeleteWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** - * Verifies a DeleteWebhookRequest 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 DeleteWebhookRequest 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 DeleteWebhookRequest + * @returns DeleteTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** - * 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 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.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteWebhookRequest to JSON. + * Converts this DeleteTransitionRouteGroupRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteWebhookRequest + * Gets the default type url for DeleteTransitionRouteGroupRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WebhookRequest. */ - interface IWebhookRequest { - - /** WebhookRequest detectIntentResponseId */ - detectIntentResponseId?: (string|null); - - /** WebhookRequest text */ - text?: (string|null); - - /** WebhookRequest triggerIntent */ - triggerIntent?: (string|null); - - /** WebhookRequest transcript */ - transcript?: (string|null); - - /** WebhookRequest triggerEvent */ - triggerEvent?: (string|null); - - /** WebhookRequest dtmfDigits */ - dtmfDigits?: (string|null); - - /** WebhookRequest languageCode */ - languageCode?: (string|null); - - /** WebhookRequest fulfillmentInfo */ - fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); - - /** WebhookRequest intentInfo */ - intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); - - /** WebhookRequest pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - - /** WebhookRequest sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - - /** WebhookRequest messages */ - messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - - /** WebhookRequest payload */ - payload?: (google.protobuf.IStruct|null); - - /** WebhookRequest sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); - } - - /** Represents a WebhookRequest. */ - class WebhookRequest implements IWebhookRequest { + /** Represents a Webhooks */ + class Webhooks extends $protobuf.rpc.Service { /** - * Constructs a new WebhookRequest. - * @param [properties] Properties to set + * 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(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest); - - /** WebhookRequest detectIntentResponseId. */ - public detectIntentResponseId: string; - - /** WebhookRequest text. */ - public text?: (string|null); - - /** WebhookRequest triggerIntent. */ - public triggerIntent?: (string|null); - - /** WebhookRequest transcript. */ - public transcript?: (string|null); - - /** WebhookRequest triggerEvent. */ - public triggerEvent?: (string|null); - - /** WebhookRequest dtmfDigits. */ - public dtmfDigits?: (string|null); - - /** WebhookRequest languageCode. */ - public languageCode: string; - - /** WebhookRequest fulfillmentInfo. */ - public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); - - /** WebhookRequest intentInfo. */ - public intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); - - /** WebhookRequest pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - - /** WebhookRequest sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - - /** WebhookRequest messages. */ - public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - - /** WebhookRequest payload. */ - public payload?: (google.protobuf.IStruct|null); - - /** WebhookRequest sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** WebhookRequest query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmfDigits"); + /** + * 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; /** - * Creates a new WebhookRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WebhookRequest instance + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest): google.cloud.dialogflow.cx.v3.WebhookRequest; + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void; /** - * 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 + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): Promise; /** - * 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 + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void; /** - * 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 WebhookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): Promise; /** - * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WebhookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest; + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void; /** - * Verifies a WebhookRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): Promise; /** - * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WebhookRequest + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest; + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void; /** - * 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 + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): Promise; /** - * Converts this WebhookRequest to JSON. - * @returns JSON object + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public toJSON(): { [k: string]: any }; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback): void; /** - * Gets the default type url for WebhookRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): Promise; } - namespace WebhookRequest { - - /** Properties of a FulfillmentInfo. */ - interface IFulfillmentInfo { + namespace Webhooks { - /** FulfillmentInfo tag */ - tag?: (string|null); - } + /** + * 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; - /** Represents a FulfillmentInfo. */ - class FulfillmentInfo implements IFulfillmentInfo { + /** + * 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; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|deleteWebhook}. + * @param error Error, if any + * @param [response] Empty + */ + 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 serviceDirectory */ + serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); + + /** Webhook timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** Webhook disabled */ + disabled?: (boolean|null); + } + + /** Represents a Webhook. */ + class Webhook implements IWebhook { + + /** + * Constructs a new Webhook. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhook); + + /** Webhook name. */ + public name: string; + + /** Webhook displayName. */ + public displayName: string; + + /** Webhook genericWebService. */ + public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + + /** Webhook serviceDirectory. */ + public serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); + + /** Webhook timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** Webhook disabled. */ + public disabled: boolean; + + /** Webhook webhook. */ + public webhook?: ("genericWebService"|"serviceDirectory"); + + /** + * Creates a new Webhook instance using the specified properties. + * @param [properties] Properties to set + * @returns Webhook instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhook): google.cloud.dialogflow.cx.v3.Webhook; + + /** + * 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.IWebhook, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.Webhook; + + /** + * Decodes a Webhook message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.Webhook; + + /** + * 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 Webhook message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Webhook + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook; + + /** + * 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.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Webhook to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Webhook + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Webhook { + + /** Properties of a GenericWebService. */ + interface IGenericWebService { + + /** GenericWebService uri */ + uri?: (string|null); + + /** GenericWebService username */ + username?: (string|null); + + /** GenericWebService password */ + password?: (string|null); + + /** GenericWebService requestHeaders */ + requestHeaders?: ({ [k: string]: string }|null); + + /** GenericWebService allowedCaCerts */ + allowedCaCerts?: (Uint8Array[]|null); + + /** GenericWebService webhookType */ + webhookType?: (google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType|keyof typeof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType|null); + + /** GenericWebService httpMethod */ + httpMethod?: (google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod|keyof typeof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod|null); + + /** GenericWebService requestBody */ + requestBody?: (string|null); + + /** GenericWebService parameterMapping */ + parameterMapping?: ({ [k: string]: string }|null); + } + + /** Represents a GenericWebService. */ + class GenericWebService implements IGenericWebService { /** - * Constructs a new FulfillmentInfo. + * Constructs a new GenericWebService. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService); - /** FulfillmentInfo tag. */ - public tag: string; + /** GenericWebService uri. */ + public uri: string; + + /** GenericWebService username. */ + public username: string; + + /** GenericWebService password. */ + public password: string; + + /** GenericWebService requestHeaders. */ + public requestHeaders: { [k: string]: string }; + + /** GenericWebService allowedCaCerts. */ + public allowedCaCerts: Uint8Array[]; + + /** GenericWebService webhookType. */ + public webhookType: (google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType|keyof typeof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType); + + /** GenericWebService httpMethod. */ + public httpMethod: (google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod|keyof typeof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod); + + /** GenericWebService requestBody. */ + public requestBody: string; + + /** GenericWebService parameterMapping. */ + public parameterMapping: { [k: string]: string }; /** - * Creates a new FulfillmentInfo instance using the specified properties. + * Creates a new GenericWebService instance using the specified properties. * @param [properties] Properties to set - * @returns FulfillmentInfo instance + * @returns GenericWebService instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; /** - * 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 + * 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.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FulfillmentInfo message from the specified reader or buffer. + * 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 FulfillmentInfo + * @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.WebhookRequest.FulfillmentInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; /** - * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. + * Decodes a GenericWebService message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FulfillmentInfo + * @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.WebhookRequest.FulfillmentInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; /** - * Verifies a FulfillmentInfo message. + * 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); /** - * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. + * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FulfillmentInfo + * @returns GenericWebService */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; /** - * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. - * @param message FulfillmentInfo + * 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.WebhookRequest.FulfillmentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook.GenericWebService, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FulfillmentInfo to JSON. + * Converts this GenericWebService to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FulfillmentInfo + * Gets the default type url for GenericWebService * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IntentInfo. */ - interface IIntentInfo { + namespace GenericWebService { - /** IntentInfo lastMatchedIntent */ - lastMatchedIntent?: (string|null); + /** WebhookType enum. */ + enum WebhookType { + WEBHOOK_TYPE_UNSPECIFIED = 0, + STANDARD = 1, + FLEXIBLE = 2 + } - /** IntentInfo displayName */ - displayName?: (string|null); + /** HttpMethod enum. */ + enum HttpMethod { + HTTP_METHOD_UNSPECIFIED = 0, + POST = 1, + GET = 2, + HEAD = 3, + PUT = 4, + DELETE = 5, + PATCH = 6, + OPTIONS = 7 + } + } - /** IntentInfo parameters */ - parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }|null); + /** Properties of a ServiceDirectoryConfig. */ + interface IServiceDirectoryConfig { - /** IntentInfo confidence */ - confidence?: (number|null); + /** ServiceDirectoryConfig service */ + service?: (string|null); + + /** ServiceDirectoryConfig genericWebService */ + genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); } - /** Represents an IntentInfo. */ - class IntentInfo implements IIntentInfo { + /** Represents a ServiceDirectoryConfig. */ + class ServiceDirectoryConfig implements IServiceDirectoryConfig { /** - * Constructs a new IntentInfo. + * Constructs a new ServiceDirectoryConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo); - - /** IntentInfo lastMatchedIntent. */ - public lastMatchedIntent: string; - - /** IntentInfo displayName. */ - public displayName: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig); - /** IntentInfo parameters. */ - public parameters: { [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }; + /** ServiceDirectoryConfig service. */ + public service: string; - /** IntentInfo confidence. */ - public confidence: number; + /** ServiceDirectoryConfig genericWebService. */ + public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); /** - * Creates a new IntentInfo instance using the specified properties. + * Creates a new ServiceDirectoryConfig instance using the specified properties. * @param [properties] Properties to set - * @returns IntentInfo instance + * @returns ServiceDirectoryConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; /** - * 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 + * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @param message ServiceDirectoryConfig 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; + public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, 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 + * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. + * @param message ServiceDirectoryConfig 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntentInfo message from the specified reader or buffer. + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntentInfo + * @returns ServiceDirectoryConfig * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; /** - * Decodes an IntentInfo message from the specified reader or buffer, length delimited. + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntentInfo + * @returns ServiceDirectoryConfig * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; /** - * Verifies an IntentInfo message. + * Verifies a ServiceDirectoryConfig message. * @param message Plain 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. + * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntentInfo + * @returns ServiceDirectoryConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; /** - * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. - * @param message IntentInfo + * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. + * @param message ServiceDirectoryConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntentInfo to JSON. + * Converts this ServiceDirectoryConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IntentInfo + * Gets the default type url for ServiceDirectoryConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace IntentInfo { + /** Properties of a ListWebhooksRequest. */ + interface IListWebhooksRequest { - /** Properties of an IntentParameterValue. */ - interface IIntentParameterValue { + /** ListWebhooksRequest parent */ + parent?: (string|null); - /** IntentParameterValue originalValue */ - originalValue?: (string|null); + /** ListWebhooksRequest pageSize */ + pageSize?: (number|null); - /** IntentParameterValue resolvedValue */ - resolvedValue?: (google.protobuf.IValue|null); - } + /** ListWebhooksRequest pageToken */ + pageToken?: (string|null); + } - /** Represents an IntentParameterValue. */ - class IntentParameterValue implements IIntentParameterValue { + /** Represents a ListWebhooksRequest. */ + class ListWebhooksRequest implements IListWebhooksRequest { - /** - * Constructs a new IntentParameterValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue); + /** + * Constructs a new ListWebhooksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest); - /** IntentParameterValue originalValue. */ - public originalValue: string; + /** ListWebhooksRequest parent. */ + public parent: string; - /** IntentParameterValue resolvedValue. */ - public resolvedValue?: (google.protobuf.IValue|null); + /** ListWebhooksRequest pageSize. */ + public pageSize: number; - /** - * 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; + /** ListWebhooksRequest pageToken. */ + public pageToken: string; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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 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 }; - - /** - * Gets the default type url for IntentParameterValue - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** 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 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; - /** - * 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 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 }; - /** - * Converts this SentimentAnalysisResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this ListWebhooksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for SentimentAnalysisResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for ListWebhooksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 ListWebhooksResponse. */ + interface IListWebhooksResponse { - /** WebhookResponse targetPage */ - targetPage?: (string|null); + /** ListWebhooksResponse webhooks */ + webhooks?: (google.cloud.dialogflow.cx.v3.IWebhook[]|null); - /** WebhookResponse targetFlow */ - targetFlow?: (string|null); + /** ListWebhooksResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a WebhookResponse. */ - class WebhookResponse implements IWebhookResponse { + /** Represents a ListWebhooksResponse. */ + class ListWebhooksResponse implements IListWebhooksResponse { /** - * Constructs a new WebhookResponse. + * Constructs a new ListWebhooksResponse. * @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|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse); - /** WebhookResponse targetFlow. */ - public targetFlow?: (string|null); + /** ListWebhooksResponse webhooks. */ + public webhooks: google.cloud.dialogflow.cx.v3.IWebhook[]; - /** WebhookResponse transition. */ - public transition?: ("targetPage"|"targetFlow"); + /** ListWebhooksResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new WebhookResponse instance using the specified properties. + * Creates a new ListWebhooksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WebhookResponse instance + * @returns ListWebhooksResponse 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.v3.IListWebhooksResponse): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * 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 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.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, 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 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.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebhookResponse 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 WebhookResponse + * @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.WebhookResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Decodes a WebhookResponse 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 WebhookResponse + * @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.WebhookResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Verifies a WebhookResponse 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 WebhookResponse 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 WebhookResponse + * @returns ListWebhooksResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * 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 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.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebhookResponse to JSON. + * Converts this ListWebhooksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WebhookResponse + * Gets the default type url for ListWebhooksResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace WebhookResponse { - - /** Properties of a FulfillmentResponse. */ - interface IFulfillmentResponse { - - /** FulfillmentResponse messages */ - messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|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 FulfillmentResponse. */ - class FulfillmentResponse implements IFulfillmentResponse { - - /** - * Constructs a new FulfillmentResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse); + /** Properties of a GetWebhookRequest. */ + interface IGetWebhookRequest { - /** FulfillmentResponse messages. */ - public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; + /** GetWebhookRequest name */ + name?: (string|null); + } - /** FulfillmentResponse mergeBehavior. */ - public mergeBehavior: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior); + /** Represents a GetWebhookRequest. */ + class GetWebhookRequest implements IGetWebhookRequest { - /** - * 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; + /** + * Constructs a new GetWebhookRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest); - /** - * 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; + /** GetWebhookRequest name. */ + public name: string; - /** - * 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 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; - /** - * 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 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; - /** - * 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 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; - /** - * 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 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; - /** - * 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 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 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 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); - /** - * Converts this FulfillmentResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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; - /** - * Gets the default type url for FulfillmentResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * 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 }; - namespace FulfillmentResponse { + /** + * Converts this GetWebhookRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** MergeBehavior enum. */ - enum MergeBehavior { - MERGE_BEHAVIOR_UNSPECIFIED = 0, - APPEND = 1, - REPLACE = 2 - } - } + /** + * Gets the default type url for GetWebhookRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PageInfo. */ - interface IPageInfo { - - /** PageInfo currentPage */ - currentPage?: (string|null); + /** Properties of a CreateWebhookRequest. */ + interface ICreateWebhookRequest { - /** PageInfo displayName */ - displayName?: (string|null); + /** CreateWebhookRequest parent */ + parent?: (string|null); - /** PageInfo formInfo */ - formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); + /** CreateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); } - /** Represents a PageInfo. */ - class PageInfo implements IPageInfo { + /** Represents a CreateWebhookRequest. */ + class CreateWebhookRequest implements ICreateWebhookRequest { /** - * Constructs a new PageInfo. + * Constructs a new CreateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IPageInfo); - - /** PageInfo currentPage. */ - public currentPage: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest); - /** PageInfo displayName. */ - public displayName: string; + /** CreateWebhookRequest parent. */ + public parent: string; - /** PageInfo formInfo. */ - public formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); + /** CreateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); /** - * Creates a new PageInfo instance using the specified properties. + * Creates a new CreateWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PageInfo instance + * @returns CreateWebhookRequest 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.v3.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * 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 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.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, 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 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.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PageInfo 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 PageInfo + * @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.PageInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Decodes a PageInfo 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 PageInfo + * @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.PageInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Verifies a PageInfo 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 PageInfo 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 PageInfo + * @returns CreateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * 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 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.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PageInfo to JSON. + * Converts this CreateWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PageInfo + * Gets the default type url for CreateWebhookRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PageInfo { + /** Properties of an UpdateWebhookRequest. */ + interface IUpdateWebhookRequest { - /** 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 }; - - /** - * Gets the default type url for FormInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - 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 }; - - /** - * Gets the default type url for ParameterInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ParameterInfo { - - /** ParameterState enum. */ - enum ParameterState { - PARAMETER_STATE_UNSPECIFIED = 0, - EMPTY = 1, - INVALID = 2, - FILLED = 3 - } - } - } - } - - /** Properties of a SessionInfo. */ - interface ISessionInfo { - - /** SessionInfo session */ - session?: (string|null); + /** UpdateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); - /** SessionInfo parameters */ - parameters?: ({ [k: string]: google.protobuf.IValue }|null); + /** UpdateWebhookRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a SessionInfo. */ - class SessionInfo implements ISessionInfo { + /** Represents an UpdateWebhookRequest. */ + class UpdateWebhookRequest implements IUpdateWebhookRequest { /** - * Constructs a new SessionInfo. + * Constructs a new UpdateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest); - /** SessionInfo session. */ - public session: string; + /** UpdateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); - /** SessionInfo parameters. */ - public parameters: { [k: string]: google.protobuf.IValue }; + /** UpdateWebhookRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new SessionInfo instance using the specified properties. + * Creates a new UpdateWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SessionInfo instance + * @returns UpdateWebhookRequest 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.v3.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * 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 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.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, 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 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.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SessionInfo 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 SessionInfo + * @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.SessionInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Decodes a SessionInfo 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 SessionInfo + * @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.SessionInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Verifies a SessionInfo 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 SessionInfo 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 SessionInfo + * @returns UpdateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * 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 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.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SessionInfo to JSON. + * Converts this UpdateWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SessionInfo + * Gets the default type url for UpdateWebhookRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents an Experiments */ - class Experiments extends $protobuf.rpc.Service { + /** Properties of a DeleteWebhookRequest. */ + interface IDeleteWebhookRequest { - /** - * 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); + /** DeleteWebhookRequest name */ + name?: (string|null); - /** - * 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; + /** DeleteWebhookRequest force */ + force?: (boolean|null); + } - /** - * 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; + /** Represents a DeleteWebhookRequest. */ + class DeleteWebhookRequest implements IDeleteWebhookRequest { /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object - * @returns Promise + * Constructs a new DeleteWebhookRequest. + * @param [properties] Properties to set */ - public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest); - /** - * 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; + /** DeleteWebhookRequest name. */ + public name: string; - /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object - * @returns Promise - */ - public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): Promise; + /** DeleteWebhookRequest force. */ + public force: boolean; /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Creates a new DeleteWebhookRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteWebhookRequest instance */ - public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @returns Promise + * 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 createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * 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 updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @returns Promise + * 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 DeleteWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @returns Promise + * Verifies a DeleteWebhookRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteWebhookRequest */ - public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @returns Promise + * 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 startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Converts this DeleteWebhookRequest to JSON. + * @returns JSON object */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object - * @returns Promise + * Gets the default type url for DeleteWebhookRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Experiments { - - /** - * 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; + /** Properties of a WebhookRequest. */ + interface IWebhookRequest { - /** - * 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; + /** WebhookRequest detectIntentResponseId */ + detectIntentResponseId?: (string|null); - /** - * 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; + /** WebhookRequest text */ + text?: (string|null); - /** - * 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; + /** WebhookRequest triggerIntent */ + triggerIntent?: (string|null); - /** - * 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; + /** WebhookRequest transcript */ + transcript?: (string|null); - /** - * 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; + /** WebhookRequest triggerEvent */ + triggerEvent?: (string|null); - /** - * 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; - } + /** WebhookRequest dtmfDigits */ + dtmfDigits?: (string|null); - /** Properties of an Experiment. */ - interface IExperiment { + /** WebhookRequest languageCode */ + languageCode?: (string|null); - /** Experiment name */ - name?: (string|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 rolloutConfig */ - rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); - - /** Experiment rolloutState */ - rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); - - /** Experiment rolloutFailureReason */ - rolloutFailureReason?: (string|null); - - /** Experiment result */ - result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); + /** WebhookRequest fulfillmentInfo */ + fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); - /** Experiment createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** WebhookRequest intentInfo */ + intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); - /** Experiment startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** WebhookRequest pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - /** Experiment endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** WebhookRequest sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - /** Experiment lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** WebhookRequest messages */ + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - /** Experiment experimentLength */ - experimentLength?: (google.protobuf.IDuration|null); + /** WebhookRequest payload */ + payload?: (google.protobuf.IStruct|null); - /** Experiment variantsHistory */ - variantsHistory?: (google.cloud.dialogflow.cx.v3.IVariantsHistory[]|null); + /** WebhookRequest sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); } - /** Represents an Experiment. */ - class Experiment implements IExperiment { + /** Represents a WebhookRequest. */ + class WebhookRequest implements IWebhookRequest { /** - * Constructs a new Experiment. + * Constructs a new WebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExperiment); + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest); - /** Experiment name. */ - public name: string; + /** WebhookRequest detectIntentResponseId. */ + public detectIntentResponseId: string; - /** Experiment displayName. */ - public displayName: string; + /** WebhookRequest text. */ + public text?: (string|null); - /** Experiment description. */ - public description: string; + /** WebhookRequest triggerIntent. */ + public triggerIntent?: (string|null); - /** Experiment state. */ - public state: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State); + /** WebhookRequest transcript. */ + public transcript?: (string|null); - /** Experiment definition. */ - public definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); + /** WebhookRequest triggerEvent. */ + public triggerEvent?: (string|null); - /** Experiment rolloutConfig. */ - public rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); + /** WebhookRequest dtmfDigits. */ + public dtmfDigits?: (string|null); - /** Experiment rolloutState. */ - public rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); + /** WebhookRequest languageCode. */ + public languageCode: string; - /** Experiment rolloutFailureReason. */ - public rolloutFailureReason: string; + /** WebhookRequest fulfillmentInfo. */ + public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); - /** Experiment result. */ - public result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); + /** WebhookRequest intentInfo. */ + public intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); - /** Experiment createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** WebhookRequest pageInfo. */ + public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - /** Experiment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** WebhookRequest sessionInfo. */ + public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - /** Experiment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** WebhookRequest messages. */ + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - /** Experiment lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** WebhookRequest payload. */ + public payload?: (google.protobuf.IStruct|null); - /** Experiment experimentLength. */ - public experimentLength?: (google.protobuf.IDuration|null); + /** WebhookRequest sentimentAnalysisResult. */ + public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); - /** Experiment variantsHistory. */ - public variantsHistory: google.cloud.dialogflow.cx.v3.IVariantsHistory[]; + /** WebhookRequest query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmfDigits"); /** - * Creates a new Experiment instance using the specified properties. + * Creates a new WebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Experiment instance + * @returns WebhookRequest 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.IWebhookRequest): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * 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 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.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, 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 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.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Experiment 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 Experiment + * @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.Experiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Decodes an Experiment 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 Experiment + * @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.Experiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest; /** - * Verifies an Experiment 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 an Experiment 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 Experiment + * @returns WebhookRequest */ - 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.WebhookRequest; /** - * 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 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.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Experiment to JSON. + * Converts this WebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Experiment + * Gets the default type url for WebhookRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Experiment { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DRAFT = 1, - RUNNING = 2, - DONE = 3, - ROLLOUT_FAILED = 4 - } - - /** Properties of a Definition. */ - interface IDefinition { + namespace WebhookRequest { - /** Definition condition */ - condition?: (string|null); + /** Properties of a FulfillmentInfo. */ + interface IFulfillmentInfo { - /** Definition versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + /** FulfillmentInfo tag */ + tag?: (string|null); } - /** Represents a Definition. */ - class Definition implements IDefinition { + /** Represents a FulfillmentInfo. */ + class FulfillmentInfo implements IFulfillmentInfo { /** - * Constructs a new Definition. + * Constructs a new FulfillmentInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition); - - /** Definition condition. */ - public condition: string; - - /** Definition versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo); - /** Definition variants. */ - public variants?: "versionVariants"; + /** FulfillmentInfo tag. */ + public tag: string; /** - * Creates a new Definition instance using the specified properties. + * Creates a new FulfillmentInfo instance using the specified properties. * @param [properties] Properties to set - * @returns Definition instance + * @returns FulfillmentInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition): google.cloud.dialogflow.cx.v3.Experiment.Definition; + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * 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 + * 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.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Definition 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 Definition + * @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.Experiment.Definition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * Decodes a Definition 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 Definition + * @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.Experiment.Definition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * Verifies a Definition 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 Definition 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 Definition + * @returns FulfillmentInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Definition; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * 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 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.Experiment.Definition, 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 Definition to JSON. + * Converts this FulfillmentInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Definition + * Gets the default type url for FulfillmentInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Result. */ - interface IResult { + /** Properties of an IntentInfo. */ + interface IIntentInfo { - /** Result versionMetrics */ - versionMetrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]|null); + /** IntentInfo lastMatchedIntent */ + lastMatchedIntent?: (string|null); - /** Result lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|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 a Result. */ - class Result implements IResult { + /** Represents an IntentInfo. */ + class IntentInfo implements IIntentInfo { /** - * Constructs a new Result. + * Constructs a new IntentInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo); - /** Result versionMetrics. */ - public versionMetrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]; + /** IntentInfo lastMatchedIntent. */ + public lastMatchedIntent: string; - /** Result lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** 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 Result instance using the specified properties. + * Creates a new IntentInfo instance using the specified properties. * @param [properties] Properties to set - * @returns Result instance + * @returns IntentInfo 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.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; /** - * 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 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.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, 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 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.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Result message from the specified reader or buffer. + * 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 Result + * @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.Experiment.Result; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes an IntentInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Result + * @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.Experiment.Result; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; /** - * Verifies a Result message. + * 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 a Result message from a plain object. Also converts values to their respective internal types. + * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Result + * @returns IntentInfo */ - 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.WebhookRequest.IntentInfo; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @param message Result + * 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.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Result to JSON. + * Converts this IntentInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Result + * Gets the default type url for IntentInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Result { - - /** 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 ConfidenceInterval. */ - interface IConfidenceInterval { - - /** ConfidenceInterval confidenceLevel */ - confidenceLevel?: (number|null); + namespace IntentInfo { - /** ConfidenceInterval ratio */ - ratio?: (number|null); + /** Properties of an IntentParameterValue. */ + interface IIntentParameterValue { - /** ConfidenceInterval lowerBound */ - lowerBound?: (number|null); + /** IntentParameterValue originalValue */ + originalValue?: (string|null); - /** ConfidenceInterval upperBound */ - upperBound?: (number|null); + /** IntentParameterValue resolvedValue */ + resolvedValue?: (google.protobuf.IValue|null); } - /** Represents a ConfidenceInterval. */ - class ConfidenceInterval implements IConfidenceInterval { + /** Represents an IntentParameterValue. */ + class IntentParameterValue implements IIntentParameterValue { /** - * Constructs a new ConfidenceInterval. + * Constructs a new IntentParameterValue. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval); - - /** ConfidenceInterval confidenceLevel. */ - public confidenceLevel: number; - - /** ConfidenceInterval ratio. */ - public ratio: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue); - /** ConfidenceInterval lowerBound. */ - public lowerBound: number; + /** IntentParameterValue originalValue. */ + public originalValue: string; - /** ConfidenceInterval upperBound. */ - public upperBound: number; + /** IntentParameterValue resolvedValue. */ + public resolvedValue?: (google.protobuf.IValue|null); /** - * Creates a new ConfidenceInterval instance using the specified properties. + * Creates a new IntentParameterValue instance using the specified properties. * @param [properties] Properties to set - * @returns ConfidenceInterval instance + * @returns IntentParameterValue instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; /** - * 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 + * 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.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, 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 + * 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.Experiment.Result.IConfidenceInterval, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. + * 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 ConfidenceInterval + * @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.Experiment.Result.ConfidenceInterval; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConfidenceInterval + * @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.Experiment.Result.ConfidenceInterval; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; /** - * Verifies a ConfidenceInterval message. + * 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 a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConfidenceInterval + * @returns IntentParameterValue */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. - * @param message ConfidenceInterval + * 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.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConfidenceInterval to JSON. + * Converts this IntentParameterValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConfidenceInterval + * Gets the default type url for IntentParameterValue * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of a Metric. */ - interface IMetric { - - /** Metric type */ - type?: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null); - - /** Metric countType */ - countType?: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null); + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { - /** Metric ratio */ - ratio?: (number|null); + /** SentimentAnalysisResult score */ + score?: (number|null); - /** Metric count */ - count?: (number|null); + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|null); + } - /** Metric confidenceInterval */ - confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); - } + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { - /** Represents a Metric. */ - class Metric implements IMetric { + /** + * Constructs a new SentimentAnalysisResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult); - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric); + /** SentimentAnalysisResult score. */ + public score: number; - /** Metric type. */ - public type: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType); + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; - /** Metric countType. */ - public countType: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType); + /** + * 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; - /** Metric ratio. */ - public ratio?: (number|null); + /** + * 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; - /** Metric count. */ - public count?: (number|null); - - /** 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 }; - - /** - * Gets the default type url for Metric - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a VersionMetrics. */ - interface IVersionMetrics { + /** + * 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; - /** VersionMetrics version */ - version?: (string|null); + /** + * 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; - /** VersionMetrics metrics */ - metrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]|null); + /** + * 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; - /** VersionMetrics sessionCount */ - sessionCount?: (number|null); - } + /** + * 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); - /** Represents a VersionMetrics. */ - class VersionMetrics implements IVersionMetrics { + /** + * 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; - /** - * Constructs a new VersionMetrics. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics); + /** + * 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 }; - /** VersionMetrics version. */ - public version: string; + /** + * Converts this SentimentAnalysisResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** VersionMetrics metrics. */ - public metrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]; + /** + * Gets the default type url for SentimentAnalysisResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** VersionMetrics sessionCount. */ - public sessionCount: number; + /** Properties of a WebhookResponse. */ + interface IWebhookResponse { - /** - * 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; + /** WebhookResponse fulfillmentResponse */ + fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - /** - * 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; + /** WebhookResponse pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - /** - * 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; + /** WebhookResponse sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - /** - * 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; + /** WebhookResponse payload */ + payload?: (google.protobuf.IStruct|null); - /** - * 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; + /** WebhookResponse targetPage */ + targetPage?: (string|null); - /** - * 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); + /** WebhookResponse targetFlow */ + targetFlow?: (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; + /** Represents a WebhookResponse. */ + class WebhookResponse implements IWebhookResponse { - /** - * 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 }; + /** + * Constructs a new WebhookResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse); - /** - * Converts this VersionMetrics to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** WebhookResponse fulfillmentResponse. */ + public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - /** - * Gets the default type url for VersionMetrics - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** WebhookResponse pageInfo. */ + public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - /** Properties of a VersionVariants. */ - interface IVersionVariants { + /** WebhookResponse sessionInfo. */ + public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - /** VersionVariants variants */ - variants?: (google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]|null); - } + /** WebhookResponse payload. */ + public payload?: (google.protobuf.IStruct|null); - /** Represents a VersionVariants. */ - class VersionVariants implements IVersionVariants { + /** WebhookResponse targetPage. */ + public targetPage?: (string|null); - /** - * Constructs a new VersionVariants. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants); + /** WebhookResponse targetFlow. */ + public targetFlow?: (string|null); - /** VersionVariants variants. */ - public variants: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]; + /** WebhookResponse transition. */ + public transition?: ("targetPage"|"targetFlow"); /** - * Creates a new VersionVariants instance using the specified properties. + * Creates a new WebhookResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VersionVariants instance + * @returns WebhookResponse 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.IWebhookResponse): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * 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 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.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, 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 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.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VersionVariants 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 VersionVariants + * @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.VersionVariants; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Decodes a VersionVariants 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 VersionVariants + * @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.VersionVariants; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Verifies a VersionVariants 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 VersionVariants 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 VersionVariants + * @returns WebhookResponse */ - 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.WebhookResponse; /** - * 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 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.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VersionVariants to JSON. + * Converts this WebhookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VersionVariants + * Gets the default type url for WebhookResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace VersionVariants { - - /** Properties of a Variant. */ - interface IVariant { + namespace WebhookResponse { - /** Variant version */ - version?: (string|null); + /** Properties of a FulfillmentResponse. */ + interface IFulfillmentResponse { - /** Variant trafficAllocation */ - trafficAllocation?: (number|null); + /** FulfillmentResponse messages */ + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - /** Variant isControlGroup */ - isControlGroup?: (boolean|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 Variant. */ - class Variant implements IVariant { + /** Represents a FulfillmentResponse. */ + class FulfillmentResponse implements IFulfillmentResponse { /** - * Constructs a new Variant. + * Constructs a new FulfillmentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant); - - /** Variant version. */ - public version: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse); - /** Variant trafficAllocation. */ - public trafficAllocation: number; + /** FulfillmentResponse messages. */ + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - /** Variant isControlGroup. */ - public isControlGroup: boolean; + /** 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 Variant instance using the specified properties. + * Creates a new FulfillmentResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Variant instance + * @returns FulfillmentResponse 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.WebhookResponse.IFulfillmentResponse): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; /** - * 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 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.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, 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 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.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Variant message from the specified reader or buffer. + * 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 Variant + * @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.VersionVariants.Variant; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; /** - * Decodes a Variant message from the specified reader or buffer, length delimited. + * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Variant + * @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.VersionVariants.Variant; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; /** - * Verifies a Variant message. + * 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 Variant message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Variant + * @returns FulfillmentResponse */ - 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.WebhookResponse.FulfillmentResponse; /** - * 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 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.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Variant to JSON. + * Converts this FulfillmentResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Variant + * Gets the default type url for FulfillmentResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + namespace FulfillmentResponse { + + /** MergeBehavior enum. */ + enum MergeBehavior { + MERGE_BEHAVIOR_UNSPECIFIED = 0, + APPEND = 1, + REPLACE = 2 + } + } } - /** Properties of a VariantsHistory. */ - interface IVariantsHistory { + /** Properties of a PageInfo. */ + interface IPageInfo { - /** VariantsHistory versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + /** PageInfo currentPage */ + currentPage?: (string|null); - /** VariantsHistory updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** PageInfo displayName */ + displayName?: (string|null); + + /** PageInfo formInfo */ + formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); } - /** Represents a VariantsHistory. */ - class VariantsHistory implements IVariantsHistory { + /** Represents a PageInfo. */ + class PageInfo implements IPageInfo { /** - * Constructs a new VariantsHistory. + * Constructs a new PageInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory); + constructor(properties?: google.cloud.dialogflow.cx.v3.IPageInfo); - /** VariantsHistory versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + /** PageInfo currentPage. */ + public currentPage: string; - /** VariantsHistory updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** PageInfo displayName. */ + public displayName: string; - /** VariantsHistory variants. */ - public variants?: "versionVariants"; + /** PageInfo formInfo. */ + public formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); /** - * Creates a new VariantsHistory instance using the specified properties. + * Creates a new PageInfo instance using the specified properties. * @param [properties] Properties to set - * @returns VariantsHistory instance + * @returns PageInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory): google.cloud.dialogflow.cx.v3.VariantsHistory; + public static create(properties?: google.cloud.dialogflow.cx.v3.IPageInfo): google.cloud.dialogflow.cx.v3.PageInfo; /** - * 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 + * 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.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VariantsHistory 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 VariantsHistory + * @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.VariantsHistory; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Decodes a VariantsHistory 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 VariantsHistory + * @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.VariantsHistory; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Verifies a VariantsHistory 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 VariantsHistory 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 VariantsHistory + * @returns PageInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VariantsHistory; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. - * @param message VariantsHistory + * 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.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VariantsHistory to JSON. + * Converts this PageInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VariantsHistory + * Gets the default type url for PageInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RolloutConfig. */ - interface IRolloutConfig { - - /** RolloutConfig rolloutSteps */ - rolloutSteps?: (google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]|null); - - /** RolloutConfig rolloutCondition */ - rolloutCondition?: (string|null); - - /** RolloutConfig failureCondition */ - failureCondition?: (string|null); - } - - /** Represents a RolloutConfig. */ - class RolloutConfig implements IRolloutConfig { - - /** - * Constructs a new RolloutConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig); - - /** RolloutConfig rolloutSteps. */ - public rolloutSteps: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]; - - /** RolloutConfig rolloutCondition. */ - public rolloutCondition: string; - - /** RolloutConfig failureCondition. */ - public failureCondition: string; - - /** - * Creates a new RolloutConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RolloutConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig): google.cloud.dialogflow.cx.v3.RolloutConfig; - - /** - * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. - * @param message RolloutConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. - * @param message RolloutConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RolloutConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RolloutConfig - * @throws {Error} If the payload is not a reader or 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.RolloutConfig; - - /** - * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RolloutConfig - * @throws {Error} If the payload is not a 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.RolloutConfig; - - /** - * Verifies a RolloutConfig message. - * @param message Plain 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 RolloutConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RolloutConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig; - - /** - * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. - * @param message RolloutConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RolloutConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RolloutConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace RolloutConfig { - - /** Properties of a RolloutStep. */ - interface IRolloutStep { - - /** RolloutStep displayName */ - displayName?: (string|null); + namespace PageInfo { - /** RolloutStep trafficPercent */ - trafficPercent?: (number|null); + /** Properties of a FormInfo. */ + interface IFormInfo { - /** RolloutStep minDuration */ - minDuration?: (google.protobuf.IDuration|null); + /** FormInfo parameterInfo */ + parameterInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]|null); } - /** Represents a RolloutStep. */ - class RolloutStep implements IRolloutStep { + /** Represents a FormInfo. */ + class FormInfo implements IFormInfo { /** - * Constructs a new RolloutStep. + * Constructs a new FormInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep); - - /** RolloutStep displayName. */ - public displayName: string; - - /** RolloutStep trafficPercent. */ - public trafficPercent: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo); - /** RolloutStep minDuration. */ - public minDuration?: (google.protobuf.IDuration|null); + /** FormInfo parameterInfo. */ + public parameterInfo: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]; /** - * Creates a new RolloutStep instance using the specified properties. + * Creates a new FormInfo instance using the specified properties. * @param [properties] Properties to set - * @returns RolloutStep instance + * @returns FormInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; + public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; /** - * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. - * @param message RolloutStep message or plain object to encode + * 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.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. - * @param message RolloutStep message or plain object to encode + * 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.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RolloutStep message from the specified reader or buffer. + * 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 RolloutStep + * @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.RolloutConfig.RolloutStep; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; /** - * Decodes a RolloutStep message from the specified reader or buffer, length delimited. + * Decodes a FormInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RolloutStep + * @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.RolloutConfig.RolloutStep; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; /** - * Verifies a RolloutStep message. + * 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 RolloutStep message from a plain object. Also converts values to their respective internal types. + * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RolloutStep + * @returns FormInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; /** - * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. - * @param message RolloutStep + * 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.RolloutConfig.RolloutStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RolloutStep to JSON. + * Converts this FormInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RolloutStep + * Gets the default type url for FormInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Properties of a RolloutState. */ - interface IRolloutState { + namespace FormInfo { - /** RolloutState step */ - step?: (string|null); + /** Properties of a ParameterInfo. */ + interface IParameterInfo { - /** RolloutState stepIndex */ - stepIndex?: (number|null); + /** ParameterInfo displayName */ + displayName?: (string|null); - /** RolloutState startTime */ - startTime?: (google.protobuf.ITimestamp|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 }; + + /** + * Gets the default type url for ParameterInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ParameterInfo { + + /** ParameterState enum. */ + enum ParameterState { + PARAMETER_STATE_UNSPECIFIED = 0, + EMPTY = 1, + INVALID = 2, + FILLED = 3 + } + } + } } - /** Represents a RolloutState. */ - class RolloutState implements IRolloutState { + /** 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 RolloutState. + * Constructs a new SessionInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutState); - - /** RolloutState step. */ - public step: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo); - /** RolloutState stepIndex. */ - public stepIndex: number; + /** SessionInfo session. */ + public session: string; - /** RolloutState startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** SessionInfo parameters. */ + public parameters: { [k: string]: google.protobuf.IValue }; /** - * Creates a new RolloutState instance using the specified properties. + * Creates a new SessionInfo instance using the specified properties. * @param [properties] Properties to set - * @returns RolloutState instance + * @returns SessionInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IRolloutState): google.cloud.dialogflow.cx.v3.RolloutState; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. - * @param message RolloutState 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.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. - * @param message RolloutState 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.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RolloutState 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 RolloutState + * @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.RolloutState; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Decodes a RolloutState 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 RolloutState + * @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.RolloutState; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Verifies a RolloutState 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 a RolloutState 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 RolloutState + * @returns SessionInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutState; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Creates a plain object from a RolloutState message. Also converts values to other types if specified. - * @param message RolloutState + * 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.RolloutState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RolloutState to JSON. + * Converts this SessionInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RolloutState + * Gets the default type url for SessionInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListExperimentsRequest. */ - interface IListExperimentsRequest { - - /** ListExperimentsRequest parent */ - parent?: (string|null); - - /** ListExperimentsRequest pageSize */ - pageSize?: (number|null); - - /** ListExperimentsRequest pageToken */ - pageToken?: (string|null); - } - - /** Represents a ListExperimentsRequest. */ - class ListExperimentsRequest implements IListExperimentsRequest { + /** Represents an Experiments */ + class Experiments extends $protobuf.rpc.Service { /** - * Constructs a new ListExperimentsRequest. - * @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.v3.IListExperimentsRequest); - - /** ListExperimentsRequest parent. */ - public parent: string; - - /** ListExperimentsRequest pageSize. */ - public pageSize: number; - - /** ListExperimentsRequest pageToken. */ - public pageToken: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ListExperimentsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListExperimentsRequest instance + * 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(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; /** - * 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 + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback): void; /** - * 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 + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): Promise; /** - * 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 ListExperimentsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetExperiment. + * @param request GetExperimentRequest 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.v3.ListExperimentsRequest; + public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback): void; /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListExperimentsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): Promise; /** - * Verifies a ListExperimentsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateExperiment. + * @param request CreateExperimentRequest 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 createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback): void; /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListExperimentsRequest + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): Promise; /** - * 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 + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback): void; /** - * Converts this ListExperimentsRequest to JSON. - * @returns JSON object + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): Promise; /** - * Gets the default type url for ListExperimentsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListExperimentsResponse. */ - interface IListExperimentsResponse { - - /** ListExperimentsResponse experiments */ - experiments?: (google.cloud.dialogflow.cx.v3.IExperiment[]|null); - - /** ListExperimentsResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListExperimentsResponse. */ - class ListExperimentsResponse implements IListExperimentsResponse { + public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback): void; /** - * Constructs a new ListExperimentsResponse. - * @param [properties] Properties to set + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse); - - /** ListExperimentsResponse experiments. */ - public experiments: google.cloud.dialogflow.cx.v3.IExperiment[]; + public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): Promise; - /** ListExperimentsResponse nextPageToken. */ - public nextPageToken: string; + /** + * 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; /** - * Creates a new ListExperimentsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListExperimentsResponse instance + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): Promise; /** - * 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 + * Calls StopExperiment. + * @param request StopExperimentRequest 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.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback): void; /** - * 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 + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): Promise; + } + + namespace Experiments { /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments|listExperiments}. + * @param error Error, if any + * @param [response] ListExperimentsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListExperimentsResponse) => void; /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments|getExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Verifies a ListExperimentsResponse 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.Experiments|createExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static verify(message: { [k: string]: any }): (string|null); + type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListExperimentsResponse + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments|updateExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments|deleteExperiment}. + * @param error Error, if any + * @param [response] Empty */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Converts this ListExperimentsResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments|startExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public toJSON(): { [k: string]: any }; + type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Gets the default type url for ListExperimentsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments|stopExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; } - /** Properties of a GetExperimentRequest. */ - interface IGetExperimentRequest { + /** Properties of an Experiment. */ + interface IExperiment { - /** GetExperimentRequest name */ + /** Experiment name */ name?: (string|null); - } - - /** Represents a GetExperimentRequest. */ - class GetExperimentRequest implements IGetExperimentRequest { - - /** - * Constructs a new GetExperimentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest); - /** GetExperimentRequest name. */ - public name: string; + /** Experiment displayName */ + displayName?: (string|null); - /** - * 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.v3.IGetExperimentRequest): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + /** Experiment description */ + description?: (string|null); - /** - * 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.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Experiment state */ + state?: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State|null); - /** - * 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.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Experiment definition */ + definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); - /** - * 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.v3.GetExperimentRequest; + /** Experiment rolloutConfig */ + rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); - /** - * 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.v3.GetExperimentRequest; + /** Experiment rolloutState */ + rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|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); + /** Experiment rolloutFailureReason */ + rolloutFailureReason?: (string|null); - /** - * 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.v3.GetExperimentRequest; + /** Experiment result */ + result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); - /** - * 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.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Experiment createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Converts this GetExperimentRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Experiment startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Gets the default type url for GetExperimentRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Experiment endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** Properties of a CreateExperimentRequest. */ - interface ICreateExperimentRequest { + /** Experiment lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); - /** CreateExperimentRequest parent */ - parent?: (string|null); + /** Experiment experimentLength */ + experimentLength?: (google.protobuf.IDuration|null); - /** CreateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** Experiment variantsHistory */ + variantsHistory?: (google.cloud.dialogflow.cx.v3.IVariantsHistory[]|null); } - /** Represents a CreateExperimentRequest. */ - class CreateExperimentRequest implements ICreateExperimentRequest { - - /** - * Constructs a new CreateExperimentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest); - - /** CreateExperimentRequest parent. */ - public parent: string; - - /** CreateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** Represents an Experiment. */ + class Experiment implements IExperiment { /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * Constructs a new Experiment. * @param [properties] Properties to set - * @returns CreateExperimentRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; - - /** - * 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.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + constructor(properties?: google.cloud.dialogflow.cx.v3.IExperiment); - /** - * 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.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Experiment name. */ + public name: string; - /** - * 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 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.CreateExperimentRequest; + /** Experiment displayName. */ + public displayName: string; - /** - * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.CreateExperimentRequest; + /** Experiment description. */ + public description: string; - /** - * 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); + /** Experiment state. */ + public state: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State); - /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateExperimentRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + /** Experiment definition. */ + public definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); - /** - * 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.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Experiment rolloutConfig. */ + public rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); - /** - * Converts this CreateExperimentRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Experiment rolloutState. */ + public rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); - /** - * Gets the default type url for CreateExperimentRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Experiment rolloutFailureReason. */ + public rolloutFailureReason: string; - /** Properties of an UpdateExperimentRequest. */ - interface IUpdateExperimentRequest { + /** Experiment result. */ + public result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); - /** UpdateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** Experiment createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** UpdateExperimentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** Experiment startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** Represents an UpdateExperimentRequest. */ - class UpdateExperimentRequest implements IUpdateExperimentRequest { + /** Experiment endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new UpdateExperimentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest); + /** Experiment lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); - /** UpdateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** Experiment experimentLength. */ + public experimentLength?: (google.protobuf.IDuration|null); - /** UpdateExperimentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** Experiment variantsHistory. */ + public variantsHistory: google.cloud.dialogflow.cx.v3.IVariantsHistory[]; /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExperimentRequest instance + * @returns Experiment 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.IExperiment): google.cloud.dialogflow.cx.v3.Experiment; /** - * 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 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.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExperiment, 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 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.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExperimentRequest 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 UpdateExperimentRequest + * @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.UpdateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment; /** - * Decodes an UpdateExperimentRequest 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 UpdateExperimentRequest + * @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.UpdateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment; /** - * Verifies an UpdateExperimentRequest 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 UpdateExperimentRequest 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 UpdateExperimentRequest + * @returns Experiment */ - 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.Experiment; /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. - * @param message UpdateExperimentRequest + * 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.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this Experiment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateExperimentRequest + * Gets the default type url for Experiment * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteExperimentRequest. */ - interface IDeleteExperimentRequest { + namespace Experiment { - /** DeleteExperimentRequest name */ - name?: (string|null); - } + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + DRAFT = 1, + RUNNING = 2, + DONE = 3, + ROLLOUT_FAILED = 4 + } - /** Represents a DeleteExperimentRequest. */ - class DeleteExperimentRequest implements IDeleteExperimentRequest { + /** Properties of a Definition. */ + interface IDefinition { - /** - * Constructs a new DeleteExperimentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest); + /** Definition condition */ + condition?: (string|null); - /** DeleteExperimentRequest name. */ - public name: string; + /** Definition versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + } - /** - * Creates a new DeleteExperimentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteExperimentRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + /** Represents a Definition. */ + class Definition implements IDefinition { - /** - * 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.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new Definition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition); - /** - * 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.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Definition condition. */ + public condition: string; - /** - * 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 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.DeleteExperimentRequest; + /** Definition versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); - /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from + /** 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.v3.Experiment.IDefinition): google.cloud.dialogflow.cx.v3.Experiment.Definition; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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.v3.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.v3.Experiment.Definition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Definition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Definition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Result. */ + interface IResult { + + /** Result versionMetrics */ + versionMetrics?: (google.cloud.dialogflow.cx.v3.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.v3.Experiment.IResult); + + /** Result versionMetrics. */ + public versionMetrics: google.cloud.dialogflow.cx.v3.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.v3.Experiment.IResult): google.cloud.dialogflow.cx.v3.Experiment.Result; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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.v3.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.v3.Experiment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Result to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Result + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Result { + + /** 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 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.v3.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.v3.Experiment.Result.IConfidenceInterval): google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval; + + /** + * 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 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 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 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 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.v3.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.v3.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConfidenceInterval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConfidenceInterval + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Metric. */ + interface IMetric { + + /** Metric type */ + type?: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null); + + /** Metric countType */ + countType?: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null); + + /** Metric ratio */ + ratio?: (number|null); + + /** Metric count */ + count?: (number|null); + + /** 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|null); + + /** Metric count. */ + public count?: (number|null); + + /** 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 }; + + /** + * Gets the default type url for Metric + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** 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 }; + + /** + * Gets the default type url for VersionMetrics + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of a VersionVariants. */ + interface IVersionVariants { + + /** VersionVariants variants */ + variants?: (google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]|null); + } + + /** Represents a VersionVariants. */ + class VersionVariants implements IVersionVariants { + + /** + * Constructs a new VersionVariants. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants); + + /** VersionVariants variants. */ + public variants: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]; + + /** + * Creates a new VersionVariants instance using the specified properties. + * @param [properties] Properties to set + * @returns VersionVariants instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants): google.cloud.dialogflow.cx.v3.VersionVariants; + + /** + * 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.IVersionVariants, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.VersionVariants; + + /** + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.VersionVariants; + + /** + * 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 VersionVariants message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VersionVariants + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants; + + /** + * 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.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VersionVariants to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VersionVariants + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace VersionVariants { + + /** Properties of a Variant. */ + interface IVariant { + + /** 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 }; + + /** + * Gets the default type url for Variant + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** 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 VariantsHistory. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory); + + /** VariantsHistory versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + + /** VariantsHistory updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** VariantsHistory variants. */ + public variants?: "versionVariants"; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * 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 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; + + /** + * 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 }; + + /** + * Converts this VariantsHistory to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VariantsHistory + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RolloutConfig. */ + interface IRolloutConfig { + + /** RolloutConfig rolloutSteps */ + rolloutSteps?: (google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]|null); + + /** RolloutConfig rolloutCondition */ + rolloutCondition?: (string|null); + + /** RolloutConfig failureCondition */ + failureCondition?: (string|null); + } + + /** Represents a RolloutConfig. */ + class RolloutConfig implements IRolloutConfig { + + /** + * Constructs a new RolloutConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig); + + /** RolloutConfig rolloutSteps. */ + public rolloutSteps: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]; + + /** RolloutConfig rolloutCondition. */ + public rolloutCondition: string; + + /** RolloutConfig failureCondition. */ + public failureCondition: string; + + /** + * Creates a new RolloutConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RolloutConfig instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig): google.cloud.dialogflow.cx.v3.RolloutConfig; + + /** + * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. + * @param message RolloutConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. + * @param message RolloutConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RolloutConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RolloutConfig + * @throws {Error} If the payload is not a reader or 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.RolloutConfig; + + /** + * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RolloutConfig + * @throws {Error} If the payload is not a 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.RolloutConfig; + + /** + * Verifies a RolloutConfig message. + * @param message Plain 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 RolloutConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RolloutConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig; + + /** + * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. + * @param message RolloutConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RolloutConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RolloutConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RolloutConfig { + + /** Properties of a RolloutStep. */ + interface IRolloutStep { + + /** RolloutStep displayName */ + displayName?: (string|null); + + /** RolloutStep trafficPercent */ + trafficPercent?: (number|null); + + /** RolloutStep minDuration */ + minDuration?: (google.protobuf.IDuration|null); + } + + /** Represents a RolloutStep. */ + class RolloutStep implements IRolloutStep { + + /** + * Constructs a new RolloutStep. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep); + + /** RolloutStep displayName. */ + public displayName: string; + + /** RolloutStep trafficPercent. */ + public trafficPercent: number; + + /** RolloutStep minDuration. */ + public minDuration?: (google.protobuf.IDuration|null); + + /** + * Creates a new RolloutStep instance using the specified properties. + * @param [properties] Properties to set + * @returns RolloutStep instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; + + /** + * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. + * @param message RolloutStep message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. + * @param message RolloutStep message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RolloutStep message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RolloutStep + * @throws {Error} If the payload is not a reader or 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.RolloutConfig.RolloutStep; + + /** + * Decodes a RolloutStep message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RolloutStep + * @throws {Error} If the payload is not a 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.RolloutConfig.RolloutStep; + + /** + * Verifies a RolloutStep message. + * @param message Plain 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 RolloutStep message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RolloutStep + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep; + + /** + * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. + * @param message RolloutStep + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RolloutStep to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RolloutStep + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a RolloutState. */ + interface IRolloutState { + + /** RolloutState step */ + step?: (string|null); + + /** RolloutState stepIndex */ + stepIndex?: (number|null); + + /** RolloutState startTime */ + startTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a RolloutState. */ + class RolloutState implements IRolloutState { + + /** + * Constructs a new RolloutState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutState); + + /** RolloutState step. */ + public step: string; + + /** RolloutState stepIndex. */ + public stepIndex: number; + + /** RolloutState startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new RolloutState instance using the specified properties. + * @param [properties] Properties to set + * @returns RolloutState instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IRolloutState): google.cloud.dialogflow.cx.v3.RolloutState; + + /** + * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. + * @param message RolloutState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. + * @param message RolloutState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RolloutState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RolloutState + * @throws {Error} If the payload is not a reader or 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.RolloutState; + + /** + * Decodes a RolloutState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RolloutState + * @throws {Error} If the payload is not a 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.RolloutState; + + /** + * Verifies a RolloutState message. + * @param message Plain 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 RolloutState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RolloutState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutState; + + /** + * Creates a plain object from a RolloutState message. Also converts values to other types if specified. + * @param message RolloutState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RolloutState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RolloutState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListExperimentsRequest. */ + interface IListExperimentsRequest { + + /** ListExperimentsRequest parent */ + parent?: (string|null); + + /** ListExperimentsRequest pageSize */ + pageSize?: (number|null); + + /** ListExperimentsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListExperimentsRequest. */ + class ListExperimentsRequest implements IListExperimentsRequest { + + /** + * Constructs a new ListExperimentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest); + + /** ListExperimentsRequest parent. */ + public parent: string; + + /** ListExperimentsRequest pageSize. */ + public pageSize: number; + + /** ListExperimentsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListExperimentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListExperimentsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + + /** + * 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.IListExperimentsRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.ListExperimentsRequest; + + /** + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ListExperimentsRequest; + + /** + * 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 ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListExperimentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; + + /** + * 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.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListExperimentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListExperimentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListExperimentsResponse. */ + interface IListExperimentsResponse { + + /** ListExperimentsResponse experiments */ + experiments?: (google.cloud.dialogflow.cx.v3.IExperiment[]|null); + + /** ListExperimentsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListExperimentsResponse. */ + class ListExperimentsResponse implements IListExperimentsResponse { + + /** + * Constructs a new ListExperimentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse); + + /** ListExperimentsResponse experiments. */ + public experiments: google.cloud.dialogflow.cx.v3.IExperiment[]; + + /** ListExperimentsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * 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.v3.IListExperimentsResponse): google.cloud.dialogflow.cx.v3.ListExperimentsResponse; + + /** + * 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.IListExperimentsResponse, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.v3.ListExperimentsResponse; + + /** + * 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.v3.ListExperimentsResponse; + + /** + * 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 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.v3.ListExperimentsResponse; + + /** + * 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.ListExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListExperimentsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListExperimentsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetExperimentRequest. */ + interface IGetExperimentRequest { + + /** GetExperimentRequest name */ + name?: (string|null); + } + + /** Represents a GetExperimentRequest. */ + class GetExperimentRequest implements IGetExperimentRequest { + + /** + * Constructs a new GetExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest); + + /** GetExperimentRequest name. */ + public name: string; + + /** + * 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.v3.IGetExperimentRequest): google.cloud.dialogflow.cx.v3.GetExperimentRequest; + + /** + * 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.IGetExperimentRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.v3.GetExperimentRequest; + + /** + * 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.v3.GetExperimentRequest; + + /** + * 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 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.v3.GetExperimentRequest; + + /** + * 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.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateExperimentRequest. */ + interface ICreateExperimentRequest { + + /** CreateExperimentRequest parent */ + parent?: (string|null); + + /** CreateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + } + + /** Represents a CreateExperimentRequest. */ + class CreateExperimentRequest implements ICreateExperimentRequest { + + /** + * Constructs a new CreateExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest); + + /** CreateExperimentRequest parent. */ + public parent: string; + + /** CreateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + + /** + * Creates a new CreateExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateExperimentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + + /** + * 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.ICreateExperimentRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.CreateExperimentRequest; + + /** + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.CreateExperimentRequest; + + /** + * 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 CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateExperimentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; + + /** + * 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.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateExperimentRequest. */ + interface IUpdateExperimentRequest { + + /** UpdateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + + /** UpdateExperimentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateExperimentRequest. */ + class UpdateExperimentRequest implements IUpdateExperimentRequest { + + /** + * Constructs a new UpdateExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest); + + /** UpdateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + + /** UpdateExperimentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateExperimentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + + /** + * 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.IUpdateExperimentRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.UpdateExperimentRequest; + + /** + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.UpdateExperimentRequest; + + /** + * 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 an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateExperimentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; + + /** + * 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.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteExperimentRequest. */ + interface IDeleteExperimentRequest { + + /** DeleteExperimentRequest name */ + name?: (string|null); + } + + /** Represents a DeleteExperimentRequest. */ + class DeleteExperimentRequest implements IDeleteExperimentRequest { + + /** + * Constructs a new DeleteExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest); + + /** DeleteExperimentRequest name. */ + public name: string; + + /** + * Creates a new DeleteExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteExperimentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + + /** + * 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.IDeleteExperimentRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.DeleteExperimentRequest; + + /** + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.DeleteExperimentRequest; + + /** + * 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 DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object * @returns DeleteExperimentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; + + /** + * 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.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StartExperimentRequest. */ + interface IStartExperimentRequest { + + /** StartExperimentRequest name */ + name?: (string|null); + } + + /** Represents a StartExperimentRequest. */ + class StartExperimentRequest implements IStartExperimentRequest { + + /** + * Constructs a new StartExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest); + + /** StartExperimentRequest name. */ + public name: string; + + /** + * Creates a new StartExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StartExperimentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + + /** + * 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.IStartExperimentRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.StartExperimentRequest; + + /** + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.StartExperimentRequest; + + /** + * 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 StartExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartExperimentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StartExperimentRequest; + + /** + * 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.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a StopExperimentRequest. */ + interface IStopExperimentRequest { + + /** StopExperimentRequest name */ + name?: (string|null); + } + + /** Represents a StopExperimentRequest. */ + class StopExperimentRequest implements IStopExperimentRequest { + + /** + * Constructs a new StopExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest); + + /** StopExperimentRequest name. */ + public name: string; + + /** + * Creates a new StopExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StopExperimentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): google.cloud.dialogflow.cx.v3.StopExperimentRequest; + + /** + * 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.IStopExperimentRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.StopExperimentRequest; + + /** + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.StopExperimentRequest; + + /** + * 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 StopExperimentRequest 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.v3.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.v3.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StopExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StopExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents a SecuritySettingsService */ + class SecuritySettingsService extends $protobuf.rpc.Service { + + /** + * 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; + } + + 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 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.IGetSecuritySettingsRequest); + + /** GetSecuritySettingsRequest name. */ + public name: string; + + /** + * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + + /** + * 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.IGetSecuritySettingsRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.GetSecuritySettingsRequest; + + /** + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.GetSecuritySettingsRequest; + + /** + * 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 GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSecuritySettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + + /** + * 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.GetSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSecuritySettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSecuritySettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateSecuritySettingsRequest. */ + interface IUpdateSecuritySettingsRequest { + + /** UpdateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + + /** UpdateSecuritySettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateSecuritySettingsRequest. */ + class UpdateSecuritySettingsRequest implements IUpdateSecuritySettingsRequest { + + /** + * Constructs a new UpdateSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest); + + /** UpdateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + + /** UpdateSecuritySettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + + /** + * 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.IUpdateSecuritySettingsRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.UpdateSecuritySettingsRequest; + + /** + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.UpdateSecuritySettingsRequest; + + /** + * 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 an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSecuritySettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; + + /** + * 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.UpdateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateSecuritySettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateSecuritySettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListSecuritySettingsRequest. */ + interface IListSecuritySettingsRequest { + + /** ListSecuritySettingsRequest parent */ + parent?: (string|null); + + /** ListSecuritySettingsRequest pageSize */ + pageSize?: (number|null); + + /** ListSecuritySettingsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListSecuritySettingsRequest. */ + class ListSecuritySettingsRequest implements IListSecuritySettingsRequest { + + /** + * Constructs a new ListSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest); + + /** ListSecuritySettingsRequest parent. */ + public parent: string; + + /** ListSecuritySettingsRequest pageSize. */ + public pageSize: number; + + /** ListSecuritySettingsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + + /** + * 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.IListSecuritySettingsRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.ListSecuritySettingsRequest; + + /** + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ListSecuritySettingsRequest; + + /** + * 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 a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSecuritySettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; + + /** + * 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.ListSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSecuritySettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListSecuritySettingsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListSecuritySettingsResponse. */ + interface IListSecuritySettingsResponse { + + /** ListSecuritySettingsResponse securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings[]|null); + + /** ListSecuritySettingsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListSecuritySettingsResponse. */ + class ListSecuritySettingsResponse implements IListSecuritySettingsResponse { + + /** + * Constructs a new ListSecuritySettingsResponse. + * @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; + + /** + * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSecuritySettingsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + + /** + * 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.IListSecuritySettingsResponse, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.ListSecuritySettingsResponse; + + /** + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ListSecuritySettingsResponse; + + /** + * 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 a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSecuritySettingsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + + /** + * 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.ListSecuritySettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSecuritySettingsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListSecuritySettingsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateSecuritySettingsRequest. */ + interface ICreateSecuritySettingsRequest { + + /** CreateSecuritySettingsRequest parent */ + parent?: (string|null); + + /** CreateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + } + + /** Represents a CreateSecuritySettingsRequest. */ + class CreateSecuritySettingsRequest implements ICreateSecuritySettingsRequest { + + /** + * Constructs a new CreateSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest); + + /** CreateSecuritySettingsRequest parent. */ + public parent: string; + + /** CreateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + + /** + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; + + /** + * 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.ICreateSecuritySettingsRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.DeleteExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Verifies a DeleteExperimentRequest message. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.CreateSecuritySettingsRequest; + + /** + * 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 a DeleteExperimentRequest 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 DeleteExperimentRequest + * @returns CreateSecuritySettingsRequest */ - 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.CreateSecuritySettingsRequest; /** - * 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 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.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteExperimentRequest to JSON. + * Converts this CreateSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteExperimentRequest + * Gets the default type url for CreateSecuritySettingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StartExperimentRequest. */ - interface IStartExperimentRequest { + /** Properties of a DeleteSecuritySettingsRequest. */ + interface IDeleteSecuritySettingsRequest { - /** StartExperimentRequest name */ + /** DeleteSecuritySettingsRequest name */ name?: (string|null); } - /** Represents a StartExperimentRequest. */ - class StartExperimentRequest implements IStartExperimentRequest { + /** Represents a DeleteSecuritySettingsRequest. */ + class DeleteSecuritySettingsRequest implements IDeleteSecuritySettingsRequest { /** - * Constructs a new StartExperimentRequest. + * Constructs a new DeleteSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest); - /** StartExperimentRequest name. */ + /** DeleteSecuritySettingsRequest name. */ public name: string; /** - * Creates a new StartExperimentRequest instance using the specified properties. + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartExperimentRequest instance + * @returns DeleteSecuritySettingsRequest 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.IDeleteSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * 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 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.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, 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 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.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartExperimentRequest 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 StartExperimentRequest + * @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.StartExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Decodes a StartExperimentRequest 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 StartExperimentRequest + * @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.StartExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Verifies a StartExperimentRequest 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 StartExperimentRequest 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 StartExperimentRequest + * @returns DeleteSecuritySettingsRequest */ - 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.DeleteSecuritySettingsRequest; /** - * 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 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.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartExperimentRequest to JSON. + * Converts this DeleteSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StartExperimentRequest + * Gets the default type url for DeleteSecuritySettingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StopExperimentRequest. */ - interface IStopExperimentRequest { + /** Properties of a SecuritySettings. */ + interface ISecuritySettings { - /** StopExperimentRequest name */ + /** 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 deidentifyTemplate */ + deidentifyTemplate?: (string|null); + + /** SecuritySettings retentionWindowDays */ + retentionWindowDays?: (number|null); + + /** SecuritySettings retentionStrategy */ + retentionStrategy?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|null); + + /** SecuritySettings purgeDataTypes */ + purgeDataTypes?: (google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]|null); + + /** SecuritySettings audioExportSettings */ + audioExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings|null); + + /** SecuritySettings insightsExportSettings */ + insightsExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null); } - /** Represents a StopExperimentRequest. */ - class StopExperimentRequest implements IStopExperimentRequest { + /** Represents a SecuritySettings. */ + class SecuritySettings implements ISecuritySettings { /** - * Constructs a new StopExperimentRequest. + * Constructs a new SecuritySettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings); - /** StopExperimentRequest name. */ + /** 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 deidentifyTemplate. */ + public deidentifyTemplate: string; + + /** SecuritySettings retentionWindowDays. */ + public retentionWindowDays?: (number|null); + + /** SecuritySettings retentionStrategy. */ + public retentionStrategy?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|null); + + /** SecuritySettings purgeDataTypes. */ + public purgeDataTypes: google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]; + + /** SecuritySettings audioExportSettings. */ + public audioExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings|null); + + /** SecuritySettings insightsExportSettings. */ + public insightsExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null); + + /** SecuritySettings dataRetention. */ + public dataRetention?: ("retentionWindowDays"|"retentionStrategy"); + /** - * Creates a new StopExperimentRequest instance using the specified properties. + * Creates a new SecuritySettings instance using the specified properties. * @param [properties] Properties to set - * @returns StopExperimentRequest instance + * @returns SecuritySettings 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.ISecuritySettings): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * 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 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.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, 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 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.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopExperimentRequest 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 StopExperimentRequest + * @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.StopExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Decodes a StopExperimentRequest 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 StopExperimentRequest + * @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.StopExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Verifies a StopExperimentRequest 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 a StopExperimentRequest 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 StopExperimentRequest + * @returns SecuritySettings */ - 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.SecuritySettings; /** - * 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 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.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this SecuritySettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopExperimentRequest + * Gets the default type url for SecuritySettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a SecuritySettingsService */ - class SecuritySettingsService extends $protobuf.rpc.Service { + namespace SecuritySettings { - /** - * 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); + /** RedactionStrategy enum. */ + enum RedactionStrategy { + REDACTION_STRATEGY_UNSPECIFIED = 0, + REDACT_WITH_SERVICE = 1 + } - /** - * 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; + /** RedactionScope enum. */ + enum RedactionScope { + REDACTION_SCOPE_UNSPECIFIED = 0, + REDACT_DISK_STORAGE = 2 + } - /** - * 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; + /** RetentionStrategy enum. */ + enum RetentionStrategy { + RETENTION_STRATEGY_UNSPECIFIED = 0, + REMOVE_AFTER_CONVERSATION = 1 + } - /** - * Calls CreateSecuritySettings. - * @param request CreateSecuritySettingsRequest message or plain object - * @returns Promise - */ - public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): Promise; + /** PurgeDataType enum. */ + enum PurgeDataType { + PURGE_DATA_TYPE_UNSPECIFIED = 0, + DIALOGFLOW_HISTORY = 1 + } - /** - * 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; + /** Properties of an AudioExportSettings. */ + interface IAudioExportSettings { - /** - * Calls GetSecuritySettings. - * @param request GetSecuritySettingsRequest message or plain object - * @returns Promise - */ - public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): Promise; + /** AudioExportSettings gcsBucket */ + gcsBucket?: (string|null); - /** - * 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; + /** AudioExportSettings audioExportPattern */ + audioExportPattern?: (string|null); - /** - * Calls UpdateSecuritySettings. - * @param request UpdateSecuritySettingsRequest message or plain object - * @returns Promise - */ - public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): Promise; + /** AudioExportSettings enableAudioRedaction */ + enableAudioRedaction?: (boolean|null); - /** - * 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; + /** AudioExportSettings audioFormat */ + audioFormat?: (google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat|null); + } + + /** Represents an AudioExportSettings. */ + class AudioExportSettings implements IAudioExportSettings { + + /** + * Constructs a new AudioExportSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings); + + /** AudioExportSettings gcsBucket. */ + public gcsBucket: string; + + /** AudioExportSettings audioExportPattern. */ + public audioExportPattern: string; + + /** AudioExportSettings enableAudioRedaction. */ + public enableAudioRedaction: boolean; + + /** AudioExportSettings audioFormat. */ + public audioFormat: (google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat); + + /** + * Creates a new AudioExportSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns AudioExportSettings instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings): google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings; + + /** + * Encodes the specified AudioExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify|verify} messages. + * @param message AudioExportSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudioExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify|verify} messages. + * @param message AudioExportSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudioExportSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudioExportSettings + * @throws {Error} If the payload is not a reader or 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.SecuritySettings.AudioExportSettings; + + /** + * Decodes an AudioExportSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudioExportSettings + * @throws {Error} If the payload is not a 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.SecuritySettings.AudioExportSettings; + + /** + * Verifies an AudioExportSettings message. + * @param message Plain 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 AudioExportSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudioExportSettings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings; + + /** + * Creates a plain object from an AudioExportSettings message. Also converts values to other types if specified. + * @param message AudioExportSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudioExportSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudioExportSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AudioExportSettings { + + /** AudioFormat enum. */ + enum AudioFormat { + AUDIO_FORMAT_UNSPECIFIED = 0, + MULAW = 1, + MP3 = 2, + OGG = 3 + } + } + + /** Properties of an InsightsExportSettings. */ + interface IInsightsExportSettings { + + /** InsightsExportSettings enableInsightsExport */ + enableInsightsExport?: (boolean|null); + } + + /** Represents an InsightsExportSettings. */ + class InsightsExportSettings implements IInsightsExportSettings { + + /** + * Constructs a new InsightsExportSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings); + + /** InsightsExportSettings enableInsightsExport. */ + public enableInsightsExport: boolean; + + /** + * Creates a new InsightsExportSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns InsightsExportSettings instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; + + /** + * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. + * @param message InsightsExportSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. + * @param message InsightsExportSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsightsExportSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsightsExportSettings + * @throws {Error} If the payload is not a reader or 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.SecuritySettings.InsightsExportSettings; + + /** + * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsightsExportSettings + * @throws {Error} If the payload is not a 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.SecuritySettings.InsightsExportSettings; + + /** + * Verifies an InsightsExportSettings message. + * @param message Plain 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 InsightsExportSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsightsExportSettings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; - /** - * Calls ListSecuritySettings. - * @param request ListSecuritySettingsRequest message or plain object - * @returns Promise - */ - public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): Promise; + /** + * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. + * @param message InsightsExportSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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; + /** + * Converts this InsightsExportSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Calls DeleteSecuritySettings. - * @param request DeleteSecuritySettingsRequest message or plain object - * @returns Promise - */ - public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): Promise; + /** + * Gets the default type url for InsightsExportSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - namespace SecuritySettingsService { + /** Represents a Versions */ + class Versions extends $protobuf.rpc.Service { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService|createSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings + * 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 */ - type CreateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService|getSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings + * 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. */ - type GetSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Versions; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService|updateSecuritySettings}. - * @param error Error, if any - * @param [response] SecuritySettings + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListVersionsResponse */ - type UpdateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback): void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService|listSecuritySettings}. - * @param error Error, if any - * @param [response] ListSecuritySettingsResponse + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @returns Promise */ - type ListSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) => void; + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest): Promise; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService|deleteSecuritySettings}. - * @param error Error, if any - * @param [response] Empty + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version */ - 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 { + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback): void; /** - * Constructs a new GetSecuritySettingsRequest. - * @param [properties] Properties to set + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest); - - /** GetSecuritySettingsRequest name. */ - public name: string; + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest): Promise; /** - * Creates a new GetSecuritySettingsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSecuritySettingsRequest instance + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback): void; /** - * 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 + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): Promise; /** - * 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 + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback): void; /** - * 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 GetSecuritySettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): Promise; /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSecuritySettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback): void; /** - * Verifies a GetSecuritySettingsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): Promise; /** - * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSecuritySettingsRequest + * Calls LoadVersion. + * @param request LoadVersionRequest 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.v3.GetSecuritySettingsRequest; + public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback): void; /** - * 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 + * Calls LoadVersion. + * @param request LoadVersionRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): Promise; /** - * Converts this GetSecuritySettingsRequest to JSON. - * @returns JSON object + * Calls CompareVersions. + * @param request CompareVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompareVersionsResponse */ - public toJSON(): { [k: string]: any }; + public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback): void; /** - * Gets the default type url for GetSecuritySettingsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CompareVersions. + * @param request CompareVersionsRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateSecuritySettingsRequest. */ - interface IUpdateSecuritySettingsRequest { - - /** UpdateSecuritySettingsRequest securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); - - /** UpdateSecuritySettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): Promise; } - /** Represents an UpdateSecuritySettingsRequest. */ - class UpdateSecuritySettingsRequest implements IUpdateSecuritySettingsRequest { - - /** - * Constructs a new UpdateSecuritySettingsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest); - - /** UpdateSecuritySettingsRequest securitySettings. */ - public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); - - /** UpdateSecuritySettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** - * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateSecuritySettingsRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; - - /** - * 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.IUpdateSecuritySettingsRequest, 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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + namespace Versions { /** - * 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 UpdateSecuritySettingsRequest - * @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.UpdateSecuritySettingsRequest; + type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListVersionsResponse) => void; /** - * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateSecuritySettingsRequest - * @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.UpdateSecuritySettingsRequest; + type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; /** - * Verifies an UpdateSecuritySettingsRequest 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 UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateSecuritySettingsRequest + * 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.UpdateSecuritySettingsRequest; + type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; /** - * 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 + * 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.UpdateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Converts this UpdateSecuritySettingsRequest 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; /** - * Gets the default type url for UpdateSecuritySettingsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|compareVersions}. + * @param error Error, if any + * @param [response] CompareVersionsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type CompareVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CompareVersionsResponse) => void; } - /** Properties of a ListSecuritySettingsRequest. */ - interface IListSecuritySettingsRequest { - - /** ListSecuritySettingsRequest parent */ - parent?: (string|null); - - /** ListSecuritySettingsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a CreateVersionOperationMetadata. */ + interface ICreateVersionOperationMetadata { - /** ListSecuritySettingsRequest pageToken */ - pageToken?: (string|null); + /** CreateVersionOperationMetadata version */ + version?: (string|null); } - /** Represents a ListSecuritySettingsRequest. */ - class ListSecuritySettingsRequest implements IListSecuritySettingsRequest { + /** Represents a CreateVersionOperationMetadata. */ + class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { /** - * Constructs a new ListSecuritySettingsRequest. + * Constructs a new CreateVersionOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest); - - /** ListSecuritySettingsRequest parent. */ - public parent: string; - - /** ListSecuritySettingsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata); - /** ListSecuritySettingsRequest pageToken. */ - public pageToken: string; + /** CreateVersionOperationMetadata version. */ + public version: string; /** - * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * Creates a new CreateVersionOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListSecuritySettingsRequest instance + * @returns CreateVersionOperationMetadata 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.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * 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 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.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, 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 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.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSecuritySettingsRequest 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 ListSecuritySettingsRequest + * @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.ListSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Decodes a ListSecuritySettingsRequest 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 ListSecuritySettingsRequest + * @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.ListSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Verifies a ListSecuritySettingsRequest 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 ListSecuritySettingsRequest 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 ListSecuritySettingsRequest + * @returns CreateVersionOperationMetadata */ - 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.CreateVersionOperationMetadata; /** - * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. - * @param message ListSecuritySettingsRequest + * 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.ListSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSecuritySettingsRequest to JSON. + * Converts this CreateVersionOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSecuritySettingsRequest + * Gets the default type url for CreateVersionOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSecuritySettingsResponse. */ - interface IListSecuritySettingsResponse { - - /** ListSecuritySettingsResponse securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings[]|null); - - /** ListSecuritySettingsResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListSecuritySettingsResponse. */ - class ListSecuritySettingsResponse implements IListSecuritySettingsResponse { - - /** - * Constructs a new ListSecuritySettingsResponse. - * @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; - - /** - * Creates a new ListSecuritySettingsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListSecuritySettingsResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; - - /** - * 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.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a Version. */ + interface IVersion { - /** - * 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.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Version name */ + name?: (string|null); - /** - * 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 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.ListSecuritySettingsResponse; + /** Version displayName */ + displayName?: (string|null); - /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.ListSecuritySettingsResponse; + /** Version description */ + description?: (string|null); - /** - * 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); + /** Version nluSettings */ + nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); - /** - * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListSecuritySettingsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; + /** Version createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * 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.ListSecuritySettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Version state */ + state?: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State|null); + } - /** - * Converts this ListSecuritySettingsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a Version. */ + class Version implements IVersion { /** - * Gets the default type url for ListSecuritySettingsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Constructs a new Version. + * @param [properties] Properties to set */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateSecuritySettingsRequest. */ - interface ICreateSecuritySettingsRequest { + constructor(properties?: google.cloud.dialogflow.cx.v3.IVersion); - /** CreateSecuritySettingsRequest parent */ - parent?: (string|null); + /** Version name. */ + public name: string; - /** CreateSecuritySettingsRequest securitySettings */ - securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); - } + /** Version displayName. */ + public displayName: string; - /** Represents a CreateSecuritySettingsRequest. */ - class CreateSecuritySettingsRequest implements ICreateSecuritySettingsRequest { + /** Version description. */ + public description: string; - /** - * Constructs a new CreateSecuritySettingsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest); + /** Version nluSettings. */ + public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); - /** CreateSecuritySettingsRequest parent. */ - public parent: string; + /** Version createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** CreateSecuritySettingsRequest securitySettings. */ - public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); + /** Version state. */ + public state: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State); /** - * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * Creates a new Version instance using the specified properties. * @param [properties] Properties to set - * @returns CreateSecuritySettingsRequest instance + * @returns Version 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.IVersion): google.cloud.dialogflow.cx.v3.Version; /** - * 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 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.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVersion, 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 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.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateSecuritySettingsRequest 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 CreateSecuritySettingsRequest + * @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.CreateSecuritySettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Version; /** - * Decodes a CreateSecuritySettingsRequest 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 CreateSecuritySettingsRequest + * @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.CreateSecuritySettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Version; /** - * Verifies a CreateSecuritySettingsRequest 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 CreateSecuritySettingsRequest 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 CreateSecuritySettingsRequest + * @returns Version */ - 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.Version; /** - * 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 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.CreateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateSecuritySettingsRequest to JSON. + * Converts this Version to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateSecuritySettingsRequest + * Gets the default type url for Version * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteSecuritySettingsRequest. */ - interface IDeleteSecuritySettingsRequest { + namespace Version { - /** DeleteSecuritySettingsRequest name */ - name?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + RUNNING = 1, + SUCCEEDED = 2, + FAILED = 3 + } } - /** Represents a DeleteSecuritySettingsRequest. */ - class DeleteSecuritySettingsRequest implements IDeleteSecuritySettingsRequest { + /** Properties of a ListVersionsRequest. */ + interface IListVersionsRequest { + + /** ListVersionsRequest parent */ + parent?: (string|null); + + /** ListVersionsRequest pageSize */ + pageSize?: (number|null); + + /** ListVersionsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListVersionsRequest. */ + class ListVersionsRequest implements IListVersionsRequest { /** - * Constructs a new DeleteSecuritySettingsRequest. + * Constructs a new ListVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest); - /** DeleteSecuritySettingsRequest name. */ - public name: string; + /** ListVersionsRequest parent. */ + public parent: string; + + /** ListVersionsRequest pageSize. */ + public pageSize: number; + + /** ListVersionsRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. + * Creates a new ListVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteSecuritySettingsRequest instance + * @returns ListVersionsRequest 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.IListVersionsRequest): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * 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 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 static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, 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 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 static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. + * 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 DeleteSecuritySettingsRequest + * @returns ListVersionsRequest * @throws {Error} If the payload is not a reader or 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.ListVersionsRequest; /** - * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteSecuritySettingsRequest + * @returns ListVersionsRequest * @throws {Error} If the payload is not a 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.ListVersionsRequest; /** - * Verifies a DeleteSecuritySettingsRequest message. + * Verifies a ListVersionsRequest message. * @param message Plain 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 ListVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteSecuritySettingsRequest + * @returns ListVersionsRequest */ - 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.ListVersionsRequest; /** - * 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 ListVersionsRequest message. Also converts values to other types if specified. + * @param message ListVersionsRequest * @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.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteSecuritySettingsRequest to JSON. + * Converts this ListVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteSecuritySettingsRequest + * Gets the default type url for ListVersionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 deidentifyTemplate */ - deidentifyTemplate?: (string|null); - - /** SecuritySettings retentionWindowDays */ - retentionWindowDays?: (number|null); - - /** SecuritySettings retentionStrategy */ - retentionStrategy?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|null); - - /** SecuritySettings purgeDataTypes */ - purgeDataTypes?: (google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]|null); + /** Properties of a ListVersionsResponse. */ + interface IListVersionsResponse { - /** SecuritySettings audioExportSettings */ - audioExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings|null); + /** ListVersionsResponse versions */ + versions?: (google.cloud.dialogflow.cx.v3.IVersion[]|null); - /** SecuritySettings insightsExportSettings */ - insightsExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null); + /** ListVersionsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a SecuritySettings. */ - class SecuritySettings implements ISecuritySettings { + /** Represents a ListVersionsResponse. */ + class ListVersionsResponse implements IListVersionsResponse { /** - * Constructs a new SecuritySettings. + * Constructs a new ListVersionsResponse. * @param [properties] Properties to set */ - 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 deidentifyTemplate. */ - public deidentifyTemplate: string; - - /** SecuritySettings retentionWindowDays. */ - public retentionWindowDays?: (number|null); - - /** SecuritySettings retentionStrategy. */ - public retentionStrategy?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|null); - - /** SecuritySettings purgeDataTypes. */ - public purgeDataTypes: google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]; - - /** SecuritySettings audioExportSettings. */ - public audioExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse); - /** SecuritySettings insightsExportSettings. */ - public insightsExportSettings?: (google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null); + /** ListVersionsResponse versions. */ + public versions: google.cloud.dialogflow.cx.v3.IVersion[]; - /** SecuritySettings dataRetention. */ - public dataRetention?: ("retentionWindowDays"|"retentionStrategy"); + /** ListVersionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new SecuritySettings instance using the specified properties. + * Creates a new ListVersionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SecuritySettings instance + * @returns ListVersionsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings): google.cloud.dialogflow.cx.v3.SecuritySettings; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * 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 + * 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.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SecuritySettings 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 SecuritySettings + * @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.SecuritySettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Decodes a SecuritySettings 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 SecuritySettings + * @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.SecuritySettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Verifies a SecuritySettings 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 SecuritySettings 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 SecuritySettings + * @returns ListVersionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. - * @param message SecuritySettings + * 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.SecuritySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SecuritySettings to JSON. + * Converts this ListVersionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SecuritySettings + * Gets the default type url for ListVersionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - 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 - } - - /** RetentionStrategy enum. */ - enum RetentionStrategy { - RETENTION_STRATEGY_UNSPECIFIED = 0, - REMOVE_AFTER_CONVERSATION = 1 - } - - /** PurgeDataType enum. */ - enum PurgeDataType { - PURGE_DATA_TYPE_UNSPECIFIED = 0, - DIALOGFLOW_HISTORY = 1 - } - - /** Properties of an AudioExportSettings. */ - interface IAudioExportSettings { - - /** AudioExportSettings gcsBucket */ - gcsBucket?: (string|null); - - /** AudioExportSettings audioExportPattern */ - audioExportPattern?: (string|null); - - /** AudioExportSettings enableAudioRedaction */ - enableAudioRedaction?: (boolean|null); - - /** AudioExportSettings audioFormat */ - audioFormat?: (google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat|null); - } - - /** Represents an AudioExportSettings. */ - class AudioExportSettings implements IAudioExportSettings { - - /** - * Constructs a new AudioExportSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings); - - /** AudioExportSettings gcsBucket. */ - public gcsBucket: string; - - /** AudioExportSettings audioExportPattern. */ - public audioExportPattern: string; - - /** AudioExportSettings enableAudioRedaction. */ - public enableAudioRedaction: boolean; - - /** AudioExportSettings audioFormat. */ - public audioFormat: (google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat); - - /** - * Creates a new AudioExportSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns AudioExportSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings): google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings; - - /** - * Encodes the specified AudioExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify|verify} messages. - * @param message AudioExportSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AudioExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify|verify} messages. - * @param message AudioExportSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AudioExportSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AudioExportSettings - * @throws {Error} If the payload is not a reader or 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.SecuritySettings.AudioExportSettings; - - /** - * Decodes an AudioExportSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AudioExportSettings - * @throws {Error} If the payload is not a 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.SecuritySettings.AudioExportSettings; - - /** - * Verifies an AudioExportSettings message. - * @param message Plain 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 AudioExportSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AudioExportSettings - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings; - - /** - * Creates a plain object from an AudioExportSettings message. Also converts values to other types if specified. - * @param message AudioExportSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AudioExportSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AudioExportSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { - namespace AudioExportSettings { + /** GetVersionRequest name */ + name?: (string|null); + } - /** AudioFormat enum. */ - enum AudioFormat { - AUDIO_FORMAT_UNSPECIFIED = 0, - MULAW = 1, - MP3 = 2, - OGG = 3 - } - } + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { - /** Properties of an InsightsExportSettings. */ - interface IInsightsExportSettings { + /** + * Constructs a new GetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest); - /** InsightsExportSettings enableInsightsExport */ - enableInsightsExport?: (boolean|null); - } + /** GetVersionRequest name. */ + public name: string; - /** Represents an InsightsExportSettings. */ - class InsightsExportSettings implements IInsightsExportSettings { + /** + * Creates a new GetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest): google.cloud.dialogflow.cx.v3.GetVersionRequest; - /** - * Constructs a new InsightsExportSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings); + /** + * 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.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** InsightsExportSettings enableInsightsExport. */ - public enableInsightsExport: boolean; + /** + * 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.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new InsightsExportSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns InsightsExportSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; + /** + * 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 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.GetVersionRequest; - /** - * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @param message InsightsExportSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.GetVersionRequest; - /** - * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @param message InsightsExportSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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); - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InsightsExportSettings - * @throws {Error} If the payload is not a reader or 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.SecuritySettings.InsightsExportSettings; + /** + * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetVersionRequest; - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InsightsExportSettings - * @throws {Error} If the payload is not a 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.SecuritySettings.InsightsExportSettings; + /** + * 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.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies an InsightsExportSettings message. - * @param message 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 GetVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InsightsExportSettings - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings; + /** + * Gets the default type url for GetVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. - * @param message InsightsExportSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a CreateVersionRequest. */ + interface ICreateVersionRequest { - /** - * Converts this InsightsExportSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CreateVersionRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for InsightsExportSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CreateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); } - /** Represents a Versions */ - class Versions extends $protobuf.rpc.Service { + /** Represents a CreateVersionRequest. */ + class CreateVersionRequest implements ICreateVersionRequest { /** - * 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 + * Constructs a new CreateVersionRequest. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest); - /** - * 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(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Versions; + /** CreateVersionRequest parent. */ + public parent: string; + + /** CreateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListVersionsResponse + * Creates a new CreateVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateVersionRequest instance */ - public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @returns Promise + * 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 listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * 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 getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @returns Promise + * 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 CreateVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object - * @returns Promise + * Verifies a CreateVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateVersionRequest */ - public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object - * @returns Promise + * 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 updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Converts this CreateVersionRequest to JSON. + * @returns JSON object */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @returns Promise + * Gets the default type url for CreateVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateVersionRequest. */ + interface IUpdateVersionRequest { + + /** UpdateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + + /** UpdateVersionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateVersionRequest. */ + class UpdateVersionRequest implements IUpdateVersionRequest { /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Constructs a new UpdateVersionRequest. + * @param [properties] Properties to set */ - public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest); + + /** UpdateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + + /** UpdateVersionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object - * @returns Promise + * Creates a new UpdateVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateVersionRequest instance */ - public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Calls CompareVersions. - * @param request CompareVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CompareVersionsResponse + * 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 compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CompareVersions. - * @param request CompareVersionsRequest message or plain object - * @returns Promise + * 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 compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): Promise; - } - - namespace Versions { + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|listVersions}. - * @param error Error, if any - * @param [response] ListVersionsResponse + * 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 */ - type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListVersionsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|getVersion}. - * @param error Error, if any - * @param [response] Version + * 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 */ - type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|createVersion}. - * @param error Error, if any - * @param [response] Operation + * Verifies an UpdateVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateVersionCallback = (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.v3.Versions|updateVersion}. - * @param error Error, if any - * @param [response] Version + * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateVersionRequest */ - type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|deleteVersion}. - * @param error Error, if any - * @param [response] Empty + * 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 */ - type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|loadVersion}. - * @param error Error, if any - * @param [response] Operation + * Converts this UpdateVersionRequest to JSON. + * @returns JSON object */ - type LoadVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|compareVersions}. - * @param error Error, if any - * @param [response] CompareVersionsResponse + * Gets the default type url for UpdateVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type CompareVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CompareVersionsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateVersionOperationMetadata. */ - interface ICreateVersionOperationMetadata { + /** Properties of a DeleteVersionRequest. */ + interface IDeleteVersionRequest { - /** CreateVersionOperationMetadata version */ - version?: (string|null); + /** DeleteVersionRequest name */ + name?: (string|null); } - /** Represents a CreateVersionOperationMetadata. */ - class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { + /** Represents a DeleteVersionRequest. */ + class DeleteVersionRequest implements IDeleteVersionRequest { /** - * Constructs a new CreateVersionOperationMetadata. + * Constructs a new DeleteVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest); - /** CreateVersionOperationMetadata version. */ - public version: string; + /** DeleteVersionRequest name. */ + public name: string; /** - * Creates a new CreateVersionOperationMetadata instance using the specified properties. + * Creates a new DeleteVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVersionOperationMetadata instance + * @returns DeleteVersionRequest 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.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * 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 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.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, 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 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.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVersionOperationMetadata 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 CreateVersionOperationMetadata + * @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.CreateVersionOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Decodes a CreateVersionOperationMetadata 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 CreateVersionOperationMetadata + * @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.CreateVersionOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Verifies a CreateVersionOperationMetadata 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 a CreateVersionOperationMetadata 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 CreateVersionOperationMetadata + * @returns DeleteVersionRequest */ - 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.DeleteVersionRequest; /** - * 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 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.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVersionOperationMetadata to JSON. + * Converts this DeleteVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateVersionOperationMetadata + * Gets the default type url for DeleteVersionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Version. */ - interface IVersion { + /** Properties of a LoadVersionRequest. */ + interface ILoadVersionRequest { - /** Version name */ + /** LoadVersionRequest 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); - - /** Version state */ - state?: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State|null); + /** LoadVersionRequest allowOverrideAgentResources */ + allowOverrideAgentResources?: (boolean|null); } - /** Represents a Version. */ - class Version implements IVersion { + /** Represents a LoadVersionRequest. */ + class LoadVersionRequest implements ILoadVersionRequest { /** - * Constructs a new Version. + * Constructs a new LoadVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVersion); + constructor(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest); - /** Version name. */ + /** LoadVersionRequest name. */ public name: 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); + /** LoadVersionRequest allowOverrideAgentResources. */ + public allowOverrideAgentResources: boolean; /** - * Creates a new Version instance using the specified properties. + * Creates a new LoadVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Version instance + * @returns LoadVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVersion): google.cloud.dialogflow.cx.v3.Version; + public static create(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * 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 + * 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.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Version 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 Version + * @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.Version; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Decodes a Version 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 Version + * @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.Version; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Verifies a Version 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 Version 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 Version + * @returns LoadVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Version; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Creates a plain object from a Version message. Also converts values to other types if specified. - * @param message Version + * 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.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Version to JSON. + * Converts this LoadVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Version + * Gets the default type url for LoadVersionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Version { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - RUNNING = 1, - SUCCEEDED = 2, - FAILED = 3 - } - } - - /** Properties of a ListVersionsRequest. */ - interface IListVersionsRequest { + /** Properties of a CompareVersionsRequest. */ + interface ICompareVersionsRequest { - /** ListVersionsRequest parent */ - parent?: (string|null); + /** CompareVersionsRequest baseVersion */ + baseVersion?: (string|null); - /** ListVersionsRequest pageSize */ - pageSize?: (number|null); + /** CompareVersionsRequest targetVersion */ + targetVersion?: (string|null); - /** ListVersionsRequest pageToken */ - pageToken?: (string|null); + /** CompareVersionsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListVersionsRequest. */ - class ListVersionsRequest implements IListVersionsRequest { + /** Represents a CompareVersionsRequest. */ + class CompareVersionsRequest implements ICompareVersionsRequest { /** - * Constructs a new ListVersionsRequest. + * Constructs a new CompareVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest); - /** ListVersionsRequest parent. */ - public parent: string; + /** CompareVersionsRequest baseVersion. */ + public baseVersion: string; - /** ListVersionsRequest pageSize. */ - public pageSize: number; + /** CompareVersionsRequest targetVersion. */ + public targetVersion: string; - /** ListVersionsRequest pageToken. */ - public pageToken: string; + /** CompareVersionsRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListVersionsRequest instance using the specified properties. + * Creates a new CompareVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsRequest instance + * @returns CompareVersionsRequest 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.ICompareVersionsRequest): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; /** - * 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 CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. + * @param message CompareVersionsRequest 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.ICompareVersionsRequest, 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 CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. + * @param message CompareVersionsRequest 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.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer. + * Decodes a CompareVersionsRequest 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 CompareVersionsRequest * @throws {Error} If the payload is not a reader or 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.CompareVersionsRequest; /** - * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsRequest + * @returns CompareVersionsRequest * @throws {Error} If the payload is not a 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.CompareVersionsRequest; /** - * Verifies a ListVersionsRequest message. + * Verifies a CompareVersionsRequest message. * @param message Plain 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 CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsRequest + * @returns CompareVersionsRequest */ - 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.CompareVersionsRequest; /** - * 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 CompareVersionsRequest message. Also converts values to other types if specified. + * @param message CompareVersionsRequest * @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.CompareVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this CompareVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListVersionsRequest + * Gets the default type url for CompareVersionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListVersionsResponse. */ - interface IListVersionsResponse { + /** Properties of a CompareVersionsResponse. */ + interface ICompareVersionsResponse { - /** ListVersionsResponse versions */ - versions?: (google.cloud.dialogflow.cx.v3.IVersion[]|null); + /** CompareVersionsResponse baseVersionContentJson */ + baseVersionContentJson?: (string|null); - /** ListVersionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CompareVersionsResponse targetVersionContentJson */ + targetVersionContentJson?: (string|null); + + /** CompareVersionsResponse compareTime */ + compareTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ListVersionsResponse. */ - class ListVersionsResponse implements IListVersionsResponse { + /** Represents a CompareVersionsResponse. */ + class CompareVersionsResponse implements ICompareVersionsResponse { /** - * Constructs a new ListVersionsResponse. + * Constructs a new CompareVersionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse); - /** ListVersionsResponse versions. */ - public versions: google.cloud.dialogflow.cx.v3.IVersion[]; + /** CompareVersionsResponse baseVersionContentJson. */ + public baseVersionContentJson: string; - /** ListVersionsResponse nextPageToken. */ - public nextPageToken: string; + /** CompareVersionsResponse targetVersionContentJson. */ + public targetVersionContentJson: string; + + /** CompareVersionsResponse compareTime. */ + public compareTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListVersionsResponse instance using the specified properties. + * Creates a new CompareVersionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsResponse instance + * @returns CompareVersionsResponse 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.ICompareVersionsResponse): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; /** - * 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 CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. + * @param message CompareVersionsResponse 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.ICompareVersionsResponse, 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 CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. + * @param message CompareVersionsResponse 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.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer. + * Decodes a CompareVersionsResponse 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 CompareVersionsResponse * @throws {Error} If the payload is not a reader or 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.CompareVersionsResponse; /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListVersionsResponse + * @returns CompareVersionsResponse * @throws {Error} If the payload is not a 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.CompareVersionsResponse; /** - * Verifies a ListVersionsResponse message. + * Verifies a CompareVersionsResponse message. * @param message Plain 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 CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListVersionsResponse + * @returns CompareVersionsResponse */ - 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.CompareVersionsResponse; /** - * 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 CompareVersionsResponse message. Also converts values to other types if specified. + * @param message CompareVersionsResponse * @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.CompareVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsResponse to JSON. + * Converts this CompareVersionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListVersionsResponse + * Gets the default type url for CompareVersionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of a GetVersionRequest. */ - interface IGetVersionRequest { + /** Namespace v3beta1. */ + namespace v3beta1 { - /** GetVersionRequest name */ - name?: (string|null); + /** Properties of an AdvancedSettings. */ + interface IAdvancedSettings { + + /** AdvancedSettings audioExportGcsDestination */ + audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null); + + /** AdvancedSettings dtmfSettings */ + dtmfSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings|null); + + /** AdvancedSettings loggingSettings */ + loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); } - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { + /** Represents an AdvancedSettings. */ + class AdvancedSettings implements IAdvancedSettings { /** - * Constructs a new GetVersionRequest. + * Constructs a new AdvancedSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings); - /** GetVersionRequest name. */ - public name: string; + /** AdvancedSettings audioExportGcsDestination. */ + public audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null); + + /** AdvancedSettings dtmfSettings. */ + public dtmfSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings|null); + + /** AdvancedSettings loggingSettings. */ + public loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); /** - * Creates a new GetVersionRequest instance using the specified properties. + * Creates a new AdvancedSettings instance using the specified properties. * @param [properties] Properties to set - * @returns GetVersionRequest instance + * @returns AdvancedSettings 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.v3beta1.IAdvancedSettings): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings; /** - * 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 AdvancedSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. + * @param message AdvancedSettings 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.v3beta1.IAdvancedSettings, 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 AdvancedSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. + * @param message AdvancedSettings 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.v3beta1.IAdvancedSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetVersionRequest message from the specified reader or buffer. + * Decodes an AdvancedSettings 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 AdvancedSettings * @throws {Error} If the payload is not a reader or 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.v3beta1.AdvancedSettings; /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. + * Decodes an AdvancedSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetVersionRequest + * @returns AdvancedSettings * @throws {Error} If the payload is not a 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.v3beta1.AdvancedSettings; /** - * Verifies a GetVersionRequest message. + * Verifies an AdvancedSettings message. * @param message Plain 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 an AdvancedSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetVersionRequest + * @returns AdvancedSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings; /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @param message GetVersionRequest + * Creates a plain object from an AdvancedSettings message. Also converts values to other types if specified. + * @param message AdvancedSettings * @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.v3beta1.AdvancedSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetVersionRequest to JSON. + * Converts this AdvancedSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetVersionRequest + * Gets the default type url for AdvancedSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateVersionRequest. */ - interface ICreateVersionRequest { + namespace AdvancedSettings { - /** CreateVersionRequest parent */ - parent?: (string|null); + /** Properties of a DtmfSettings. */ + interface IDtmfSettings { - /** CreateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** DtmfSettings enabled */ + enabled?: (boolean|null); + + /** DtmfSettings maxDigits */ + maxDigits?: (number|null); + + /** DtmfSettings finishDigit */ + finishDigit?: (string|null); + } + + /** Represents a DtmfSettings. */ + class DtmfSettings implements IDtmfSettings { + + /** + * Constructs a new DtmfSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings); + + /** DtmfSettings enabled. */ + public enabled: boolean; + + /** DtmfSettings maxDigits. */ + public maxDigits: number; + + /** DtmfSettings finishDigit. */ + public finishDigit: string; + + /** + * Creates a new DtmfSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns DtmfSettings instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings; + + /** + * Encodes the specified DtmfSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.verify|verify} messages. + * @param message DtmfSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DtmfSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.verify|verify} messages. + * @param message DtmfSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DtmfSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DtmfSettings + * @throws {Error} If the payload is not a reader or 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.AdvancedSettings.DtmfSettings; + + /** + * Decodes a DtmfSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DtmfSettings + * @throws {Error} If the payload is not a 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.AdvancedSettings.DtmfSettings; + + /** + * Verifies a DtmfSettings message. + * @param message Plain 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 DtmfSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DtmfSettings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings; + + /** + * Creates a plain object from a DtmfSettings message. Also converts values to other types if specified. + * @param message DtmfSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DtmfSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DtmfSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LoggingSettings. */ + interface ILoggingSettings { + + /** LoggingSettings enableStackdriverLogging */ + enableStackdriverLogging?: (boolean|null); + + /** LoggingSettings enableInteractionLogging */ + enableInteractionLogging?: (boolean|null); + } + + /** Represents a LoggingSettings. */ + class LoggingSettings implements ILoggingSettings { + + /** + * Constructs a new LoggingSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings); + + /** LoggingSettings enableStackdriverLogging. */ + public enableStackdriverLogging: boolean; + + /** LoggingSettings enableInteractionLogging. */ + public enableInteractionLogging: boolean; + + /** + * Creates a new LoggingSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns LoggingSettings instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings; + + /** + * Encodes the specified LoggingSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify|verify} messages. + * @param message LoggingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LoggingSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify|verify} messages. + * @param message LoggingSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LoggingSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LoggingSettings + * @throws {Error} If the payload is not a reader or 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.AdvancedSettings.LoggingSettings; + + /** + * Decodes a LoggingSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LoggingSettings + * @throws {Error} If the payload is not a 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.AdvancedSettings.LoggingSettings; + + /** + * Verifies a LoggingSettings message. + * @param message Plain 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 LoggingSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LoggingSettings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings; + + /** + * Creates a plain object from a LoggingSettings message. Also converts values to other types if specified. + * @param message LoggingSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LoggingSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LoggingSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a CreateVersionRequest. */ - class CreateVersionRequest implements ICreateVersionRequest { + /** Properties of a GcsDestination. */ + interface IGcsDestination { + + /** GcsDestination uri */ + uri?: (string|null); + } + + /** Represents a GcsDestination. */ + class GcsDestination implements IGcsDestination { /** - * Constructs a new CreateVersionRequest. + * Constructs a new GcsDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest); - - /** CreateVersionRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGcsDestination); - /** CreateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** GcsDestination uri. */ + public uri: string; /** - * Creates a new CreateVersionRequest instance using the specified properties. + * Creates a new GcsDestination instance using the specified properties. * @param [properties] Properties to set - * @returns CreateVersionRequest instance + * @returns GcsDestination 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.v3beta1.IGcsDestination): google.cloud.dialogflow.cx.v3beta1.GcsDestination; /** - * 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 GcsDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. + * @param message GcsDestination 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.v3beta1.IGcsDestination, 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 GcsDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. + * @param message GcsDestination 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.v3beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateVersionRequest message from the specified reader or buffer. + * Decodes a GcsDestination 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 GcsDestination * @throws {Error} If the payload is not a reader or 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.v3beta1.GcsDestination; /** - * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a GcsDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateVersionRequest + * @returns GcsDestination * @throws {Error} If the payload is not a 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.v3beta1.GcsDestination; /** - * Verifies a CreateVersionRequest message. + * Verifies a GcsDestination message. * @param message Plain 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 GcsDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateVersionRequest + * @returns GcsDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GcsDestination; /** - * 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 GcsDestination message. Also converts values to other types if specified. + * @param message GcsDestination * @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.v3beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateVersionRequest to JSON. + * Converts this GcsDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateVersionRequest + * Gets the default type url for GcsDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateVersionRequest. */ - interface IUpdateVersionRequest { - - /** UpdateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - - /** UpdateVersionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents an UpdateVersionRequest. */ - class UpdateVersionRequest implements IUpdateVersionRequest { + /** Represents an Agents */ + class Agents extends $protobuf.rpc.Service { /** - * Constructs a new UpdateVersionRequest. - * @param [properties] Properties to set + * 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(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest); - - /** UpdateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** UpdateVersionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * 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; /** - * Creates a new UpdateVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateVersionRequest instance + * Calls ListAgents. + * @param request ListAgentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAgentsResponse */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback): void; /** - * 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 + * Calls ListAgents. + * @param request ListAgentsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): Promise; /** - * 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 + * Calls GetAgent. + * @param request GetAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Agent */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback): void; /** - * 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 + * Calls GetAgent. + * @param request GetAgentRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + public getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest): Promise; /** - * 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 + * Calls CreateAgent. + * @param request CreateAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Agent */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback): void; /** - * Verifies an UpdateVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateAgent. + * @param request CreateAgentRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): Promise; /** - * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateVersionRequest + * Calls UpdateAgent. + * @param request UpdateAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Agent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback): void; /** - * 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 + * Calls UpdateAgent. + * @param request UpdateAgentRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): Promise; /** - * Converts this UpdateVersionRequest to JSON. - * @returns JSON object + * Calls DeleteAgent. + * @param request DeleteAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public toJSON(): { [k: string]: any }; + public deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback): void; /** - * Gets the default type url for UpdateVersionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls DeleteAgent. + * @param request DeleteAgentRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteVersionRequest. */ - interface IDeleteVersionRequest { - - /** DeleteVersionRequest name */ - name?: (string|null); - } - - /** Represents a DeleteVersionRequest. */ - class DeleteVersionRequest implements IDeleteVersionRequest { + public deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest): Promise; /** - * Constructs a new DeleteVersionRequest. - * @param [properties] Properties to set + * Calls ExportAgent. + * @param request ExportAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest); - - /** DeleteVersionRequest name. */ - public name: string; + public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback): void; /** - * Creates a new DeleteVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteVersionRequest instance + * Calls ExportAgent. + * @param request ExportAgentRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest): Promise; /** - * 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 + * Calls RestoreAgent. + * @param request RestoreAgentRequest 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.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback): void; /** - * 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 + * Calls RestoreAgent. + * @param request RestoreAgentRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest): Promise; /** - * 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 DeleteVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ValidateAgent. + * @param request ValidateAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AgentValidationResult */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgentCallback): void; /** - * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ValidateAgent. + * @param request ValidateAgentRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest): Promise; /** - * Verifies a DeleteVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetAgentValidationResult. + * @param request GetAgentValidationResultRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AgentValidationResult */ - public static verify(message: { [k: string]: any }): (string|null); + public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResultCallback): void; /** - * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteVersionRequest + * Calls GetAgentValidationResult. + * @param request GetAgentValidationResultRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest): Promise; /** - * 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 + * Calls GetGenerativeSettings. + * @param request GetGenerativeSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GenerativeSettings */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getGenerativeSettings(request: google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetGenerativeSettingsCallback): void; /** - * Converts this DeleteVersionRequest to JSON. - * @returns JSON object + * Calls GetGenerativeSettings. + * @param request GetGenerativeSettingsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public getGenerativeSettings(request: google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest): Promise; /** - * Gets the default type url for DeleteVersionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls UpdateGenerativeSettings. + * @param request UpdateGenerativeSettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GenerativeSettings */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a LoadVersionRequest. */ - interface ILoadVersionRequest { - - /** LoadVersionRequest name */ - name?: (string|null); + public updateGenerativeSettings(request: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.UpdateGenerativeSettingsCallback): void; - /** LoadVersionRequest allowOverrideAgentResources */ - allowOverrideAgentResources?: (boolean|null); + /** + * Calls UpdateGenerativeSettings. + * @param request UpdateGenerativeSettingsRequest message or plain object + * @returns Promise + */ + public updateGenerativeSettings(request: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest): Promise; } - /** Represents a LoadVersionRequest. */ - class LoadVersionRequest implements ILoadVersionRequest { + namespace Agents { /** - * Constructs a new LoadVersionRequest. - * @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.ILoadVersionRequest); - - /** LoadVersionRequest name. */ - public name: string; - - /** LoadVersionRequest allowOverrideAgentResources. */ - public allowOverrideAgentResources: boolean; + type ListAgentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse) => void; /** - * Creates a new LoadVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LoadVersionRequest instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getAgent}. + * @param error Error, if any + * @param [response] Agent */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + type GetAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|createAgent}. + * @param error Error, if any + * @param [response] Agent */ - public static encode(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|updateAgent}. + * @param error Error, if any + * @param [response] Agent */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; /** - * 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 LoadVersionRequest - * @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.Agents|deleteAgent}. + * @param error Error, if any + * @param [response] Empty */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + type DeleteAgentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LoadVersionRequest - * @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.Agents|exportAgent}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + type ExportAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies a LoadVersionRequest 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.Agents|restoreAgent}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type RestoreAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LoadVersionRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|validateAgent}. + * @param error Error, if any + * @param [response] AgentValidationResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + type ValidateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) => void; /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getAgentValidationResult}. + * @param error Error, if any + * @param [response] AgentValidationResult */ - public static toObject(message: google.cloud.dialogflow.cx.v3.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetAgentValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) => void; /** - * Converts this LoadVersionRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getGenerativeSettings}. + * @param error Error, if any + * @param [response] GenerativeSettings */ - public toJSON(): { [k: string]: any }; + type GetGenerativeSettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings) => void; /** - * Gets the default type url for LoadVersionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|updateGenerativeSettings}. + * @param error Error, if any + * @param [response] GenerativeSettings */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type UpdateGenerativeSettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings) => void; } - /** Properties of a CompareVersionsRequest. */ - interface ICompareVersionsRequest { - - /** CompareVersionsRequest baseVersion */ - baseVersion?: (string|null); - - /** CompareVersionsRequest targetVersion */ - targetVersion?: (string|null); + /** Properties of a SpeechToTextSettings. */ + interface ISpeechToTextSettings { - /** CompareVersionsRequest languageCode */ - languageCode?: (string|null); + /** SpeechToTextSettings enableSpeechAdaptation */ + enableSpeechAdaptation?: (boolean|null); } - /** Represents a CompareVersionsRequest. */ - class CompareVersionsRequest implements ICompareVersionsRequest { + /** Represents a SpeechToTextSettings. */ + class SpeechToTextSettings implements ISpeechToTextSettings { /** - * Constructs a new CompareVersionsRequest. + * Constructs a new SpeechToTextSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest); - - /** CompareVersionsRequest baseVersion. */ - public baseVersion: string; - - /** CompareVersionsRequest targetVersion. */ - public targetVersion: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings); - /** CompareVersionsRequest languageCode. */ - public languageCode: string; + /** SpeechToTextSettings enableSpeechAdaptation. */ + public enableSpeechAdaptation: boolean; /** - * Creates a new CompareVersionsRequest instance using the specified properties. + * Creates a new SpeechToTextSettings instance using the specified properties. * @param [properties] Properties to set - * @returns CompareVersionsRequest instance + * @returns SpeechToTextSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; /** - * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. - * @param message CompareVersionsRequest message or plain object to encode + * 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.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. - * @param message CompareVersionsRequest 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.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompareVersionsRequest 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 CompareVersionsRequest + * @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.CompareVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; /** - * Decodes a CompareVersionsRequest 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 CompareVersionsRequest + * @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.CompareVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; /** - * Verifies a CompareVersionsRequest 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 CompareVersionsRequest 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 CompareVersionsRequest + * @returns SpeechToTextSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; /** - * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. - * @param message CompareVersionsRequest + * 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.CompareVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompareVersionsRequest to JSON. + * Converts this SpeechToTextSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompareVersionsRequest + * Gets the default type url for SpeechToTextSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CompareVersionsResponse. */ - interface ICompareVersionsResponse { + /** Properties of an Agent. */ + interface IAgent { - /** CompareVersionsResponse baseVersionContentJson */ - baseVersionContentJson?: (string|null); + /** Agent name */ + name?: (string|null); - /** CompareVersionsResponse targetVersionContentJson */ - targetVersionContentJson?: (string|null); + /** Agent displayName */ + displayName?: (string|null); - /** CompareVersionsResponse compareTime */ - compareTime?: (google.protobuf.ITimestamp|null); + /** Agent defaultLanguageCode */ + defaultLanguageCode?: (string|null); + + /** Agent supportedLanguageCodes */ + supportedLanguageCodes?: (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); + + /** Agent enableStackdriverLogging */ + enableStackdriverLogging?: (boolean|null); + + /** Agent enableSpellCorrection */ + enableSpellCorrection?: (boolean|null); + + /** Agent locked */ + locked?: (boolean|null); + + /** Agent advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + + /** Agent gitIntegrationSettings */ + gitIntegrationSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings|null); + + /** Agent textToSpeechSettings */ + textToSpeechSettings?: (google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null); + + /** Agent genAppBuilderSettings */ + genAppBuilderSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings|null); } - /** Represents a CompareVersionsResponse. */ - class CompareVersionsResponse implements ICompareVersionsResponse { + /** Represents an Agent. */ + class Agent implements IAgent { /** - * Constructs a new CompareVersionsResponse. + * Constructs a new Agent. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAgent); - /** CompareVersionsResponse baseVersionContentJson. */ - public baseVersionContentJson: string; + /** Agent name. */ + public name: string; - /** CompareVersionsResponse targetVersionContentJson. */ - public targetVersionContentJson: string; + /** Agent displayName. */ + public displayName: string; + + /** Agent defaultLanguageCode. */ + public defaultLanguageCode: string; + + /** Agent supportedLanguageCodes. */ + public supportedLanguageCodes: 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; + + /** Agent securitySettings. */ + public securitySettings: string; + + /** Agent enableStackdriverLogging. */ + public enableStackdriverLogging: boolean; + + /** Agent enableSpellCorrection. */ + public enableSpellCorrection: boolean; + + /** Agent locked. */ + public locked: boolean; + + /** Agent advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + + /** Agent gitIntegrationSettings. */ + public gitIntegrationSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings|null); + + /** Agent textToSpeechSettings. */ + public textToSpeechSettings?: (google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null); + + /** Agent genAppBuilderSettings. */ + public genAppBuilderSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings|null); - /** CompareVersionsResponse compareTime. */ - public compareTime?: (google.protobuf.ITimestamp|null); + /** Agent _genAppBuilderSettings. */ + public _genAppBuilderSettings?: "genAppBuilderSettings"; /** - * Creates a new CompareVersionsResponse instance using the specified properties. + * Creates a new Agent instance using the specified properties. * @param [properties] Properties to set - * @returns CompareVersionsResponse instance + * @returns Agent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAgent): google.cloud.dialogflow.cx.v3beta1.Agent; /** - * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. - * @param message CompareVersionsResponse 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.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. - * @param message CompareVersionsResponse 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.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompareVersionsResponse 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 CompareVersionsResponse + * @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.CompareVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Agent; /** - * Decodes a CompareVersionsResponse 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 CompareVersionsResponse + * @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.CompareVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Agent; /** - * Verifies a CompareVersionsResponse 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 CompareVersionsResponse 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 CompareVersionsResponse + * @returns Agent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent; /** - * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. - * @param message CompareVersionsResponse + * 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.CompareVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompareVersionsResponse to JSON. + * Converts this Agent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompareVersionsResponse + * Gets the default type url for Agent * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Namespace v3beta1. */ - namespace v3beta1 { + namespace Agent { - /** Properties of an AdvancedSettings. */ - interface IAdvancedSettings { + /** Properties of a GitIntegrationSettings. */ + interface IGitIntegrationSettings { - /** AdvancedSettings audioExportGcsDestination */ - audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null); + /** GitIntegrationSettings githubSettings */ + githubSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings|null); + } - /** AdvancedSettings loggingSettings */ - loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); - } + /** Represents a GitIntegrationSettings. */ + class GitIntegrationSettings implements IGitIntegrationSettings { - /** Represents an AdvancedSettings. */ - class AdvancedSettings implements IAdvancedSettings { + /** + * Constructs a new GitIntegrationSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings); - /** - * Constructs a new AdvancedSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings); + /** GitIntegrationSettings githubSettings. */ + public githubSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings|null); - /** AdvancedSettings audioExportGcsDestination. */ - public audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null); + /** GitIntegrationSettings gitSettings. */ + public gitSettings?: "githubSettings"; - /** AdvancedSettings loggingSettings. */ - public loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); + /** + * Creates a new GitIntegrationSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns GitIntegrationSettings instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings): google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings; - /** - * Creates a new AdvancedSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns AdvancedSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings; + /** + * Encodes the specified GitIntegrationSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify|verify} messages. + * @param message GitIntegrationSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdvancedSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. - * @param message AdvancedSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GitIntegrationSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify|verify} messages. + * @param message GitIntegrationSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified AdvancedSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. - * @param message AdvancedSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a GitIntegrationSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GitIntegrationSettings + * @throws {Error} If the payload is not a reader or 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.GitIntegrationSettings; - /** - * Decodes an AdvancedSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AdvancedSettings - * @throws {Error} If the payload is not a reader or 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.AdvancedSettings; + /** + * Decodes a GitIntegrationSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GitIntegrationSettings + * @throws {Error} If the payload is not a 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.GitIntegrationSettings; - /** - * Decodes an AdvancedSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AdvancedSettings - * @throws {Error} If the payload is not a 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.AdvancedSettings; + /** + * Verifies a GitIntegrationSettings message. + * @param message 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 an AdvancedSettings message. - * @param message Plain 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 GitIntegrationSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GitIntegrationSettings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings; - /** - * Creates an AdvancedSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AdvancedSettings - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings; + /** + * Creates a plain object from a GitIntegrationSettings message. Also converts values to other types if specified. + * @param message GitIntegrationSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from an AdvancedSettings message. Also converts values to other types if specified. - * @param message AdvancedSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this GitIntegrationSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this AdvancedSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for GitIntegrationSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for AdvancedSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + namespace GitIntegrationSettings { - namespace AdvancedSettings { + /** Properties of a GithubSettings. */ + interface IGithubSettings { - /** Properties of a LoggingSettings. */ - interface ILoggingSettings { + /** GithubSettings displayName */ + displayName?: (string|null); - /** LoggingSettings enableStackdriverLogging */ - enableStackdriverLogging?: (boolean|null); + /** GithubSettings repositoryUri */ + repositoryUri?: (string|null); - /** LoggingSettings enableInteractionLogging */ - enableInteractionLogging?: (boolean|null); + /** GithubSettings trackingBranch */ + trackingBranch?: (string|null); + + /** GithubSettings accessToken */ + accessToken?: (string|null); + + /** GithubSettings branches */ + branches?: (string[]|null); + } + + /** Represents a GithubSettings. */ + class GithubSettings implements IGithubSettings { + + /** + * Constructs a new GithubSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings); + + /** GithubSettings displayName. */ + public displayName: string; + + /** GithubSettings repositoryUri. */ + public repositoryUri: string; + + /** GithubSettings trackingBranch. */ + public trackingBranch: string; + + /** GithubSettings accessToken. */ + public accessToken: string; + + /** GithubSettings branches. */ + public branches: string[]; + + /** + * Creates a new GithubSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns GithubSettings instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings): google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings; + + /** + * Encodes the specified GithubSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify|verify} messages. + * @param message GithubSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GithubSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify|verify} messages. + * @param message GithubSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GithubSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GithubSettings + * @throws {Error} If the payload is not a reader or 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.GitIntegrationSettings.GithubSettings; + + /** + * Decodes a GithubSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GithubSettings + * @throws {Error} If the payload is not a 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.GitIntegrationSettings.GithubSettings; + + /** + * Verifies a GithubSettings message. + * @param message Plain 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 GithubSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GithubSettings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings; + + /** + * Creates a plain object from a GithubSettings message. Also converts values to other types if specified. + * @param message GithubSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GithubSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GithubSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a LoggingSettings. */ - class LoggingSettings implements ILoggingSettings { + /** Properties of a GenAppBuilderSettings. */ + interface IGenAppBuilderSettings { + + /** GenAppBuilderSettings engine */ + engine?: (string|null); + } + + /** Represents a GenAppBuilderSettings. */ + class GenAppBuilderSettings implements IGenAppBuilderSettings { /** - * Constructs a new LoggingSettings. + * Constructs a new GenAppBuilderSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings); - - /** LoggingSettings enableStackdriverLogging. */ - public enableStackdriverLogging: boolean; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings); - /** LoggingSettings enableInteractionLogging. */ - public enableInteractionLogging: boolean; + /** GenAppBuilderSettings engine. */ + public engine: string; /** - * Creates a new LoggingSettings instance using the specified properties. + * Creates a new GenAppBuilderSettings instance using the specified properties. * @param [properties] Properties to set - * @returns LoggingSettings instance + * @returns GenAppBuilderSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings): google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings; /** - * Encodes the specified LoggingSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify|verify} messages. - * @param message LoggingSettings message or plain object to encode + * Encodes the specified GenAppBuilderSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify|verify} messages. + * @param message GenAppBuilderSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LoggingSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify|verify} messages. - * @param message LoggingSettings message or plain object to encode + * Encodes the specified GenAppBuilderSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify|verify} messages. + * @param message GenAppBuilderSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LoggingSettings message from the specified reader or buffer. + * Decodes a GenAppBuilderSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LoggingSettings + * @returns GenAppBuilderSettings * @throws {Error} If the payload is not a reader or 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.AdvancedSettings.LoggingSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings; /** - * Decodes a LoggingSettings message from the specified reader or buffer, length delimited. + * Decodes a GenAppBuilderSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LoggingSettings + * @returns GenAppBuilderSettings * @throws {Error} If the payload is not a 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.AdvancedSettings.LoggingSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings; /** - * Verifies a LoggingSettings message. + * Verifies a GenAppBuilderSettings message. * @param message Plain 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 LoggingSettings message from a plain object. Also converts values to their respective internal types. + * Creates a GenAppBuilderSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LoggingSettings + * @returns GenAppBuilderSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings; + + /** + * Creates a plain object from a GenAppBuilderSettings message. Also converts values to other types if specified. + * @param message GenAppBuilderSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GenAppBuilderSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GenAppBuilderSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a ListAgentsRequest. */ + interface IListAgentsRequest { + + /** ListAgentsRequest parent */ + parent?: (string|null); + + /** ListAgentsRequest pageSize */ + pageSize?: (number|null); + + /** ListAgentsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListAgentsRequest. */ + class ListAgentsRequest implements IListAgentsRequest { + + /** + * Constructs a new ListAgentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest); + + /** ListAgentsRequest parent. */ + public parent: string; + + /** ListAgentsRequest pageSize. */ + public pageSize: number; + + /** ListAgentsRequest pageToken. */ + public pageToken: string; + + /** + * 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; + + /** + * 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; + + /** + * 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 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 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 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 plain object from a LoggingSettings message. Also converts values to other types if specified. - * @param message LoggingSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this LoggingSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [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 }; - /** - * Gets the default type url for LoggingSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this ListAgentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListAgentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GcsDestination. */ - interface IGcsDestination { + /** Properties of a ListAgentsResponse. */ + interface IListAgentsResponse { - /** GcsDestination uri */ - uri?: (string|null); + /** ListAgentsResponse agents */ + agents?: (google.cloud.dialogflow.cx.v3beta1.IAgent[]|null); + + /** ListAgentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GcsDestination. */ - class GcsDestination implements IGcsDestination { + /** Represents a ListAgentsResponse. */ + class ListAgentsResponse implements IListAgentsResponse { /** - * Constructs a new GcsDestination. + * Constructs a new ListAgentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGcsDestination); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse); - /** GcsDestination uri. */ - public uri: string; + /** ListAgentsResponse agents. */ + public agents: google.cloud.dialogflow.cx.v3beta1.IAgent[]; + + /** ListAgentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GcsDestination instance using the specified properties. + * Creates a new ListAgentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GcsDestination instance + * @returns ListAgentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGcsDestination): google.cloud.dialogflow.cx.v3beta1.GcsDestination; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; /** - * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. - * @param message GcsDestination 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.v3beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. - * @param message GcsDestination 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.v3beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GcsDestination 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 GcsDestination + * @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.v3beta1.GcsDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; /** - * Decodes a GcsDestination 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 GcsDestination + * @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.v3beta1.GcsDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; /** - * Verifies a GcsDestination 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 GcsDestination 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 GcsDestination + * @returns ListAgentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GcsDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; /** - * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. - * @param message GcsDestination + * 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.v3beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GcsDestination to JSON. + * Converts this ListAgentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GcsDestination + * Gets the default type url for ListAgentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents an Agents */ - class Agents extends $protobuf.rpc.Service { + /** Properties of a GetAgentRequest. */ + interface IGetAgentRequest { - /** - * 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); + /** GetAgentRequest name */ + name?: (string|null); + } - /** - * 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; + /** Represents a GetAgentRequest. */ + class GetAgentRequest implements IGetAgentRequest { /** - * Calls ListAgents. - * @param request ListAgentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAgentsResponse + * Constructs a new GetAgentRequest. + * @param [properties] Properties to set */ - public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest); + + /** GetAgentRequest name. */ + public name: string; /** - * Calls ListAgents. - * @param request ListAgentsRequest message or plain object - * @returns Promise + * Creates a new GetAgentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetAgentRequest instance */ - public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; /** - * Calls GetAgent. - * @param request GetAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Agent + * 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 getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetAgent. - * @param request GetAgentRequest message or plain object - * @returns Promise + * 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 getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateAgent. - * @param request CreateAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Agent + * 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 createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; /** - * Calls CreateAgent. - * @param request CreateAgentRequest message or plain object - * @returns Promise + * 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 createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; /** - * Calls UpdateAgent. - * @param request UpdateAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Agent + * Verifies a GetAgentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateAgent. - * @param request UpdateAgentRequest message or plain object - * @returns Promise + * Creates a GetAgentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetAgentRequest */ - public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; /** - * Calls DeleteAgent. - * @param request DeleteAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * 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 deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteAgent. - * @param request DeleteAgentRequest message or plain object - * @returns Promise + * Converts this GetAgentRequest to JSON. + * @returns JSON object */ - public deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls ExportAgent. - * @param request ExportAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for GetAgentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** 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 { /** - * Calls ExportAgent. - * @param request ExportAgentRequest message or plain object - * @returns Promise + * Constructs a new CreateAgentRequest. + * @param [properties] Properties to set */ - public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest); + + /** CreateAgentRequest parent. */ + public parent: string; + + /** CreateAgentRequest agent. */ + public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); /** - * Calls RestoreAgent. - * @param request RestoreAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new CreateAgentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateAgentRequest instance */ - public restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; /** - * Calls RestoreAgent. - * @param request RestoreAgentRequest message or plain object - * @returns Promise + * 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 restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ValidateAgent. - * @param request ValidateAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AgentValidationResult + * 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 validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgentCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ValidateAgent. - * @param request ValidateAgentRequest message or plain object - * @returns 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 */ - public validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; /** - * Calls GetAgentValidationResult. - * @param request GetAgentValidationResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AgentValidationResult + * 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 */ - public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResultCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; /** - * Calls GetAgentValidationResult. - * @param request GetAgentValidationResultRequest message or plain object - * @returns Promise + * Verifies a CreateAgentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetGenerativeSettings. - * @param request GetGenerativeSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GenerativeSettings + * Creates a CreateAgentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateAgentRequest */ - public getGenerativeSettings(request: google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetGenerativeSettingsCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; /** - * Calls GetGenerativeSettings. - * @param request GetGenerativeSettingsRequest message or plain object - * @returns 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 */ - public getGenerativeSettings(request: google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls UpdateGenerativeSettings. - * @param request UpdateGenerativeSettingsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GenerativeSettings + * Converts this CreateAgentRequest to JSON. + * @returns JSON object */ - public updateGenerativeSettings(request: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.UpdateGenerativeSettingsCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls UpdateGenerativeSettings. - * @param request UpdateGenerativeSettingsRequest message or plain object - * @returns Promise + * Gets the default type url for CreateAgentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public updateGenerativeSettings(request: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Agents { + /** Properties of an UpdateAgentRequest. */ + interface IUpdateAgentRequest { + + /** UpdateAgentRequest agent */ + agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + + /** UpdateAgentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateAgentRequest. */ + class UpdateAgentRequest implements IUpdateAgentRequest { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|listAgents}. - * @param error Error, if any - * @param [response] ListAgentsResponse + * Constructs a new UpdateAgentRequest. + * @param [properties] Properties to set */ - type ListAgentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse) => void; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest); + + /** UpdateAgentRequest agent. */ + public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + + /** UpdateAgentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getAgent}. - * @param error Error, if any - * @param [response] Agent + * Creates a new UpdateAgentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateAgentRequest instance */ - type GetAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|createAgent}. - * @param error Error, if any - * @param [response] Agent + * 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 */ - type CreateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, 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 + * 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 */ - type UpdateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|deleteAgent}. - * @param error Error, if any - * @param [response] Empty + * 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 */ - type DeleteAgentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|exportAgent}. - * @param error Error, if any - * @param [response] Operation + * 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 */ - type ExportAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|restoreAgent}. - * @param error Error, if any - * @param [response] Operation + * Verifies an UpdateAgentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type RestoreAgentCallback = (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|validateAgent}. - * @param error Error, if any - * @param [response] AgentValidationResult + * Creates an UpdateAgentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateAgentRequest */ - type ValidateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getAgentValidationResult}. - * @param error Error, if any - * @param [response] AgentValidationResult + * 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 */ - type GetAgentValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getGenerativeSettings}. - * @param error Error, if any - * @param [response] GenerativeSettings + * Converts this UpdateAgentRequest to JSON. + * @returns JSON object */ - type GetGenerativeSettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|updateGenerativeSettings}. - * @param error Error, if any - * @param [response] GenerativeSettings + * Gets the default type url for UpdateAgentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type UpdateGenerativeSettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SpeechToTextSettings. */ - interface ISpeechToTextSettings { + /** Properties of a DeleteAgentRequest. */ + interface IDeleteAgentRequest { - /** SpeechToTextSettings enableSpeechAdaptation */ - enableSpeechAdaptation?: (boolean|null); + /** DeleteAgentRequest name */ + name?: (string|null); } - /** Represents a SpeechToTextSettings. */ - class SpeechToTextSettings implements ISpeechToTextSettings { + /** Represents a DeleteAgentRequest. */ + class DeleteAgentRequest implements IDeleteAgentRequest { /** - * Constructs a new SpeechToTextSettings. + * Constructs a new DeleteAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest); - /** SpeechToTextSettings enableSpeechAdaptation. */ - public enableSpeechAdaptation: boolean; + /** DeleteAgentRequest name. */ + public name: string; /** - * Creates a new SpeechToTextSettings instance using the specified properties. + * Creates a new DeleteAgentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SpeechToTextSettings instance + * @returns DeleteAgentRequest 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.IDeleteAgentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; /** - * 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 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 static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, 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 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 static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SpeechToTextSettings message from the specified reader or buffer. + * 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 SpeechToTextSettings + * @returns DeleteAgentRequest * @throws {Error} If the payload is not a reader or 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.DeleteAgentRequest; /** - * Decodes a SpeechToTextSettings message from the specified reader or buffer, length delimited. + * Decodes a DeleteAgentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SpeechToTextSettings + * @returns DeleteAgentRequest * @throws {Error} If the payload is not a 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.DeleteAgentRequest; /** - * Verifies a SpeechToTextSettings message. + * Verifies a DeleteAgentRequest message. * @param message Plain 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 a DeleteAgentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SpeechToTextSettings + * @returns DeleteAgentRequest */ - 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.DeleteAgentRequest; /** - * Creates a plain object from a SpeechToTextSettings message. Also converts values to other types if specified. - * @param message SpeechToTextSettings + * 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 static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SpeechToTextSettings to JSON. + * Converts this DeleteAgentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SpeechToTextSettings + * Gets the default type url for DeleteAgentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Agent. */ - interface IAgent { + /** Properties of an ExportAgentRequest. */ + interface IExportAgentRequest { - /** Agent name */ + /** ExportAgentRequest name */ name?: (string|null); - /** Agent displayName */ - displayName?: (string|null); - - /** Agent defaultLanguageCode */ - defaultLanguageCode?: (string|null); - - /** Agent supportedLanguageCodes */ - supportedLanguageCodes?: (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); - - /** Agent enableStackdriverLogging */ - enableStackdriverLogging?: (boolean|null); - - /** Agent enableSpellCorrection */ - enableSpellCorrection?: (boolean|null); - - /** Agent locked */ - locked?: (boolean|null); + /** ExportAgentRequest agentUri */ + agentUri?: (string|null); - /** Agent advancedSettings */ - advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + /** ExportAgentRequest dataFormat */ + dataFormat?: (google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat|null); - /** Agent gitIntegrationSettings */ - gitIntegrationSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings|null); + /** ExportAgentRequest environment */ + environment?: (string|null); - /** Agent textToSpeechSettings */ - textToSpeechSettings?: (google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null); + /** ExportAgentRequest gitDestination */ + gitDestination?: (google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination|null); - /** Agent genAppBuilderSettings */ - genAppBuilderSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings|null); + /** ExportAgentRequest includeBigqueryExportSettings */ + includeBigqueryExportSettings?: (boolean|null); } - /** Represents an Agent. */ - class Agent implements IAgent { + /** Represents an ExportAgentRequest. */ + class ExportAgentRequest implements IExportAgentRequest { /** - * Constructs a new Agent. + * Constructs a new ExportAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAgent); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest); - /** Agent name. */ + /** ExportAgentRequest name. */ public name: string; - /** Agent displayName. */ - public displayName: string; - - /** Agent defaultLanguageCode. */ - public defaultLanguageCode: string; - - /** Agent supportedLanguageCodes. */ - public supportedLanguageCodes: 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; - - /** Agent securitySettings. */ - public securitySettings: string; - - /** Agent enableStackdriverLogging. */ - public enableStackdriverLogging: boolean; - - /** Agent enableSpellCorrection. */ - public enableSpellCorrection: boolean; - - /** Agent locked. */ - public locked: boolean; - - /** Agent advancedSettings. */ - public advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + /** ExportAgentRequest agentUri. */ + public agentUri: string; - /** Agent gitIntegrationSettings. */ - public gitIntegrationSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings|null); + /** ExportAgentRequest dataFormat. */ + public dataFormat: (google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat); - /** Agent textToSpeechSettings. */ - public textToSpeechSettings?: (google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null); + /** ExportAgentRequest environment. */ + public environment: string; - /** Agent genAppBuilderSettings. */ - public genAppBuilderSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings|null); + /** ExportAgentRequest gitDestination. */ + public gitDestination?: (google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination|null); - /** Agent _genAppBuilderSettings. */ - public _genAppBuilderSettings?: "genAppBuilderSettings"; + /** ExportAgentRequest includeBigqueryExportSettings. */ + public includeBigqueryExportSettings: boolean; /** - * Creates a new Agent instance using the specified properties. + * Creates a new ExportAgentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Agent instance + * @returns ExportAgentRequest 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.IExportAgentRequest): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; /** - * 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 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 */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, 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 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 */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Agent message from the specified reader or buffer. + * 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 Agent + * @returns ExportAgentRequest * @throws {Error} If the payload is not a reader or 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.ExportAgentRequest; /** - * Decodes an Agent message from the specified reader or buffer, length delimited. + * Decodes an ExportAgentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Agent + * @returns ExportAgentRequest * @throws {Error} If the payload is not a 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.ExportAgentRequest; /** - * Verifies an Agent message. + * Verifies an ExportAgentRequest message. * @param message Plain 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 an ExportAgentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Agent + * @returns ExportAgentRequest */ - 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.ExportAgentRequest; /** - * Creates a plain object from an Agent message. Also converts values to other types if specified. - * @param message Agent + * 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 */ - 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.ExportAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Agent to JSON. + * Converts this ExportAgentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Agent + * Gets the default type url for ExportAgentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Agent { + namespace ExportAgentRequest { - /** Properties of a GitIntegrationSettings. */ - interface IGitIntegrationSettings { + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + BLOB = 1, + JSON_PACKAGE = 4 + } - /** GitIntegrationSettings githubSettings */ - githubSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings|null); + /** Properties of a GitDestination. */ + interface IGitDestination { + + /** GitDestination trackingBranch */ + trackingBranch?: (string|null); + + /** GitDestination commitMessage */ + commitMessage?: (string|null); } - /** Represents a GitIntegrationSettings. */ - class GitIntegrationSettings implements IGitIntegrationSettings { + /** Represents a GitDestination. */ + class GitDestination implements IGitDestination { /** - * Constructs a new GitIntegrationSettings. + * Constructs a new GitDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination); - /** GitIntegrationSettings githubSettings. */ - public githubSettings?: (google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings|null); + /** GitDestination trackingBranch. */ + public trackingBranch: string; - /** GitIntegrationSettings gitSettings. */ - public gitSettings?: "githubSettings"; + /** GitDestination commitMessage. */ + public commitMessage: string; /** - * Creates a new GitIntegrationSettings instance using the specified properties. + * Creates a new GitDestination instance using the specified properties. * @param [properties] Properties to set - * @returns GitIntegrationSettings instance + * @returns GitDestination instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings): google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination; /** - * Encodes the specified GitIntegrationSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify|verify} messages. - * @param message GitIntegrationSettings message or plain object to encode + * Encodes the specified GitDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify|verify} messages. + * @param message GitDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GitIntegrationSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify|verify} messages. - * @param message GitIntegrationSettings message or plain object to encode + * Encodes the specified GitDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify|verify} messages. + * @param message GitDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GitIntegrationSettings message from the specified reader or buffer. + * Decodes a GitDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GitIntegrationSettings + * @returns GitDestination * @throws {Error} If the payload is not a reader or 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.GitIntegrationSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination; /** - * Decodes a GitIntegrationSettings message from the specified reader or buffer, length delimited. + * Decodes a GitDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GitIntegrationSettings + * @returns GitDestination * @throws {Error} If the payload is not a 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.GitIntegrationSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination; /** - * Verifies a GitIntegrationSettings message. + * Verifies a GitDestination message. * @param message Plain 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 GitIntegrationSettings message from a plain object. Also converts values to their respective internal types. + * Creates a GitDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GitIntegrationSettings + * @returns GitDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination; /** - * Creates a plain object from a GitIntegrationSettings message. Also converts values to other types if specified. - * @param message GitIntegrationSettings + * Creates a plain object from a GitDestination message. Also converts values to other types if specified. + * @param message GitDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GitIntegrationSettings to JSON. + * Converts this GitDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GitIntegrationSettings + * Gets the default type url for GitDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace GitIntegrationSettings { + /** Properties of an ExportAgentResponse. */ + interface IExportAgentResponse { - /** Properties of a GithubSettings. */ - interface IGithubSettings { + /** ExportAgentResponse agentUri */ + agentUri?: (string|null); - /** GithubSettings displayName */ - displayName?: (string|null); + /** ExportAgentResponse agentContent */ + agentContent?: (Uint8Array|string|null); - /** GithubSettings repositoryUri */ - repositoryUri?: (string|null); + /** ExportAgentResponse commitSha */ + commitSha?: (string|null); + } - /** GithubSettings trackingBranch */ - trackingBranch?: (string|null); + /** Represents an ExportAgentResponse. */ + class ExportAgentResponse implements IExportAgentResponse { - /** GithubSettings accessToken */ - accessToken?: (string|null); + /** + * Constructs a new ExportAgentResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse); - /** GithubSettings branches */ - branches?: (string[]|null); - } + /** ExportAgentResponse agentUri. */ + public agentUri?: (string|null); - /** Represents a GithubSettings. */ - class GithubSettings implements IGithubSettings { + /** ExportAgentResponse agentContent. */ + public agentContent?: (Uint8Array|string|null); - /** - * Constructs a new GithubSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings); + /** ExportAgentResponse commitSha. */ + public commitSha?: (string|null); - /** GithubSettings displayName. */ - public displayName: string; + /** ExportAgentResponse agent. */ + public agent?: ("agentUri"|"agentContent"|"commitSha"); - /** GithubSettings repositoryUri. */ - public repositoryUri: string; + /** + * Creates a new ExportAgentResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportAgentResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; - /** GithubSettings trackingBranch. */ - public trackingBranch: string; + /** + * 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.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** GithubSettings accessToken. */ - public accessToken: string; + /** + * 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.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** GithubSettings branches. */ - public branches: string[]; + /** + * 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 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.ExportAgentResponse; - /** - * Creates a new GithubSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns GithubSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings): google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings; + /** + * Decodes an ExportAgentResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ExportAgentResponse; - /** - * Encodes the specified GithubSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify|verify} messages. - * @param message GithubSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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); - /** - * Encodes the specified GithubSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify|verify} messages. - * @param message GithubSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an ExportAgentResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportAgentResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; - /** - * Decodes a GithubSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GithubSettings - * @throws {Error} If the payload is not a reader or 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.GitIntegrationSettings.GithubSettings; + /** + * 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.ExportAgentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportAgentResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExportAgentResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RestoreAgentRequest. */ + interface IRestoreAgentRequest { + + /** RestoreAgentRequest name */ + name?: (string|null); + + /** RestoreAgentRequest agentUri */ + agentUri?: (string|null); + + /** RestoreAgentRequest agentContent */ + agentContent?: (Uint8Array|string|null); + + /** RestoreAgentRequest gitSource */ + gitSource?: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource|null); + + /** RestoreAgentRequest restoreOption */ + restoreOption?: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|null); + } + + /** Represents a RestoreAgentRequest. */ + class RestoreAgentRequest implements IRestoreAgentRequest { + + /** + * Constructs a new RestoreAgentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest); + + /** RestoreAgentRequest name. */ + public name: string; + + /** RestoreAgentRequest agentUri. */ + public agentUri?: (string|null); + + /** RestoreAgentRequest agentContent. */ + public agentContent?: (Uint8Array|string|null); + + /** RestoreAgentRequest gitSource. */ + public gitSource?: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource|null); + + /** RestoreAgentRequest restoreOption. */ + public restoreOption: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption); + + /** RestoreAgentRequest agent. */ + public agent?: ("agentUri"|"agentContent"|"gitSource"); + + /** + * Creates a new RestoreAgentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RestoreAgentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; + + /** + * 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.IRestoreAgentRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.RestoreAgentRequest; - /** - * Decodes a GithubSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GithubSettings - * @throws {Error} If the payload is not a 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.GitIntegrationSettings.GithubSettings; + /** + * Decodes a RestoreAgentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.RestoreAgentRequest; - /** - * Verifies a GithubSettings message. - * @param message 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 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 a GithubSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GithubSettings - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings; + /** + * Creates a RestoreAgentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RestoreAgentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; - /** - * Creates a plain object from a GithubSettings message. Also converts values to other types if specified. - * @param message GithubSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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.RestoreAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this GithubSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this RestoreAgentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for GithubSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Gets the default type url for RestoreAgentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a GenAppBuilderSettings. */ - interface IGenAppBuilderSettings { + namespace RestoreAgentRequest { - /** GenAppBuilderSettings engine */ - engine?: (string|null); + /** Properties of a GitSource. */ + interface IGitSource { + + /** GitSource trackingBranch */ + trackingBranch?: (string|null); } - /** Represents a GenAppBuilderSettings. */ - class GenAppBuilderSettings implements IGenAppBuilderSettings { + /** Represents a GitSource. */ + class GitSource implements IGitSource { /** - * Constructs a new GenAppBuilderSettings. + * Constructs a new GitSource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource); - /** GenAppBuilderSettings engine. */ - public engine: string; + /** GitSource trackingBranch. */ + public trackingBranch: string; /** - * Creates a new GenAppBuilderSettings instance using the specified properties. + * Creates a new GitSource instance using the specified properties. * @param [properties] Properties to set - * @returns GenAppBuilderSettings instance + * @returns GitSource instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings): google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource; /** - * Encodes the specified GenAppBuilderSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify|verify} messages. - * @param message GenAppBuilderSettings message or plain object to encode + * Encodes the specified GitSource message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify|verify} messages. + * @param message GitSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenAppBuilderSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify|verify} messages. - * @param message GenAppBuilderSettings message or plain object to encode + * Encodes the specified GitSource message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify|verify} messages. + * @param message GitSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenAppBuilderSettings message from the specified reader or buffer. + * Decodes a GitSource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenAppBuilderSettings + * @returns GitSource * @throws {Error} If the payload is not a reader or 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.GenAppBuilderSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource; /** - * Decodes a GenAppBuilderSettings message from the specified reader or buffer, length delimited. + * Decodes a GitSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenAppBuilderSettings + * @returns GitSource * @throws {Error} If the payload is not a 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.GenAppBuilderSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource; /** - * Verifies a GenAppBuilderSettings message. + * Verifies a GitSource message. * @param message Plain 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 GenAppBuilderSettings message from a plain object. Also converts values to their respective internal types. + * Creates a GitSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenAppBuilderSettings + * @returns GitSource */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource; /** - * Creates a plain object from a GenAppBuilderSettings message. Also converts values to other types if specified. - * @param message GenAppBuilderSettings + * Creates a plain object from a GitSource message. Also converts values to other types if specified. + * @param message GitSource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenAppBuilderSettings to JSON. + * Converts this GitSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GenAppBuilderSettings + * Gets the default type url for GitSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Properties of a ListAgentsRequest. */ - interface IListAgentsRequest { + /** RestoreOption enum. */ + enum RestoreOption { + RESTORE_OPTION_UNSPECIFIED = 0, + KEEP = 1, + FALLBACK = 2 + } + } - /** ListAgentsRequest parent */ - parent?: (string|null); + /** Properties of a ValidateAgentRequest. */ + interface IValidateAgentRequest { - /** ListAgentsRequest pageSize */ - pageSize?: (number|null); + /** ValidateAgentRequest name */ + name?: (string|null); - /** ListAgentsRequest pageToken */ - pageToken?: (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); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest); - /** ListAgentsRequest parent. */ - public parent: string; + /** ValidateAgentRequest name. */ + public name: string; - /** ListAgentsRequest pageSize. */ - public pageSize: number; + /** ValidateAgentRequest languageCode. */ + public languageCode: string; - /** ListAgentsRequest pageToken. */ - public pageToken: string; + /** + * Creates a new ValidateAgentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateAgentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; /** - * Creates a new ListAgentsRequest instance using the specified properties. + * 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.IValidateAgentRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.ValidateAgentRequest; + + /** + * Decodes a ValidateAgentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ValidateAgentRequest; + + /** + * 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 ValidateAgentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateAgentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest; + + /** + * 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.ValidateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ValidateAgentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ValidateAgentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetAgentValidationResultRequest. */ + interface IGetAgentValidationResultRequest { + + /** GetAgentValidationResultRequest name */ + name?: (string|null); + + /** GetAgentValidationResultRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a GetAgentValidationResultRequest. */ + class GetAgentValidationResultRequest implements IGetAgentValidationResultRequest { + + /** + * Constructs a new GetAgentValidationResultRequest. * @param [properties] Properties to set - * @returns ListAgentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest); + + /** GetAgentValidationResultRequest name. */ + public name: string; + + /** GetAgentValidationResultRequest languageCode. */ + public languageCode: string; /** - * 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 + * Creates a new GetAgentValidationResultRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetAgentValidationResultRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; + + /** + * 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.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, 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 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.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAgentsRequest 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 ListAgentsRequest + * @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.ListAgentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; /** - * Decodes a ListAgentsRequest 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 ListAgentsRequest + * @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.ListAgentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; /** - * Verifies a ListAgentsRequest 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 ListAgentsRequest 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 ListAgentsRequest + * @returns GetAgentValidationResultRequest */ - 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.GetAgentValidationResultRequest; /** - * 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 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.ListAgentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAgentsRequest to JSON. + * Converts this GetAgentValidationResultRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListAgentsRequest + * Gets the default type url for GetAgentValidationResultRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListAgentsResponse. */ - interface IListAgentsResponse { + /** Properties of an AgentValidationResult. */ + interface IAgentValidationResult { - /** ListAgentsResponse agents */ - agents?: (google.cloud.dialogflow.cx.v3beta1.IAgent[]|null); + /** AgentValidationResult name */ + name?: (string|null); - /** ListAgentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** AgentValidationResult flowValidationResults */ + flowValidationResults?: (google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult[]|null); } - /** Represents a ListAgentsResponse. */ - class ListAgentsResponse implements IListAgentsResponse { + /** Represents an AgentValidationResult. */ + class AgentValidationResult implements IAgentValidationResult { /** - * Constructs a new ListAgentsResponse. + * Constructs a new AgentValidationResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult); - /** ListAgentsResponse agents. */ - public agents: google.cloud.dialogflow.cx.v3beta1.IAgent[]; + /** AgentValidationResult name. */ + public name: string; - /** ListAgentsResponse nextPageToken. */ - public nextPageToken: string; + /** AgentValidationResult flowValidationResults. */ + public flowValidationResults: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult[]; /** - * Creates a new ListAgentsResponse instance using the specified properties. + * Creates a new AgentValidationResult instance using the specified properties. * @param [properties] Properties to set - * @returns ListAgentsResponse instance + * @returns AgentValidationResult 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.IAgentValidationResult): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; /** - * 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 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.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult, 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 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.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAgentsResponse 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 ListAgentsResponse + * @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.ListAgentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; /** - * Decodes a ListAgentsResponse 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 ListAgentsResponse + * @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.ListAgentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.AgentValidationResult; /** - * Verifies a ListAgentsResponse 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 ListAgentsResponse 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 ListAgentsResponse + * @returns AgentValidationResult */ - 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.AgentValidationResult; /** - * Creates a plain object from a ListAgentsResponse message. Also converts values to other types if specified. - * @param message ListAgentsResponse + * 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.ListAgentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AgentValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAgentsResponse to JSON. + * Converts this AgentValidationResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListAgentsResponse + * Gets the default type url for AgentValidationResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetAgentRequest. */ - interface IGetAgentRequest { + /** Properties of a GetGenerativeSettingsRequest. */ + interface IGetGenerativeSettingsRequest { - /** GetAgentRequest name */ + /** GetGenerativeSettingsRequest name */ name?: (string|null); + + /** GetGenerativeSettingsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a GetAgentRequest. */ - class GetAgentRequest implements IGetAgentRequest { + /** Represents a GetGenerativeSettingsRequest. */ + class GetGenerativeSettingsRequest implements IGetGenerativeSettingsRequest { /** - * Constructs a new GetAgentRequest. + * Constructs a new GetGenerativeSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest); - /** GetAgentRequest name. */ + /** GetGenerativeSettingsRequest name. */ public name: string; + /** GetGenerativeSettingsRequest languageCode. */ + public languageCode: string; + /** - * Creates a new GetAgentRequest instance using the specified properties. + * Creates a new GetGenerativeSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetAgentRequest instance + * @returns GetGenerativeSettingsRequest 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.IGetGenerativeSettingsRequest): google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest; /** - * 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 GetGenerativeSettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest.verify|verify} messages. + * @param message GetGenerativeSettingsRequest 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.IGetGenerativeSettingsRequest, 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 GetGenerativeSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest.verify|verify} messages. + * @param message GetGenerativeSettingsRequest 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.IGetGenerativeSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAgentRequest message from the specified reader or buffer. + * Decodes a GetGenerativeSettingsRequest 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 GetGenerativeSettingsRequest * @throws {Error} If the payload is not a reader or 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.GetGenerativeSettingsRequest; /** - * Decodes a GetAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGenerativeSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAgentRequest + * @returns GetGenerativeSettingsRequest * @throws {Error} If the payload is not a 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.GetGenerativeSettingsRequest; /** - * Verifies a GetAgentRequest message. + * Verifies a GetGenerativeSettingsRequest message. * @param message Plain 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 a GetGenerativeSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAgentRequest + * @returns GetGenerativeSettingsRequest */ - 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.GetGenerativeSettingsRequest; /** - * Creates a plain object from a GetAgentRequest message. Also converts values to other types if specified. - * @param message GetAgentRequest + * Creates a plain object from a GetGenerativeSettingsRequest message. Also converts values to other types if specified. + * @param message GetGenerativeSettingsRequest * @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.GetGenerativeSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAgentRequest to JSON. + * Converts this GetGenerativeSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetAgentRequest + * Gets the default type url for GetGenerativeSettingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateAgentRequest. */ - interface ICreateAgentRequest { + /** Properties of an UpdateGenerativeSettingsRequest. */ + interface IUpdateGenerativeSettingsRequest { - /** CreateAgentRequest parent */ - parent?: (string|null); + /** UpdateGenerativeSettingsRequest generativeSettings */ + generativeSettings?: (google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings|null); - /** CreateAgentRequest agent */ - agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + /** UpdateGenerativeSettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CreateAgentRequest. */ - class CreateAgentRequest implements ICreateAgentRequest { + /** Represents an UpdateGenerativeSettingsRequest. */ + class UpdateGenerativeSettingsRequest implements IUpdateGenerativeSettingsRequest { /** - * Constructs a new CreateAgentRequest. + * Constructs a new UpdateGenerativeSettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest); - /** CreateAgentRequest parent. */ - public parent: string; + /** UpdateGenerativeSettingsRequest generativeSettings. */ + public generativeSettings?: (google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings|null); - /** CreateAgentRequest agent. */ - public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + /** UpdateGenerativeSettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CreateAgentRequest instance using the specified properties. + * Creates a new UpdateGenerativeSettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateAgentRequest instance + * @returns UpdateGenerativeSettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest): google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest; /** - * 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 + * Encodes the specified UpdateGenerativeSettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.verify|verify} messages. + * @param message UpdateGenerativeSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified UpdateGenerativeSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.verify|verify} messages. + * @param message UpdateGenerativeSettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateAgentRequest message from the specified reader or buffer. + * Decodes an UpdateGenerativeSettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateAgentRequest + * @returns UpdateGenerativeSettingsRequest * @throws {Error} If the payload is not a reader or 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.CreateAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest; /** - * Decodes a CreateAgentRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateGenerativeSettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateAgentRequest + * @returns UpdateGenerativeSettingsRequest * @throws {Error} If the payload is not a 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.CreateAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest; /** - * Verifies a CreateAgentRequest message. + * Verifies an UpdateGenerativeSettingsRequest message. * @param message Plain 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 CreateAgentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGenerativeSettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateAgentRequest + * @returns UpdateGenerativeSettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest; /** - * Creates a plain object from a CreateAgentRequest message. Also converts values to other types if specified. - * @param message CreateAgentRequest + * Creates a plain object from an UpdateGenerativeSettingsRequest message. Also converts values to other types if specified. + * @param message UpdateGenerativeSettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateAgentRequest to JSON. + * Converts this UpdateGenerativeSettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateAgentRequest + * Gets the default type url for UpdateGenerativeSettingsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateAgentRequest. */ - interface IUpdateAgentRequest { + /** AudioEncoding enum. */ + enum AudioEncoding { + AUDIO_ENCODING_UNSPECIFIED = 0, + AUDIO_ENCODING_LINEAR_16 = 1, + AUDIO_ENCODING_FLAC = 2, + AUDIO_ENCODING_MULAW = 3, + AUDIO_ENCODING_AMR = 4, + AUDIO_ENCODING_AMR_WB = 5, + AUDIO_ENCODING_OGG_OPUS = 6, + AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 + } - /** UpdateAgentRequest agent */ - agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + /** SpeechModelVariant enum. */ + enum SpeechModelVariant { + SPEECH_MODEL_VARIANT_UNSPECIFIED = 0, + USE_BEST_AVAILABLE = 1, + USE_STANDARD = 2, + USE_ENHANCED = 3 + } - /** UpdateAgentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a SpeechWordInfo. */ + interface ISpeechWordInfo { + + /** SpeechWordInfo word */ + word?: (string|null); + + /** SpeechWordInfo startOffset */ + startOffset?: (google.protobuf.IDuration|null); + + /** SpeechWordInfo endOffset */ + endOffset?: (google.protobuf.IDuration|null); + + /** SpeechWordInfo confidence */ + confidence?: (number|null); } - /** Represents an UpdateAgentRequest. */ - class UpdateAgentRequest implements IUpdateAgentRequest { + /** Represents a SpeechWordInfo. */ + class SpeechWordInfo implements ISpeechWordInfo { /** - * Constructs a new UpdateAgentRequest. + * Constructs a new SpeechWordInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo); - /** UpdateAgentRequest agent. */ - public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + /** SpeechWordInfo word. */ + public word: string; - /** UpdateAgentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** SpeechWordInfo startOffset. */ + public startOffset?: (google.protobuf.IDuration|null); + + /** SpeechWordInfo endOffset. */ + public endOffset?: (google.protobuf.IDuration|null); + + /** SpeechWordInfo confidence. */ + public confidence: number; /** - * Creates a new UpdateAgentRequest instance using the specified properties. + * Creates a new SpeechWordInfo instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateAgentRequest instance + * @returns SpeechWordInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * 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 + * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * @param message SpeechWordInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * @param message SpeechWordInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateAgentRequest message from the specified reader or buffer. + * Decodes a SpeechWordInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateAgentRequest + * @returns SpeechWordInfo * @throws {Error} If the payload is not a reader or 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.UpdateAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Decodes an UpdateAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateAgentRequest + * @returns SpeechWordInfo * @throws {Error} If the payload is not a 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.UpdateAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Verifies an UpdateAgentRequest message. + * Verifies a SpeechWordInfo message. * @param message Plain 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 UpdateAgentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateAgentRequest + * @returns SpeechWordInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Creates a plain object from an UpdateAgentRequest message. Also converts values to other types if specified. - * @param message UpdateAgentRequest + * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. + * @param message SpeechWordInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateAgentRequest to JSON. + * Converts this SpeechWordInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateAgentRequest + * Gets the default type url for SpeechWordInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteAgentRequest. */ - interface IDeleteAgentRequest { + /** Properties of an InputAudioConfig. */ + interface IInputAudioConfig { - /** DeleteAgentRequest name */ - name?: (string|null); + /** InputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null); + + /** InputAudioConfig sampleRateHertz */ + sampleRateHertz?: (number|null); + + /** InputAudioConfig enableWordInfo */ + enableWordInfo?: (boolean|null); + + /** InputAudioConfig phraseHints */ + phraseHints?: (string[]|null); + + /** InputAudioConfig model */ + model?: (string|null); + + /** InputAudioConfig modelVariant */ + modelVariant?: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null); + + /** InputAudioConfig singleUtterance */ + singleUtterance?: (boolean|null); } - /** Represents a DeleteAgentRequest. */ - class DeleteAgentRequest implements IDeleteAgentRequest { + /** Represents an InputAudioConfig. */ + class InputAudioConfig implements IInputAudioConfig { /** - * Constructs a new DeleteAgentRequest. + * Constructs a new InputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig); - /** DeleteAgentRequest name. */ - public name: string; + /** InputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding); + + /** InputAudioConfig sampleRateHertz. */ + public sampleRateHertz: number; + + /** InputAudioConfig enableWordInfo. */ + public enableWordInfo: boolean; + + /** InputAudioConfig phraseHints. */ + public phraseHints: string[]; + + /** InputAudioConfig model. */ + public model: string; + + /** InputAudioConfig modelVariant. */ + public modelVariant: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant); + + /** InputAudioConfig singleUtterance. */ + public singleUtterance: boolean; /** - * Creates a new DeleteAgentRequest instance using the specified properties. + * Creates a new InputAudioConfig instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteAgentRequest instance + * @returns InputAudioConfig 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.IInputAudioConfig): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; /** - * 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 InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * @param message InputAudioConfig 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.IInputAudioConfig, 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 InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * @param message InputAudioConfig 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.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteAgentRequest message from the specified reader or buffer. + * Decodes an InputAudioConfig 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 InputAudioConfig * @throws {Error} If the payload is not a reader or 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.InputAudioConfig; /** - * Decodes a DeleteAgentRequest message from the specified reader or buffer, length delimited. + * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteAgentRequest + * @returns InputAudioConfig * @throws {Error} If the payload is not a 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.InputAudioConfig; /** - * Verifies a DeleteAgentRequest message. + * Verifies an InputAudioConfig message. * @param message Plain 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 an InputAudioConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteAgentRequest + * @returns InputAudioConfig */ - 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.InputAudioConfig; /** - * Creates a plain object from a DeleteAgentRequest message. Also converts values to other types if specified. - * @param message DeleteAgentRequest + * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. + * @param message InputAudioConfig * @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.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteAgentRequest to JSON. + * Converts this InputAudioConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteAgentRequest + * Gets the default type url for InputAudioConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportAgentRequest. */ - interface IExportAgentRequest { - - /** ExportAgentRequest name */ - name?: (string|null); - - /** ExportAgentRequest agentUri */ - agentUri?: (string|null); - - /** ExportAgentRequest dataFormat */ - dataFormat?: (google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat|null); + /** SsmlVoiceGender enum. */ + enum SsmlVoiceGender { + SSML_VOICE_GENDER_UNSPECIFIED = 0, + SSML_VOICE_GENDER_MALE = 1, + SSML_VOICE_GENDER_FEMALE = 2, + SSML_VOICE_GENDER_NEUTRAL = 3 + } - /** ExportAgentRequest environment */ - environment?: (string|null); + /** Properties of a VoiceSelectionParams. */ + interface IVoiceSelectionParams { - /** ExportAgentRequest gitDestination */ - gitDestination?: (google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination|null); + /** VoiceSelectionParams name */ + name?: (string|null); - /** ExportAgentRequest includeBigqueryExportSettings */ - includeBigqueryExportSettings?: (boolean|null); + /** VoiceSelectionParams ssmlGender */ + ssmlGender?: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null); } - /** Represents an ExportAgentRequest. */ - class ExportAgentRequest implements IExportAgentRequest { + /** Represents a VoiceSelectionParams. */ + class VoiceSelectionParams implements IVoiceSelectionParams { /** - * Constructs a new ExportAgentRequest. + * Constructs a new VoiceSelectionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams); - /** ExportAgentRequest name. */ + /** VoiceSelectionParams name. */ public name: string; - /** ExportAgentRequest agentUri. */ - public agentUri: string; - - /** ExportAgentRequest dataFormat. */ - public dataFormat: (google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat); - - /** ExportAgentRequest environment. */ - public environment: string; - - /** ExportAgentRequest gitDestination. */ - public gitDestination?: (google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination|null); - - /** ExportAgentRequest includeBigqueryExportSettings. */ - public includeBigqueryExportSettings: boolean; + /** VoiceSelectionParams ssmlGender. */ + public ssmlGender: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender); /** - * Creates a new ExportAgentRequest instance using the specified properties. + * Creates a new VoiceSelectionParams instance using the specified properties. * @param [properties] Properties to set - * @returns ExportAgentRequest instance + * @returns VoiceSelectionParams 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.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; /** - * 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 VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * @param message VoiceSelectionParams 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.IVoiceSelectionParams, 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 VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * @param message VoiceSelectionParams 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.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportAgentRequest message from the specified reader or buffer. + * Decodes a VoiceSelectionParams 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 VoiceSelectionParams * @throws {Error} If the payload is not a reader or 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.VoiceSelectionParams; /** - * Decodes an ExportAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportAgentRequest + * @returns VoiceSelectionParams * @throws {Error} If the payload is not a 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.VoiceSelectionParams; /** - * Verifies an ExportAgentRequest message. + * Verifies a VoiceSelectionParams message. * @param message Plain 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 VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportAgentRequest + * @returns VoiceSelectionParams */ - 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.VoiceSelectionParams; /** - * 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 VoiceSelectionParams message. Also converts values to other types if specified. + * @param message VoiceSelectionParams * @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.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportAgentRequest to JSON. + * Converts this VoiceSelectionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportAgentRequest + * Gets the default type url for VoiceSelectionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ExportAgentRequest { - - /** DataFormat enum. */ - enum DataFormat { - DATA_FORMAT_UNSPECIFIED = 0, - BLOB = 1, - JSON_PACKAGE = 4 - } - - /** Properties of a GitDestination. */ - interface IGitDestination { - - /** GitDestination trackingBranch */ - trackingBranch?: (string|null); - - /** GitDestination commitMessage */ - commitMessage?: (string|null); - } - - /** Represents a GitDestination. */ - class GitDestination implements IGitDestination { - - /** - * Constructs a new GitDestination. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination); - - /** GitDestination trackingBranch. */ - public trackingBranch: string; - - /** GitDestination commitMessage. */ - public commitMessage: string; - - /** - * Creates a new GitDestination instance using the specified properties. - * @param [properties] Properties to set - * @returns GitDestination instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination; - - /** - * Encodes the specified GitDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify|verify} messages. - * @param message GitDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GitDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify|verify} messages. - * @param message GitDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GitDestination message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GitDestination - * @throws {Error} If the payload is not a reader or 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.GitDestination; - - /** - * Decodes a GitDestination message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GitDestination - * @throws {Error} If the payload is not a 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.GitDestination; - - /** - * Verifies a GitDestination message. - * @param message Plain 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 GitDestination message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GitDestination - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination; - - /** - * Creates a plain object from a GitDestination message. Also converts values to other types if specified. - * @param message GitDestination - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GitDestination to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a SynthesizeSpeechConfig. */ + interface ISynthesizeSpeechConfig { - /** - * Gets the default type url for GitDestination - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** SynthesizeSpeechConfig speakingRate */ + speakingRate?: (number|null); - /** Properties of an ExportAgentResponse. */ - interface IExportAgentResponse { + /** SynthesizeSpeechConfig pitch */ + pitch?: (number|null); - /** ExportAgentResponse agentUri */ - agentUri?: (string|null); + /** SynthesizeSpeechConfig volumeGainDb */ + volumeGainDb?: (number|null); - /** ExportAgentResponse agentContent */ - agentContent?: (Uint8Array|string|null); + /** SynthesizeSpeechConfig effectsProfileId */ + effectsProfileId?: (string[]|null); - /** ExportAgentResponse commitSha */ - commitSha?: (string|null); + /** SynthesizeSpeechConfig voice */ + voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); } - /** Represents an ExportAgentResponse. */ - class ExportAgentResponse implements IExportAgentResponse { + /** Represents a SynthesizeSpeechConfig. */ + class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { /** - * Constructs a new ExportAgentResponse. + * Constructs a new SynthesizeSpeechConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig); - /** ExportAgentResponse agentUri. */ - public agentUri?: (string|null); + /** SynthesizeSpeechConfig speakingRate. */ + public speakingRate: number; + + /** SynthesizeSpeechConfig pitch. */ + public pitch: number; - /** ExportAgentResponse agentContent. */ - public agentContent?: (Uint8Array|string|null); + /** SynthesizeSpeechConfig volumeGainDb. */ + public volumeGainDb: number; - /** ExportAgentResponse commitSha. */ - public commitSha?: (string|null); + /** SynthesizeSpeechConfig effectsProfileId. */ + public effectsProfileId: string[]; - /** ExportAgentResponse agent. */ - public agent?: ("agentUri"|"agentContent"|"commitSha"); + /** SynthesizeSpeechConfig voice. */ + public voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); /** - * Creates a new ExportAgentResponse instance using the specified properties. + * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ExportAgentResponse instance + * @returns SynthesizeSpeechConfig 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.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; /** - * 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 SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * @param message SynthesizeSpeechConfig 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.ISynthesizeSpeechConfig, 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 SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * @param message SynthesizeSpeechConfig 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.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportAgentResponse message from the specified reader or buffer. + * Decodes a SynthesizeSpeechConfig 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 SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or 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.SynthesizeSpeechConfig; /** - * Decodes an ExportAgentResponse message from the specified reader or buffer, length delimited. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportAgentResponse + * @returns SynthesizeSpeechConfig * @throws {Error} If the payload is not a 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.SynthesizeSpeechConfig; /** - * Verifies an ExportAgentResponse message. + * Verifies a SynthesizeSpeechConfig message. * @param message Plain 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 SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportAgentResponse + * @returns SynthesizeSpeechConfig */ - 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.SynthesizeSpeechConfig; /** - * 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 SynthesizeSpeechConfig message. Also converts values to other types if specified. + * @param message SynthesizeSpeechConfig * @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.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportAgentResponse to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportAgentResponse + * Gets the default type url for SynthesizeSpeechConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RestoreAgentRequest. */ - interface IRestoreAgentRequest { - - /** RestoreAgentRequest name */ - name?: (string|null); + /** OutputAudioEncoding enum. */ + enum OutputAudioEncoding { + OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0, + OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1, + OUTPUT_AUDIO_ENCODING_MP3 = 2, + OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4, + OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3, + OUTPUT_AUDIO_ENCODING_MULAW = 5 + } - /** RestoreAgentRequest agentUri */ - agentUri?: (string|null); + /** Properties of an OutputAudioConfig. */ + interface IOutputAudioConfig { - /** RestoreAgentRequest agentContent */ - agentContent?: (Uint8Array|string|null); + /** OutputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null); - /** RestoreAgentRequest gitSource */ - gitSource?: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource|null); + /** OutputAudioConfig sampleRateHertz */ + sampleRateHertz?: (number|null); - /** RestoreAgentRequest restoreOption */ - restoreOption?: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|null); + /** OutputAudioConfig synthesizeSpeechConfig */ + synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); } - /** Represents a RestoreAgentRequest. */ - class RestoreAgentRequest implements IRestoreAgentRequest { + /** Represents an OutputAudioConfig. */ + class OutputAudioConfig implements IOutputAudioConfig { /** - * Constructs a new RestoreAgentRequest. + * Constructs a new OutputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest); - - /** RestoreAgentRequest name. */ - public name: string; - - /** RestoreAgentRequest agentUri. */ - public agentUri?: (string|null); - - /** RestoreAgentRequest agentContent. */ - public agentContent?: (Uint8Array|string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig); - /** RestoreAgentRequest gitSource. */ - public gitSource?: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource|null); + /** OutputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding); - /** RestoreAgentRequest restoreOption. */ - public restoreOption: (google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption); + /** OutputAudioConfig sampleRateHertz. */ + public sampleRateHertz: number; - /** RestoreAgentRequest agent. */ - public agent?: ("agentUri"|"agentContent"|"gitSource"); + /** OutputAudioConfig synthesizeSpeechConfig. */ + public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); /** - * Creates a new RestoreAgentRequest instance using the specified properties. + * Creates a new OutputAudioConfig instance using the specified properties. * @param [properties] Properties to set - * @returns RestoreAgentRequest instance + * @returns OutputAudioConfig 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.IOutputAudioConfig): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; /** - * 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 OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * @param message OutputAudioConfig 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.IOutputAudioConfig, 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 OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * @param message OutputAudioConfig 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.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RestoreAgentRequest message from the specified reader or buffer. + * Decodes an OutputAudioConfig 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 OutputAudioConfig * @throws {Error} If the payload is not a reader or 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.OutputAudioConfig; /** - * Decodes a RestoreAgentRequest message from the specified reader or buffer, length delimited. + * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RestoreAgentRequest + * @returns OutputAudioConfig * @throws {Error} If the payload is not a 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.OutputAudioConfig; /** - * Verifies a RestoreAgentRequest message. + * Verifies an OutputAudioConfig message. * @param message Plain 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 an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RestoreAgentRequest + * @returns OutputAudioConfig */ - 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.OutputAudioConfig; /** - * Creates a plain object from a RestoreAgentRequest message. Also converts values to other types if specified. - * @param message RestoreAgentRequest + * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. + * @param message OutputAudioConfig * @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.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RestoreAgentRequest to JSON. + * Converts this OutputAudioConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RestoreAgentRequest + * Gets the default type url for OutputAudioConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace RestoreAgentRequest { - - /** Properties of a GitSource. */ - interface IGitSource { - - /** GitSource trackingBranch */ - trackingBranch?: (string|null); - } - - /** Represents a GitSource. */ - class GitSource implements IGitSource { - - /** - * Constructs a new GitSource. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource); - - /** GitSource trackingBranch. */ - public trackingBranch: string; - - /** - * Creates a new GitSource instance using the specified properties. - * @param [properties] Properties to set - * @returns GitSource instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource; - - /** - * Encodes the specified GitSource message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify|verify} messages. - * @param message GitSource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GitSource message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify|verify} messages. - * @param message GitSource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GitSource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GitSource - * @throws {Error} If the payload is not a reader or 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.GitSource; - - /** - * Decodes a GitSource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GitSource - * @throws {Error} If the payload is not a 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.GitSource; - - /** - * Verifies a GitSource message. - * @param message Plain 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 GitSource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GitSource - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource; - - /** - * Creates a plain object from a GitSource message. Also converts values to other types if specified. - * @param message GitSource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GitSource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GitSource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** RestoreOption enum. */ - enum RestoreOption { - RESTORE_OPTION_UNSPECIFIED = 0, - KEEP = 1, - FALLBACK = 2 - } - } - - /** Properties of a ValidateAgentRequest. */ - interface IValidateAgentRequest { - - /** ValidateAgentRequest name */ - name?: (string|null); + /** Properties of a TextToSpeechSettings. */ + interface ITextToSpeechSettings { - /** ValidateAgentRequest languageCode */ - languageCode?: (string|null); + /** TextToSpeechSettings synthesizeSpeechConfigs */ + synthesizeSpeechConfigs?: ({ [k: string]: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig }|null); } - /** Represents a ValidateAgentRequest. */ - class ValidateAgentRequest implements IValidateAgentRequest { + /** Represents a TextToSpeechSettings. */ + class TextToSpeechSettings implements ITextToSpeechSettings { /** - * Constructs a new ValidateAgentRequest. + * Constructs a new TextToSpeechSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest); - - /** ValidateAgentRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings); - /** ValidateAgentRequest languageCode. */ - public languageCode: string; + /** TextToSpeechSettings synthesizeSpeechConfigs. */ + public synthesizeSpeechConfigs: { [k: string]: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig }; /** - * Creates a new ValidateAgentRequest instance using the specified properties. + * Creates a new TextToSpeechSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateAgentRequest instance + * @returns TextToSpeechSettings 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.ITextToSpeechSettings): google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings; /** - * 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 TextToSpeechSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. + * @param message TextToSpeechSettings 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.ITextToSpeechSettings, 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 TextToSpeechSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. + * @param message TextToSpeechSettings 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.ITextToSpeechSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateAgentRequest message from the specified reader or buffer. + * Decodes a TextToSpeechSettings 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 TextToSpeechSettings * @throws {Error} If the payload is not a reader or 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.TextToSpeechSettings; /** - * Decodes a ValidateAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a TextToSpeechSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateAgentRequest + * @returns TextToSpeechSettings * @throws {Error} If the payload is not a 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.TextToSpeechSettings; /** - * Verifies a ValidateAgentRequest message. + * Verifies a TextToSpeechSettings message. * @param message Plain 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 TextToSpeechSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateAgentRequest + * @returns TextToSpeechSettings */ - 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.TextToSpeechSettings; /** - * 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 TextToSpeechSettings message. Also converts values to other types if specified. + * @param message TextToSpeechSettings * @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.TextToSpeechSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateAgentRequest to JSON. + * Converts this TextToSpeechSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateAgentRequest + * Gets the default type url for TextToSpeechSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetAgentValidationResultRequest. */ - interface IGetAgentValidationResultRequest { + /** Represents a Flows */ + class Flows extends $protobuf.rpc.Service { - /** GetAgentValidationResultRequest name */ - name?: (string|null); + /** + * 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); - /** GetAgentValidationResultRequest languageCode */ - languageCode?: (string|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; - /** Represents a GetAgentValidationResultRequest. */ - class GetAgentValidationResultRequest implements IGetAgentValidationResultRequest { + /** + * 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; /** - * Constructs a new GetAgentValidationResultRequest. - * @param [properties] Properties to set + * 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 + */ + public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): Promise; + + /** + * 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; + + /** + * Calls ValidateFlow. + * @param request ValidateFlowRequest message or plain object + * @returns Promise + */ + public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): Promise; + + /** + * 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; + + /** + * Calls GetFlowValidationResult. + * @param request GetFlowValidationResultRequest message or plain object + * @returns Promise + */ + public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): Promise; + + /** + * Calls ImportFlow. + * @param request ImportFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlowCallback): void; + + /** + * Calls ImportFlow. + * @param request ImportFlowRequest message or plain object + * @returns Promise + */ + public importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest): Promise; + + /** + * Calls ExportFlow. + * @param request ExportFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlowCallback): void; + + /** + * Calls ExportFlow. + * @param request ExportFlowRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest); - - /** GetAgentValidationResultRequest name. */ - public name: string; + public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest): Promise; + } - /** GetAgentValidationResultRequest languageCode. */ - public languageCode: string; + namespace Flows { /** - * Creates a new GetAgentValidationResultRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAgentValidationResultRequest instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|createFlow}. + * @param error Error, if any + * @param [response] Flow */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; + type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|deleteFlow}. + * @param error Error, if any + * @param [response] Empty */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteFlowCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|listFlows}. + * @param error Error, if any + * @param [response] ListFlowsResponse */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) => void; /** - * 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 GetAgentValidationResultRequest - * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; + type GetFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; /** - * Decodes a GetAgentValidationResultRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetAgentValidationResultRequest - * @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|updateFlow}. + * @param error Error, if any + * @param [response] Flow */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; + type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; /** - * Verifies a GetAgentValidationResultRequest 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|trainFlow}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type TrainFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a GetAgentValidationResultRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetAgentValidationResultRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|validateFlow}. + * @param error Error, if any + * @param [response] FlowValidationResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest; + type ValidateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlowValidationResult}. + * @param error Error, if any + * @param [response] FlowValidationResult */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetFlowValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; /** - * Converts this GetAgentValidationResultRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|importFlow}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type ImportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for GetAgentValidationResultRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|exportFlow}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ExportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of an AgentValidationResult. */ - interface IAgentValidationResult { + /** Properties of a NluSettings. */ + interface INluSettings { - /** AgentValidationResult name */ - name?: (string|null); + /** NluSettings modelType */ + modelType?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null); - /** AgentValidationResult flowValidationResults */ - flowValidationResults?: (google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult[]|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 an AgentValidationResult. */ - class AgentValidationResult implements IAgentValidationResult { + /** Represents a NluSettings. */ + class NluSettings implements INluSettings { /** - * Constructs a new AgentValidationResult. + * Constructs a new NluSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings); - /** AgentValidationResult name. */ - public name: string; + /** NluSettings modelType. */ + public modelType: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType); - /** AgentValidationResult flowValidationResults. */ - public flowValidationResults: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult[]; + /** 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 AgentValidationResult instance using the specified properties. + * Creates a new NluSettings instance using the specified properties. * @param [properties] Properties to set - * @returns AgentValidationResult instance + * @returns NluSettings 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.INluSettings): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * 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 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.IAgentValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, 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 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.IAgentValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AgentValidationResult 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 AgentValidationResult + * @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.AgentValidationResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Decodes an AgentValidationResult 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 AgentValidationResult + * @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.AgentValidationResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Verifies an AgentValidationResult 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 an AgentValidationResult 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 AgentValidationResult + * @returns NluSettings */ - 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.NluSettings; /** - * 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 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.AgentValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AgentValidationResult to JSON. + * Converts this NluSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AgentValidationResult + * Gets the default type url for NluSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetGenerativeSettingsRequest. */ - interface IGetGenerativeSettingsRequest { + namespace NluSettings { - /** GetGenerativeSettingsRequest name */ + /** 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 { + + /** Flow name */ name?: (string|null); - /** GetGenerativeSettingsRequest languageCode */ - languageCode?: (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 transitionRouteGroups */ + transitionRouteGroups?: (string[]|null); + + /** Flow nluSettings */ + nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + + /** Flow advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + + /** Flow knowledgeConnectorSettings */ + knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null); } - /** Represents a GetGenerativeSettingsRequest. */ - class GetGenerativeSettingsRequest implements IGetGenerativeSettingsRequest { + /** Represents a Flow. */ + class Flow implements IFlow { /** - * Constructs a new GetGenerativeSettingsRequest. + * Constructs a new Flow. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow); - /** GetGenerativeSettingsRequest name. */ + /** Flow name. */ public name: string; - /** GetGenerativeSettingsRequest languageCode. */ - public languageCode: 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 transitionRouteGroups. */ + public transitionRouteGroups: string[]; + + /** Flow nluSettings. */ + public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + + /** Flow advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + + /** Flow knowledgeConnectorSettings. */ + public knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null); /** - * Creates a new GetGenerativeSettingsRequest instance using the specified properties. + * Creates a new Flow instance using the specified properties. * @param [properties] Properties to set - * @returns GetGenerativeSettingsRequest instance + * @returns Flow instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest): google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Encodes the specified GetGenerativeSettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest.verify|verify} messages. - * @param message GetGenerativeSettingsRequest 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.IGetGenerativeSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetGenerativeSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest.verify|verify} messages. - * @param message GetGenerativeSettingsRequest 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.IGetGenerativeSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetGenerativeSettingsRequest 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 GetGenerativeSettingsRequest + * @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.GetGenerativeSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Decodes a GetGenerativeSettingsRequest 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 GetGenerativeSettingsRequest + * @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.GetGenerativeSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Verifies a GetGenerativeSettingsRequest 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 a GetGenerativeSettingsRequest 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 GetGenerativeSettingsRequest + * @returns Flow */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Creates a plain object from a GetGenerativeSettingsRequest message. Also converts values to other types if specified. - * @param message GetGenerativeSettingsRequest + * 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.GetGenerativeSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Flow, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetGenerativeSettingsRequest to JSON. + * Converts this Flow to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetGenerativeSettingsRequest + * Gets the default type url for Flow * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateGenerativeSettingsRequest. */ - interface IUpdateGenerativeSettingsRequest { + /** Properties of a CreateFlowRequest. */ + interface ICreateFlowRequest { - /** UpdateGenerativeSettingsRequest generativeSettings */ - generativeSettings?: (google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings|null); + /** CreateFlowRequest parent */ + parent?: (string|null); - /** UpdateGenerativeSettingsRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateFlowRequest flow */ + flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + + /** CreateFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents an UpdateGenerativeSettingsRequest. */ - class UpdateGenerativeSettingsRequest implements IUpdateGenerativeSettingsRequest { + /** Represents a CreateFlowRequest. */ + class CreateFlowRequest implements ICreateFlowRequest { /** - * Constructs a new UpdateGenerativeSettingsRequest. + * Constructs a new CreateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest); - /** UpdateGenerativeSettingsRequest generativeSettings. */ - public generativeSettings?: (google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings|null); + /** CreateFlowRequest parent. */ + public parent: string; - /** UpdateGenerativeSettingsRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateFlowRequest flow. */ + public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + + /** CreateFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new UpdateGenerativeSettingsRequest instance using the specified properties. + * Creates a new CreateFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateGenerativeSettingsRequest instance + * @returns CreateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest): google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Encodes the specified UpdateGenerativeSettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.verify|verify} messages. - * @param message UpdateGenerativeSettingsRequest 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.IUpdateGenerativeSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateGenerativeSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.verify|verify} messages. - * @param message UpdateGenerativeSettingsRequest 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.IUpdateGenerativeSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateGenerativeSettingsRequest 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 UpdateGenerativeSettingsRequest + * @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.UpdateGenerativeSettingsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Decodes an UpdateGenerativeSettingsRequest 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 UpdateGenerativeSettingsRequest + * @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.UpdateGenerativeSettingsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Verifies an UpdateGenerativeSettingsRequest 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 UpdateGenerativeSettingsRequest 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 UpdateGenerativeSettingsRequest + * @returns CreateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Creates a plain object from an UpdateGenerativeSettingsRequest message. Also converts values to other types if specified. - * @param message UpdateGenerativeSettingsRequest + * 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.UpdateGenerativeSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateGenerativeSettingsRequest to JSON. + * Converts this CreateFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateGenerativeSettingsRequest + * Gets the default type url for CreateFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** AudioEncoding enum. */ - enum AudioEncoding { - AUDIO_ENCODING_UNSPECIFIED = 0, - AUDIO_ENCODING_LINEAR_16 = 1, - AUDIO_ENCODING_FLAC = 2, - AUDIO_ENCODING_MULAW = 3, - AUDIO_ENCODING_AMR = 4, - AUDIO_ENCODING_AMR_WB = 5, - AUDIO_ENCODING_OGG_OPUS = 6, - AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 - } - - /** SpeechModelVariant enum. */ - enum SpeechModelVariant { - SPEECH_MODEL_VARIANT_UNSPECIFIED = 0, - USE_BEST_AVAILABLE = 1, - USE_STANDARD = 2, - USE_ENHANCED = 3 - } - - /** Properties of a SpeechWordInfo. */ - interface ISpeechWordInfo { - - /** SpeechWordInfo word */ - word?: (string|null); - - /** SpeechWordInfo startOffset */ - startOffset?: (google.protobuf.IDuration|null); + /** Properties of a DeleteFlowRequest. */ + interface IDeleteFlowRequest { - /** SpeechWordInfo endOffset */ - endOffset?: (google.protobuf.IDuration|null); + /** DeleteFlowRequest name */ + name?: (string|null); - /** SpeechWordInfo confidence */ - confidence?: (number|null); + /** DeleteFlowRequest force */ + force?: (boolean|null); } - /** Represents a SpeechWordInfo. */ - class SpeechWordInfo implements ISpeechWordInfo { + /** Represents a DeleteFlowRequest. */ + class DeleteFlowRequest implements IDeleteFlowRequest { /** - * Constructs a new SpeechWordInfo. + * Constructs a new DeleteFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo); - - /** SpeechWordInfo word. */ - public word: string; - - /** SpeechWordInfo startOffset. */ - public startOffset?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest); - /** SpeechWordInfo endOffset. */ - public endOffset?: (google.protobuf.IDuration|null); + /** DeleteFlowRequest name. */ + public name: string; - /** SpeechWordInfo confidence. */ - public confidence: number; + /** DeleteFlowRequest force. */ + public force: boolean; /** - * Creates a new SpeechWordInfo instance using the specified properties. + * Creates a new DeleteFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SpeechWordInfo instance + * @returns DeleteFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. - * @param message SpeechWordInfo 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.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. - * @param message SpeechWordInfo 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.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SpeechWordInfo 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 SpeechWordInfo + * @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.SpeechWordInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Decodes a SpeechWordInfo 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 SpeechWordInfo + * @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.SpeechWordInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Verifies a SpeechWordInfo 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 SpeechWordInfo 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 SpeechWordInfo + * @returns DeleteFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. - * @param message SpeechWordInfo + * 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.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SpeechWordInfo to JSON. + * Converts this DeleteFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SpeechWordInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an InputAudioConfig. */ - interface IInputAudioConfig { - - /** InputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null); - - /** InputAudioConfig sampleRateHertz */ - sampleRateHertz?: (number|null); + * Gets the default type url for DeleteFlowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** InputAudioConfig enableWordInfo */ - enableWordInfo?: (boolean|null); + /** Properties of a ListFlowsRequest. */ + interface IListFlowsRequest { - /** InputAudioConfig phraseHints */ - phraseHints?: (string[]|null); + /** ListFlowsRequest parent */ + parent?: (string|null); - /** InputAudioConfig model */ - model?: (string|null); + /** ListFlowsRequest pageSize */ + pageSize?: (number|null); - /** InputAudioConfig modelVariant */ - modelVariant?: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null); + /** ListFlowsRequest pageToken */ + pageToken?: (string|null); - /** InputAudioConfig singleUtterance */ - singleUtterance?: (boolean|null); + /** ListFlowsRequest languageCode */ + languageCode?: (string|null); } - /** Represents an InputAudioConfig. */ - class InputAudioConfig implements IInputAudioConfig { + /** Represents a ListFlowsRequest. */ + class ListFlowsRequest implements IListFlowsRequest { /** - * Constructs a new InputAudioConfig. + * Constructs a new ListFlowsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig); - - /** InputAudioConfig audioEncoding. */ - public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding); - - /** InputAudioConfig sampleRateHertz. */ - public sampleRateHertz: number; - - /** InputAudioConfig enableWordInfo. */ - public enableWordInfo: boolean; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest); - /** InputAudioConfig phraseHints. */ - public phraseHints: string[]; + /** ListFlowsRequest parent. */ + public parent: string; - /** InputAudioConfig model. */ - public model: string; + /** ListFlowsRequest pageSize. */ + public pageSize: number; - /** InputAudioConfig modelVariant. */ - public modelVariant: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant); + /** ListFlowsRequest pageToken. */ + public pageToken: string; - /** InputAudioConfig singleUtterance. */ - public singleUtterance: boolean; + /** ListFlowsRequest languageCode. */ + public languageCode: string; /** - * Creates a new InputAudioConfig instance using the specified properties. + * Creates a new ListFlowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns InputAudioConfig instance + * @returns ListFlowsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. - * @param message InputAudioConfig 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.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. - * @param message InputAudioConfig 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.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InputAudioConfig 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 InputAudioConfig + * @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.InputAudioConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Decodes an InputAudioConfig 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 InputAudioConfig + * @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.InputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Verifies an InputAudioConfig 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 an InputAudioConfig 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 InputAudioConfig + * @returns ListFlowsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. - * @param message InputAudioConfig + * 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.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InputAudioConfig to JSON. + * Converts this ListFlowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InputAudioConfig + * Gets the default type url for ListFlowsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** SsmlVoiceGender enum. */ - enum SsmlVoiceGender { - SSML_VOICE_GENDER_UNSPECIFIED = 0, - SSML_VOICE_GENDER_MALE = 1, - SSML_VOICE_GENDER_FEMALE = 2, - SSML_VOICE_GENDER_NEUTRAL = 3 - } - - /** Properties of a VoiceSelectionParams. */ - interface IVoiceSelectionParams { + /** Properties of a ListFlowsResponse. */ + interface IListFlowsResponse { - /** VoiceSelectionParams name */ - name?: (string|null); + /** ListFlowsResponse flows */ + flows?: (google.cloud.dialogflow.cx.v3beta1.IFlow[]|null); - /** VoiceSelectionParams ssmlGender */ - ssmlGender?: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null); + /** ListFlowsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a VoiceSelectionParams. */ - class VoiceSelectionParams implements IVoiceSelectionParams { + /** Represents a ListFlowsResponse. */ + class ListFlowsResponse implements IListFlowsResponse { /** - * Constructs a new VoiceSelectionParams. + * Constructs a new ListFlowsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse); - /** VoiceSelectionParams name. */ - public name: string; + /** ListFlowsResponse flows. */ + public flows: google.cloud.dialogflow.cx.v3beta1.IFlow[]; - /** VoiceSelectionParams ssmlGender. */ - public ssmlGender: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender); + /** ListFlowsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new VoiceSelectionParams instance using the specified properties. + * Creates a new ListFlowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns VoiceSelectionParams instance + * @returns ListFlowsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. - * @param message VoiceSelectionParams 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.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. - * @param message VoiceSelectionParams 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.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VoiceSelectionParams 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 VoiceSelectionParams + * @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.VoiceSelectionParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Decodes a VoiceSelectionParams 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 VoiceSelectionParams + * @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.VoiceSelectionParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Verifies a VoiceSelectionParams 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 VoiceSelectionParams 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 VoiceSelectionParams + * @returns ListFlowsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. - * @param message VoiceSelectionParams + * 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.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VoiceSelectionParams to JSON. + * Converts this ListFlowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VoiceSelectionParams + * Gets the default type url for ListFlowsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SynthesizeSpeechConfig. */ - interface ISynthesizeSpeechConfig { - - /** SynthesizeSpeechConfig speakingRate */ - speakingRate?: (number|null); - - /** SynthesizeSpeechConfig pitch */ - pitch?: (number|null); - - /** SynthesizeSpeechConfig volumeGainDb */ - volumeGainDb?: (number|null); + /** Properties of a GetFlowRequest. */ + interface IGetFlowRequest { - /** SynthesizeSpeechConfig effectsProfileId */ - effectsProfileId?: (string[]|null); + /** GetFlowRequest name */ + name?: (string|null); - /** SynthesizeSpeechConfig voice */ - voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); + /** GetFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents a SynthesizeSpeechConfig. */ - class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { + /** Represents a GetFlowRequest. */ + class GetFlowRequest implements IGetFlowRequest { /** - * Constructs a new SynthesizeSpeechConfig. + * Constructs a new GetFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig); - - /** SynthesizeSpeechConfig speakingRate. */ - public speakingRate: number; - - /** SynthesizeSpeechConfig pitch. */ - public pitch: number; - - /** SynthesizeSpeechConfig volumeGainDb. */ - public volumeGainDb: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest); - /** SynthesizeSpeechConfig effectsProfileId. */ - public effectsProfileId: string[]; + /** GetFlowRequest name. */ + public name: string; - /** SynthesizeSpeechConfig voice. */ - public voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); + /** GetFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. + * Creates a new GetFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SynthesizeSpeechConfig instance + * @returns GetFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. - * @param message SynthesizeSpeechConfig 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.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. - * @param message SynthesizeSpeechConfig 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.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SynthesizeSpeechConfig 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 SynthesizeSpeechConfig + * @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.SynthesizeSpeechConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Decodes a SynthesizeSpeechConfig 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 SynthesizeSpeechConfig + * @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.SynthesizeSpeechConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Verifies a SynthesizeSpeechConfig 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 a SynthesizeSpeechConfig 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 SynthesizeSpeechConfig + * @returns GetFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. - * @param message SynthesizeSpeechConfig + * 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.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SynthesizeSpeechConfig to JSON. + * Converts this GetFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SynthesizeSpeechConfig + * Gets the default type url for GetFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** OutputAudioEncoding enum. */ - enum OutputAudioEncoding { - OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0, - OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1, - OUTPUT_AUDIO_ENCODING_MP3 = 2, - OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4, - OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3, - OUTPUT_AUDIO_ENCODING_MULAW = 5 - } - - /** Properties of an OutputAudioConfig. */ - interface IOutputAudioConfig { + /** Properties of an UpdateFlowRequest. */ + interface IUpdateFlowRequest { - /** OutputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null); + /** UpdateFlowRequest flow */ + flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** OutputAudioConfig sampleRateHertz */ - sampleRateHertz?: (number|null); + /** UpdateFlowRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** OutputAudioConfig synthesizeSpeechConfig */ - synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); + /** UpdateFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents an OutputAudioConfig. */ - class OutputAudioConfig implements IOutputAudioConfig { + /** Represents an UpdateFlowRequest. */ + class UpdateFlowRequest implements IUpdateFlowRequest { /** - * Constructs a new OutputAudioConfig. + * Constructs a new UpdateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest); - /** OutputAudioConfig audioEncoding. */ - public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding); + /** UpdateFlowRequest flow. */ + public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** OutputAudioConfig sampleRateHertz. */ - public sampleRateHertz: number; + /** UpdateFlowRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** OutputAudioConfig synthesizeSpeechConfig. */ - public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); + /** UpdateFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new OutputAudioConfig instance using the specified properties. + * Creates a new UpdateFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns OutputAudioConfig instance + * @returns UpdateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. - * @param message OutputAudioConfig message or plain object to encode + * 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 */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. - * @param message OutputAudioConfig message or plain object to encode + * 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 */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer. + * 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 OutputAudioConfig + * @returns UpdateFlowRequest * @throws {Error} If the payload is not a reader or 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.OutputAudioConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputAudioConfig + * @returns UpdateFlowRequest * @throws {Error} If the payload is not a 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.OutputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Verifies an OutputAudioConfig message. + * Verifies an UpdateFlowRequest message. * @param message Plain 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 OutputAudioConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputAudioConfig + * @returns UpdateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. - * @param message OutputAudioConfig + * 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 */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this UpdateFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputAudioConfig + * Gets the default type url for UpdateFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TextToSpeechSettings. */ - interface ITextToSpeechSettings { + /** Properties of a TrainFlowRequest. */ + interface ITrainFlowRequest { - /** TextToSpeechSettings synthesizeSpeechConfigs */ - synthesizeSpeechConfigs?: ({ [k: string]: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig }|null); + /** TrainFlowRequest name */ + name?: (string|null); } - /** Represents a TextToSpeechSettings. */ - class TextToSpeechSettings implements ITextToSpeechSettings { + /** Represents a TrainFlowRequest. */ + class TrainFlowRequest implements ITrainFlowRequest { /** - * Constructs a new TextToSpeechSettings. + * Constructs a new TrainFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest); - /** TextToSpeechSettings synthesizeSpeechConfigs. */ - public synthesizeSpeechConfigs: { [k: string]: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig }; + /** TrainFlowRequest name. */ + public name: string; /** - * Creates a new TextToSpeechSettings instance using the specified properties. + * Creates a new TrainFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TextToSpeechSettings instance + * @returns TrainFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings): google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Encodes the specified TextToSpeechSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. - * @param message TextToSpeechSettings 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.ITextToSpeechSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TextToSpeechSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. - * @param message TextToSpeechSettings 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.ITextToSpeechSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TextToSpeechSettings 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 TextToSpeechSettings + * @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.TextToSpeechSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Decodes a TextToSpeechSettings 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 TextToSpeechSettings + * @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.TextToSpeechSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Verifies a TextToSpeechSettings 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 TextToSpeechSettings 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 TextToSpeechSettings + * @returns TrainFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Creates a plain object from a TextToSpeechSettings message. Also converts values to other types if specified. - * @param message TextToSpeechSettings + * 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.TextToSpeechSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TextToSpeechSettings to JSON. + * Converts this TrainFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TextToSpeechSettings + * Gets the default type url for TrainFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a Flows */ - class Flows extends $protobuf.rpc.Service { - - /** - * 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); - - /** - * 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; - - /** - * 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; - - /** - * 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; + /** Properties of a ValidateFlowRequest. */ + interface IValidateFlowRequest { - /** - * 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; + /** ValidateFlowRequest name */ + name?: (string|null); - /** - * Calls ListFlows. - * @param request ListFlowsRequest message or plain object - * @returns Promise - */ - public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): Promise; + /** ValidateFlowRequest languageCode */ + languageCode?: (string|null); + } - /** - * 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; + /** Represents a ValidateFlowRequest. */ + class ValidateFlowRequest implements IValidateFlowRequest { /** - * Calls GetFlow. - * @param request GetFlowRequest message or plain object - * @returns Promise + * Constructs a new ValidateFlowRequest. + * @param [properties] Properties to set */ - public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest); - /** - * 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; + /** ValidateFlowRequest name. */ + public name: string; + + /** ValidateFlowRequest languageCode. */ + public languageCode: string; /** - * Calls UpdateFlow. - * @param request UpdateFlowRequest message or plain object - * @returns Promise + * Creates a new ValidateFlowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateFlowRequest instance */ - public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Calls TrainFlow. - * @param request TrainFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls TrainFlow. - * @param request TrainFlowRequest message or plain object - * @returns Promise + * 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 trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ValidateFlow. - * @param request ValidateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FlowValidationResult + * 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 ValidateFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Calls ValidateFlow. - * @param request ValidateFlowRequest message or plain object - * @returns Promise + * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Calls GetFlowValidationResult. - * @param request GetFlowValidationResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FlowValidationResult + * Verifies a ValidateFlowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetFlowValidationResult. - * @param request GetFlowValidationResultRequest message or plain object - * @returns Promise + * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateFlowRequest */ - public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Calls ImportFlow. - * @param request ImportFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlowCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ImportFlow. - * @param request ImportFlowRequest message or plain object - * @returns Promise + * Converts this ValidateFlowRequest to JSON. + * @returns JSON object */ - public importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls ExportFlow. - * @param request ExportFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for ValidateFlowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlowCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetFlowValidationResultRequest. */ + interface IGetFlowValidationResultRequest { + + /** GetFlowValidationResultRequest name */ + name?: (string|null); + + /** GetFlowValidationResultRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a GetFlowValidationResultRequest. */ + class GetFlowValidationResultRequest implements IGetFlowValidationResultRequest { /** - * Calls ExportFlow. - * @param request ExportFlowRequest message or plain object - * @returns Promise + * Constructs a new GetFlowValidationResultRequest. + * @param [properties] Properties to set */ - public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest): Promise; - } + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest); - namespace Flows { + /** GetFlowValidationResultRequest name. */ + public name: string; + + /** GetFlowValidationResultRequest languageCode. */ + public languageCode: string; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|createFlow}. - * @param error Error, if any - * @param [response] Flow + * Creates a new GetFlowValidationResultRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFlowValidationResultRequest instance */ - type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|deleteFlow}. - * @param error Error, if any - * @param [response] Empty + * 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 */ - type DeleteFlowCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, 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 + * 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 */ - type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlow}. - * @param error Error, if any - * @param [response] Flow + * 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 GetFlowValidationResultRequest + * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|updateFlow}. - * @param error Error, if any - * @param [response] Flow + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFlowValidationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|trainFlow}. - * @param error Error, if any - * @param [response] Operation + * Verifies a GetFlowValidationResultRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type TrainFlowCallback = (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.Flows|validateFlow}. - * @param error Error, if any - * @param [response] FlowValidationResult + * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFlowValidationResultRequest */ - type ValidateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlowValidationResult}. - * @param error Error, if any - * @param [response] FlowValidationResult + * 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 */ - type GetFlowValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|importFlow}. - * @param error Error, if any - * @param [response] Operation + * Converts this GetFlowValidationResultRequest to JSON. + * @returns JSON object */ - type ImportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|exportFlow}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for GetFlowValidationResultRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ExportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NluSettings. */ - interface INluSettings { + /** Properties of a FlowValidationResult. */ + interface IFlowValidationResult { - /** NluSettings modelType */ - modelType?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null); + /** FlowValidationResult name */ + name?: (string|null); - /** NluSettings classificationThreshold */ - classificationThreshold?: (number|null); + /** FlowValidationResult validationMessages */ + validationMessages?: (google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]|null); - /** NluSettings modelTrainingMode */ - modelTrainingMode?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null); + /** FlowValidationResult updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a NluSettings. */ - class NluSettings implements INluSettings { + /** Represents a FlowValidationResult. */ + class FlowValidationResult implements IFlowValidationResult { /** - * Constructs a new NluSettings. + * Constructs a new FlowValidationResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult); - /** NluSettings modelType. */ - public modelType: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType); + /** FlowValidationResult name. */ + public name: string; - /** NluSettings classificationThreshold. */ - public classificationThreshold: number; + /** FlowValidationResult validationMessages. */ + public validationMessages: google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]; - /** NluSettings modelTrainingMode. */ - public modelTrainingMode: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode); + /** FlowValidationResult updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new NluSettings instance using the specified properties. + * Creates a new FlowValidationResult instance using the specified properties. * @param [properties] Properties to set - * @returns NluSettings instance + * @returns FlowValidationResult 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.IFlowValidationResult): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * 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 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.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, 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 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.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NluSettings 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 NluSettings + * @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.NluSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Decodes a NluSettings 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 NluSettings + * @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.NluSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Verifies a NluSettings 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 NluSettings 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 NluSettings + * @returns FlowValidationResult */ - 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.FlowValidationResult; /** - * 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 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.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NluSettings to JSON. + * Converts this FlowValidationResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NluSettings + * Gets the default type url for FlowValidationResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - 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 { - - /** Flow name */ - name?: (string|null); - - /** Flow displayName */ - displayName?: (string|null); - - /** Flow description */ - description?: (string|null); + /** Properties of an ImportFlowRequest. */ + interface IImportFlowRequest { - /** Flow transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + /** ImportFlowRequest parent */ + parent?: (string|null); - /** Flow eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + /** ImportFlowRequest flowUri */ + flowUri?: (string|null); - /** Flow transitionRouteGroups */ - transitionRouteGroups?: (string[]|null); + /** ImportFlowRequest flowContent */ + flowContent?: (Uint8Array|string|null); - /** Flow nluSettings */ - nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + /** ImportFlowRequest importOption */ + importOption?: (google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|null); - /** Flow knowledgeConnectorSettings */ - knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null); + /** ImportFlowRequest flowImportStrategy */ + flowImportStrategy?: (google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy|null); } - /** Represents a Flow. */ - class Flow implements IFlow { + /** Represents an ImportFlowRequest. */ + class ImportFlowRequest implements IImportFlowRequest { /** - * Constructs a new Flow. + * Constructs a new ImportFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow); - - /** Flow name. */ - public name: string; - - /** Flow displayName. */ - public displayName: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest); - /** Flow description. */ - public description: string; + /** ImportFlowRequest parent. */ + public parent: string; - /** Flow transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + /** ImportFlowRequest flowUri. */ + public flowUri?: (string|null); - /** Flow eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + /** ImportFlowRequest flowContent. */ + public flowContent?: (Uint8Array|string|null); - /** Flow transitionRouteGroups. */ - public transitionRouteGroups: string[]; + /** ImportFlowRequest importOption. */ + public importOption: (google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption); - /** Flow nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + /** ImportFlowRequest flowImportStrategy. */ + public flowImportStrategy?: (google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy|null); - /** Flow knowledgeConnectorSettings. */ - public knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null); + /** ImportFlowRequest flow. */ + public flow?: ("flowUri"|"flowContent"); /** - * Creates a new Flow instance using the specified properties. + * Creates a new ImportFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Flow instance + * @returns ImportFlowRequest 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.IImportFlowRequest): google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest; /** - * 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 ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. + * @param message ImportFlowRequest 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.IImportFlowRequest, 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 ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. + * @param message ImportFlowRequest 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.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Flow message from the specified reader or buffer. + * Decodes an ImportFlowRequest 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 ImportFlowRequest * @throws {Error} If the payload is not a reader or 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.ImportFlowRequest; /** - * Decodes a Flow message from the specified reader or buffer, length delimited. + * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Flow + * @returns ImportFlowRequest * @throws {Error} If the payload is not a 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.ImportFlowRequest; /** - * Verifies a Flow message. + * Verifies an ImportFlowRequest message. * @param message Plain 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 an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Flow + * @returns ImportFlowRequest */ - 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.ImportFlowRequest; /** - * Creates a plain object from a Flow message. Also converts values to other types if specified. - * @param message Flow + * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. + * @param message ImportFlowRequest * @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.ImportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Flow to JSON. + * Converts this ImportFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Flow + * Gets the default type url for ImportFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFlowRequest. */ - interface ICreateFlowRequest { + namespace ImportFlowRequest { - /** CreateFlowRequest parent */ - parent?: (string|null); + /** ImportOption enum. */ + enum ImportOption { + IMPORT_OPTION_UNSPECIFIED = 0, + KEEP = 1, + FALLBACK = 2 + } + } - /** CreateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** Properties of a FlowImportStrategy. */ + interface IFlowImportStrategy { - /** CreateFlowRequest languageCode */ - languageCode?: (string|null); + /** FlowImportStrategy globalImportStrategy */ + globalImportStrategy?: (google.cloud.dialogflow.cx.v3beta1.ImportStrategy|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportStrategy|null); } - /** Represents a CreateFlowRequest. */ - class CreateFlowRequest implements ICreateFlowRequest { + /** Represents a FlowImportStrategy. */ + class FlowImportStrategy implements IFlowImportStrategy { /** - * Constructs a new CreateFlowRequest. + * Constructs a new FlowImportStrategy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest); - - /** CreateFlowRequest parent. */ - public parent: string; - - /** CreateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy); - /** CreateFlowRequest languageCode. */ - public languageCode: string; + /** FlowImportStrategy globalImportStrategy. */ + public globalImportStrategy: (google.cloud.dialogflow.cx.v3beta1.ImportStrategy|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportStrategy); /** - * Creates a new CreateFlowRequest instance using the specified properties. + * Creates a new FlowImportStrategy instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFlowRequest instance + * @returns FlowImportStrategy 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.IFlowImportStrategy): google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy; /** - * 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 FlowImportStrategy message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify|verify} messages. + * @param message FlowImportStrategy 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.IFlowImportStrategy, 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 FlowImportStrategy message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify|verify} messages. + * @param message FlowImportStrategy 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.IFlowImportStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFlowRequest message from the specified reader or buffer. + * Decodes a FlowImportStrategy 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 FlowImportStrategy * @throws {Error} If the payload is not a reader or 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.FlowImportStrategy; /** - * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a FlowImportStrategy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFlowRequest + * @returns FlowImportStrategy * @throws {Error} If the payload is not a 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.FlowImportStrategy; /** - * Verifies a CreateFlowRequest message. + * Verifies a FlowImportStrategy message. * @param message Plain 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 FlowImportStrategy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFlowRequest + * @returns FlowImportStrategy */ - 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.FlowImportStrategy; /** - * 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 FlowImportStrategy message. Also converts values to other types if specified. + * @param message FlowImportStrategy * @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.FlowImportStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFlowRequest to JSON. + * Converts this FlowImportStrategy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFlowRequest + * Gets the default type url for FlowImportStrategy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFlowRequest. */ - interface IDeleteFlowRequest { - - /** DeleteFlowRequest name */ - name?: (string|null); + /** Properties of an ImportFlowResponse. */ + interface IImportFlowResponse { - /** DeleteFlowRequest force */ - force?: (boolean|null); + /** ImportFlowResponse flow */ + flow?: (string|null); } - /** Represents a DeleteFlowRequest. */ - class DeleteFlowRequest implements IDeleteFlowRequest { + /** Represents an ImportFlowResponse. */ + class ImportFlowResponse implements IImportFlowResponse { /** - * Constructs a new DeleteFlowRequest. + * Constructs a new ImportFlowResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest); - - /** DeleteFlowRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse); - /** DeleteFlowRequest force. */ - public force: boolean; + /** ImportFlowResponse flow. */ + public flow: string; /** - * Creates a new DeleteFlowRequest instance using the specified properties. + * Creates a new ImportFlowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFlowRequest instance + * @returns ImportFlowResponse 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.IImportFlowResponse): google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse; /** - * 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 ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * @param message ImportFlowResponse 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.IImportFlowResponse, 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 ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * @param message ImportFlowResponse 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.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer. + * Decodes an ImportFlowResponse 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 ImportFlowResponse * @throws {Error} If the payload is not a reader or 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.ImportFlowResponse; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFlowRequest + * @returns ImportFlowResponse * @throws {Error} If the payload is not a 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.ImportFlowResponse; /** - * Verifies a DeleteFlowRequest message. + * Verifies an ImportFlowResponse message. * @param message Plain 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 an ImportFlowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFlowRequest + * @returns ImportFlowResponse */ - 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.ImportFlowResponse; /** - * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. - * @param message DeleteFlowRequest + * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. + * @param message ImportFlowResponse * @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.ImportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFlowRequest to JSON. + * Converts this ImportFlowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFlowRequest + * Gets the default type url for ImportFlowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFlowsRequest. */ - interface IListFlowsRequest { - - /** ListFlowsRequest parent */ - parent?: (string|null); + /** Properties of an ExportFlowRequest. */ + interface IExportFlowRequest { - /** ListFlowsRequest pageSize */ - pageSize?: (number|null); + /** ExportFlowRequest name */ + name?: (string|null); - /** ListFlowsRequest pageToken */ - pageToken?: (string|null); + /** ExportFlowRequest flowUri */ + flowUri?: (string|null); - /** ListFlowsRequest languageCode */ - languageCode?: (string|null); + /** ExportFlowRequest includeReferencedFlows */ + includeReferencedFlows?: (boolean|null); } - /** Represents a ListFlowsRequest. */ - class ListFlowsRequest implements IListFlowsRequest { + /** Represents an ExportFlowRequest. */ + class ExportFlowRequest implements IExportFlowRequest { /** - * Constructs a new ListFlowsRequest. + * Constructs a new ExportFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest); - - /** ListFlowsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest); - /** ListFlowsRequest pageSize. */ - public pageSize: number; + /** ExportFlowRequest name. */ + public name: string; - /** ListFlowsRequest pageToken. */ - public pageToken: string; + /** ExportFlowRequest flowUri. */ + public flowUri: string; - /** ListFlowsRequest languageCode. */ - public languageCode: string; + /** ExportFlowRequest includeReferencedFlows. */ + public includeReferencedFlows: boolean; /** - * Creates a new ListFlowsRequest instance using the specified properties. + * Creates a new ExportFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFlowsRequest instance + * @returns ExportFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; /** - * 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 + * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. + * @param message ExportFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. + * @param message ExportFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer. + * Decodes an ExportFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFlowsRequest + * @returns ExportFlowRequest * @throws {Error} If the payload is not a reader or 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.ListFlowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFlowsRequest + * @returns ExportFlowRequest * @throws {Error} If the payload is not a 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.ListFlowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; /** - * Verifies a ListFlowsRequest message. + * Verifies an ExportFlowRequest message. * @param message Plain 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 ListFlowsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFlowsRequest + * @returns ExportFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; /** - * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. - * @param message ListFlowsRequest + * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. + * @param message ExportFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFlowsRequest to JSON. + * Converts this ExportFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFlowsRequest + * Gets the default type url for ExportFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFlowsResponse. */ - interface IListFlowsResponse { + /** Properties of an ExportFlowResponse. */ + interface IExportFlowResponse { - /** ListFlowsResponse flows */ - flows?: (google.cloud.dialogflow.cx.v3beta1.IFlow[]|null); + /** ExportFlowResponse flowUri */ + flowUri?: (string|null); - /** ListFlowsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ExportFlowResponse flowContent */ + flowContent?: (Uint8Array|string|null); } - /** Represents a ListFlowsResponse. */ - class ListFlowsResponse implements IListFlowsResponse { + /** Represents an ExportFlowResponse. */ + class ExportFlowResponse implements IExportFlowResponse { /** - * Constructs a new ListFlowsResponse. + * Constructs a new ExportFlowResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse); - /** ListFlowsResponse flows. */ - public flows: google.cloud.dialogflow.cx.v3beta1.IFlow[]; + /** ExportFlowResponse flowUri. */ + public flowUri?: (string|null); - /** ListFlowsResponse nextPageToken. */ - public nextPageToken: string; + /** ExportFlowResponse flowContent. */ + public flowContent?: (Uint8Array|string|null); + + /** ExportFlowResponse flow. */ + public flow?: ("flowUri"|"flowContent"); /** - * Creates a new ListFlowsResponse instance using the specified properties. + * Creates a new ExportFlowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListFlowsResponse instance + * @returns ExportFlowResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; /** - * 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 + * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * @param message ExportFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * @param message ExportFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer. + * Decodes an ExportFlowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFlowsResponse + * @returns ExportFlowResponse * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFlowsResponse + * @returns ExportFlowResponse * @throws {Error} If the payload is not a 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.ListFlowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; /** - * Verifies a ListFlowsResponse message. + * Verifies an ExportFlowResponse message. * @param message Plain 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 ListFlowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFlowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFlowsResponse + * @returns ExportFlowResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; /** - * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. - * @param message ListFlowsResponse + * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. + * @param message ExportFlowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFlowsResponse to JSON. + * Converts this ExportFlowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFlowsResponse + * Gets the default type url for ExportFlowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetFlowRequest. */ - interface IGetFlowRequest { + /** ImportStrategy enum. */ + enum ImportStrategy { + IMPORT_STRATEGY_UNSPECIFIED = 0, + IMPORT_STRATEGY_CREATE_NEW = 1, + IMPORT_STRATEGY_REPLACE = 2, + IMPORT_STRATEGY_KEEP = 3, + IMPORT_STRATEGY_MERGE = 4, + IMPORT_STRATEGY_THROW_ERROR = 5 + } - /** GetFlowRequest name */ - name?: (string|null); + /** Represents a Pages */ + class Pages extends $protobuf.rpc.Service { - /** GetFlowRequest languageCode */ - languageCode?: (string|null); - } + /** + * 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); - /** Represents a GetFlowRequest. */ - class GetFlowRequest implements IGetFlowRequest { + /** + * 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 create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Pages; /** - * Constructs a new GetFlowRequest. - * @param [properties] Properties to set + * Calls ListPages. + * @param request ListPagesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPagesResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest); + public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback): void; - /** GetFlowRequest name. */ - public name: string; + /** + * Calls ListPages. + * @param request ListPagesRequest message or plain object + * @returns Promise + */ + public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): Promise; - /** GetFlowRequest languageCode. */ - public languageCode: string; + /** + * Calls GetPage. + * @param request GetPageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page + */ + public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback): void; /** - * Creates a new GetFlowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetFlowRequest instance + * Calls GetPage. + * @param request GetPageRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): Promise; /** - * 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 + * Calls CreatePage. + * @param request CreatePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback): void; /** - * 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 + * Calls CreatePage. + * @param request CreatePageRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): Promise; /** - * 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 GetFlowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdatePage. + * @param request UpdatePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback): void; /** - * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetFlowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdatePage. + * @param request UpdatePageRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): Promise; /** - * Verifies a GetFlowRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeletePage. + * @param request DeletePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static verify(message: { [k: string]: any }): (string|null); + public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback): void; /** - * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetFlowRequest + * Calls DeletePage. + * @param request DeletePageRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): Promise; + } + + namespace Pages { /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|listPages}. + * @param error Error, if any + * @param [response] ListPagesResponse */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) => void; /** - * Converts this GetFlowRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|getPage}. + * @param error Error, if any + * @param [response] Page */ - public toJSON(): { [k: string]: any }; + type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; /** - * Gets the default type url for GetFlowRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|createPage}. + * @param error Error, if any + * @param [response] Page */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|updatePage}. + * @param error Error, if any + * @param [response] Page + */ + type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|deletePage}. + * @param error Error, if any + * @param [response] Empty + */ + type DeletePageCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of an UpdateFlowRequest. */ - interface IUpdateFlowRequest { + /** Properties of a Page. */ + interface IPage { - /** UpdateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** Page name */ + name?: (string|null); - /** UpdateFlowRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Page displayName */ + displayName?: (string|null); - /** UpdateFlowRequest languageCode */ - languageCode?: (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); + + /** Page advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + + /** Page knowledgeConnectorSettings */ + knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null); } - /** Represents an UpdateFlowRequest. */ - class UpdateFlowRequest implements IUpdateFlowRequest { + /** Represents a Page. */ + class Page implements IPage { /** - * Constructs a new UpdateFlowRequest. + * Constructs a new Page. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IPage); - /** UpdateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** Page name. */ + public name: string; - /** UpdateFlowRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** Page displayName. */ + public displayName: string; - /** UpdateFlowRequest languageCode. */ - public languageCode: 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[]; + + /** Page advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + + /** Page knowledgeConnectorSettings. */ + public knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null); /** - * Creates a new UpdateFlowRequest instance using the specified properties. + * Creates a new Page instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFlowRequest instance + * @returns Page 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.IPage): google.cloud.dialogflow.cx.v3beta1.Page; /** - * 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 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.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IPage, 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 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.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFlowRequest 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 UpdateFlowRequest + * @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.UpdateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Decodes an UpdateFlowRequest 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 UpdateFlowRequest + * @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.UpdateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Verifies an UpdateFlowRequest 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 an UpdateFlowRequest 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 UpdateFlowRequest + * @returns Page */ - 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.Page; /** - * 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 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.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFlowRequest to JSON. + * Converts this Page to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateFlowRequest + * Gets the default type url for Page * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TrainFlowRequest. */ - interface ITrainFlowRequest { + /** Properties of a Form. */ + interface IForm { - /** TrainFlowRequest name */ - name?: (string|null); + /** Form parameters */ + parameters?: (google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]|null); } - /** Represents a TrainFlowRequest. */ - class TrainFlowRequest implements ITrainFlowRequest { + /** Represents a Form. */ + class Form implements IForm { /** - * Constructs a new TrainFlowRequest. + * Constructs a new Form. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IForm); - /** TrainFlowRequest name. */ - public name: string; + /** Form parameters. */ + public parameters: google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]; /** - * Creates a new TrainFlowRequest instance using the specified properties. + * Creates a new Form instance using the specified properties. * @param [properties] Properties to set - * @returns TrainFlowRequest instance + * @returns Form instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IForm): google.cloud.dialogflow.cx.v3beta1.Form; /** - * 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 + * 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.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainFlowRequest 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 TrainFlowRequest + * @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.TrainFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Decodes a TrainFlowRequest 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 TrainFlowRequest + * @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.TrainFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Verifies a TrainFlowRequest 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 a TrainFlowRequest 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 TrainFlowRequest + * @returns Form */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. - * @param message TrainFlowRequest + * 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.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainFlowRequest to JSON. + * Converts this Form to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainFlowRequest + * Gets the default type url for Form * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateFlowRequest. */ - interface IValidateFlowRequest { + namespace Form { - /** ValidateFlowRequest name */ + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter displayName */ + displayName?: (string|null); + + /** Parameter required */ + required?: (boolean|null); + + /** Parameter entityType */ + entityType?: (string|null); + + /** Parameter isList */ + isList?: (boolean|null); + + /** Parameter fillBehavior */ + fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + + /** Parameter defaultValue */ + defaultValue?: (google.protobuf.IValue|null); + + /** Parameter redact */ + redact?: (boolean|null); + + /** Parameter advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter); + + /** Parameter displayName. */ + public displayName: string; + + /** Parameter required. */ + public required: boolean; + + /** 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; + + /** Parameter advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|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; + + /** + * 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 }; + + /** + * Gets the default type url for Parameter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + 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 }; + + /** + * Gets the default type url for FillBehavior + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of an EventHandler. */ + interface IEventHandler { + + /** 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|null); + + /** EventHandler targetFlow. */ + public targetFlow?: (string|null); + + /** 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 }; /** - * Gets the default type url for ValidateFlowRequest + * Gets the default type url for EventHandler * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 description */ + description?: (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 description. */ + public description: 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|null); + + /** TransitionRoute targetFlow. */ + public targetFlow?: (string|null); + + /** 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 }; /** - * Gets the default type url for GetFlowValidationResultRequest + * Gets the default type url for TransitionRoute * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 }; /** - * Gets the default type url for FlowValidationResult + * Gets the default type url for ListPagesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportFlowRequest. */ - interface IImportFlowRequest { - - /** ImportFlowRequest parent */ - parent?: (string|null); - - /** ImportFlowRequest flowUri */ - flowUri?: (string|null); - - /** ImportFlowRequest flowContent */ - flowContent?: (Uint8Array|string|null); + /** Properties of a ListPagesResponse. */ + interface IListPagesResponse { - /** ImportFlowRequest importOption */ - importOption?: (google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|null); + /** ListPagesResponse pages */ + pages?: (google.cloud.dialogflow.cx.v3beta1.IPage[]|null); - /** ImportFlowRequest flowImportStrategy */ - flowImportStrategy?: (google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy|null); + /** ListPagesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ImportFlowRequest. */ - class ImportFlowRequest implements IImportFlowRequest { + /** Represents a ListPagesResponse. */ + class ListPagesResponse implements IListPagesResponse { /** - * Constructs a new ImportFlowRequest. + * Constructs a new ListPagesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest); - - /** ImportFlowRequest parent. */ - public parent: string; - - /** ImportFlowRequest flowUri. */ - public flowUri?: (string|null); - - /** ImportFlowRequest flowContent. */ - public flowContent?: (Uint8Array|string|null); - - /** ImportFlowRequest importOption. */ - public importOption: (google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse); - /** ImportFlowRequest flowImportStrategy. */ - public flowImportStrategy?: (google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy|null); + /** ListPagesResponse pages. */ + public pages: google.cloud.dialogflow.cx.v3beta1.IPage[]; - /** ImportFlowRequest flow. */ - public flow?: ("flowUri"|"flowContent"); + /** ListPagesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ImportFlowRequest instance using the specified properties. + * Creates a new ListPagesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFlowRequest instance + * @returns ListPagesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest): google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; /** - * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. - * @param message ImportFlowRequest message or plain object to encode + * 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.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. - * @param message ImportFlowRequest message or plain object to encode + * 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.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer. + * 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 ImportFlowRequest + * @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.ImportFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFlowRequest + * @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.ImportFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; /** - * Verifies an ImportFlowRequest message. + * 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); /** - * Creates an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFlowRequest + * @returns ListPagesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; /** - * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. - * @param message ImportFlowRequest + * 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.ImportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFlowRequest to JSON. + * Converts this ListPagesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFlowRequest + * Gets the default type url for ListPagesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ImportFlowRequest { - - /** ImportOption enum. */ - enum ImportOption { - IMPORT_OPTION_UNSPECIFIED = 0, - KEEP = 1, - FALLBACK = 2 - } - } + /** Properties of a GetPageRequest. */ + interface IGetPageRequest { - /** Properties of a FlowImportStrategy. */ - interface IFlowImportStrategy { + /** GetPageRequest name */ + name?: (string|null); - /** FlowImportStrategy globalImportStrategy */ - globalImportStrategy?: (google.cloud.dialogflow.cx.v3beta1.ImportStrategy|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportStrategy|null); + /** GetPageRequest languageCode */ + languageCode?: (string|null); } - /** Represents a FlowImportStrategy. */ - class FlowImportStrategy implements IFlowImportStrategy { + /** Represents a GetPageRequest. */ + class GetPageRequest implements IGetPageRequest { /** - * Constructs a new FlowImportStrategy. + * Constructs a new GetPageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest); - /** FlowImportStrategy globalImportStrategy. */ - public globalImportStrategy: (google.cloud.dialogflow.cx.v3beta1.ImportStrategy|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportStrategy); + /** GetPageRequest name. */ + public name: string; + + /** GetPageRequest languageCode. */ + public languageCode: string; /** - * Creates a new FlowImportStrategy instance using the specified properties. + * Creates a new GetPageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FlowImportStrategy instance + * @returns GetPageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy): google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; /** - * Encodes the specified FlowImportStrategy message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify|verify} messages. - * @param message FlowImportStrategy message or plain object to encode + * 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.IFlowImportStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FlowImportStrategy message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify|verify} messages. - * @param message FlowImportStrategy message or plain object to encode + * 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.IFlowImportStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FlowImportStrategy message from the specified reader or buffer. + * 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 FlowImportStrategy + * @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.FlowImportStrategy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; /** - * Decodes a FlowImportStrategy message from the specified reader or buffer, length delimited. + * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FlowImportStrategy + * @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.FlowImportStrategy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; /** - * Verifies a FlowImportStrategy message. + * 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 FlowImportStrategy message from a plain object. Also converts values to their respective internal types. + * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FlowImportStrategy + * @returns GetPageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; /** - * Creates a plain object from a FlowImportStrategy message. Also converts values to other types if specified. - * @param message FlowImportStrategy + * 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.FlowImportStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetPageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FlowImportStrategy to JSON. + * Converts this GetPageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FlowImportStrategy + * Gets the default type url for GetPageRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportFlowResponse. */ - interface IImportFlowResponse { + /** Properties of a CreatePageRequest. */ + interface ICreatePageRequest { - /** ImportFlowResponse flow */ - flow?: (string|null); + /** CreatePageRequest parent */ + parent?: (string|null); + + /** CreatePageRequest page */ + page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** CreatePageRequest languageCode */ + languageCode?: (string|null); } - /** Represents an ImportFlowResponse. */ - class ImportFlowResponse implements IImportFlowResponse { + /** Represents a CreatePageRequest. */ + class CreatePageRequest implements ICreatePageRequest { /** - * Constructs a new ImportFlowResponse. + * Constructs a new CreatePageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest); - /** ImportFlowResponse flow. */ - public flow: string; + /** CreatePageRequest parent. */ + public parent: string; + + /** CreatePageRequest page. */ + public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** CreatePageRequest languageCode. */ + public languageCode: string; /** - * Creates a new ImportFlowResponse instance using the specified properties. + * Creates a new CreatePageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFlowResponse instance + * @returns CreatePageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse): google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; /** - * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. - * @param message ImportFlowResponse 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.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. - * @param message ImportFlowResponse 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.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFlowResponse 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 ImportFlowResponse + * @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.ImportFlowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; /** - * Decodes an ImportFlowResponse 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 ImportFlowResponse + * @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.ImportFlowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; /** - * Verifies an ImportFlowResponse 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 an ImportFlowResponse 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 ImportFlowResponse + * @returns CreatePageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; /** - * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. - * @param message ImportFlowResponse + * 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.ImportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFlowResponse to JSON. + * Converts this CreatePageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFlowResponse + * Gets the default type url for CreatePageRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFlowRequest. */ - interface IExportFlowRequest { + /** Properties of an UpdatePageRequest. */ + interface IUpdatePageRequest { - /** ExportFlowRequest name */ - name?: (string|null); + /** UpdatePageRequest page */ + page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** ExportFlowRequest flowUri */ - flowUri?: (string|null); + /** UpdatePageRequest languageCode */ + languageCode?: (string|null); - /** ExportFlowRequest includeReferencedFlows */ - includeReferencedFlows?: (boolean|null); + /** UpdatePageRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an ExportFlowRequest. */ - class ExportFlowRequest implements IExportFlowRequest { + /** Represents an UpdatePageRequest. */ + class UpdatePageRequest implements IUpdatePageRequest { /** - * Constructs a new ExportFlowRequest. + * Constructs a new UpdatePageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest); - /** ExportFlowRequest name. */ - public name: string; + /** UpdatePageRequest page. */ + public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** ExportFlowRequest flowUri. */ - public flowUri: string; + /** UpdatePageRequest languageCode. */ + public languageCode: string; - /** ExportFlowRequest includeReferencedFlows. */ - public includeReferencedFlows: boolean; + /** UpdatePageRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ExportFlowRequest instance using the specified properties. + * Creates a new UpdatePageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFlowRequest instance + * @returns UpdatePageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; /** - * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. - * @param message ExportFlowRequest 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.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. - * @param message ExportFlowRequest 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.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFlowRequest 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 ExportFlowRequest + * @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.ExportFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; /** - * Decodes an ExportFlowRequest 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 ExportFlowRequest + * @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.ExportFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; /** - * Verifies an ExportFlowRequest 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 an ExportFlowRequest 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 ExportFlowRequest + * @returns UpdatePageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; /** - * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. - * @param message ExportFlowRequest + * 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.ExportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFlowRequest to JSON. + * Converts this UpdatePageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFlowRequest + * Gets the default type url for UpdatePageRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFlowResponse. */ - interface IExportFlowResponse { + /** Properties of a DeletePageRequest. */ + interface IDeletePageRequest { - /** ExportFlowResponse flowUri */ - flowUri?: (string|null); + /** DeletePageRequest name */ + name?: (string|null); - /** ExportFlowResponse flowContent */ - flowContent?: (Uint8Array|string|null); + /** DeletePageRequest force */ + force?: (boolean|null); } - /** Represents an ExportFlowResponse. */ - class ExportFlowResponse implements IExportFlowResponse { + /** Represents a DeletePageRequest. */ + class DeletePageRequest implements IDeletePageRequest { /** - * Constructs a new ExportFlowResponse. + * Constructs a new DeletePageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse); - - /** ExportFlowResponse flowUri. */ - public flowUri?: (string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest); - /** ExportFlowResponse flowContent. */ - public flowContent?: (Uint8Array|string|null); + /** DeletePageRequest name. */ + public name: string; - /** ExportFlowResponse flow. */ - public flow?: ("flowUri"|"flowContent"); + /** DeletePageRequest force. */ + public force: boolean; /** - * Creates a new ExportFlowResponse instance using the specified properties. + * Creates a new DeletePageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFlowResponse instance + * @returns DeletePageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; /** - * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. - * @param message ExportFlowResponse message or plain object to encode + * 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.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. - * @param message ExportFlowResponse message or plain object to encode + * 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.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer. + * 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 ExportFlowResponse + * @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.ExportFlowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFlowResponse + * @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.ExportFlowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; /** - * Verifies an ExportFlowResponse message. + * 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 an ExportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePageRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFlowResponse + * @returns DeletePageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; /** - * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. - * @param message ExportFlowResponse + * 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.ExportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFlowResponse to JSON. + * Converts this DeletePageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFlowResponse + * Gets the default type url for DeletePageRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** ImportStrategy enum. */ - enum ImportStrategy { - IMPORT_STRATEGY_UNSPECIFIED = 0, - IMPORT_STRATEGY_CREATE_NEW = 1, - IMPORT_STRATEGY_REPLACE = 2, - IMPORT_STRATEGY_KEEP = 3, - IMPORT_STRATEGY_MERGE = 4, - IMPORT_STRATEGY_THROW_ERROR = 5 + /** Properties of a KnowledgeConnectorSettings. */ + interface IKnowledgeConnectorSettings { + + /** KnowledgeConnectorSettings enabled */ + enabled?: (boolean|null); + + /** KnowledgeConnectorSettings triggerFulfillment */ + triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** KnowledgeConnectorSettings targetPage */ + targetPage?: (string|null); + + /** KnowledgeConnectorSettings targetFlow */ + targetFlow?: (string|null); + + /** KnowledgeConnectorSettings dataStoreConnections */ + dataStoreConnections?: (google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection[]|null); } - /** Represents a Pages */ - class Pages extends $protobuf.rpc.Service { + /** Represents a KnowledgeConnectorSettings. */ + class KnowledgeConnectorSettings implements IKnowledgeConnectorSettings { /** - * 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 + * Constructs a new KnowledgeConnectorSettings. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings); - /** - * 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 create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Pages; + /** KnowledgeConnectorSettings enabled. */ + public enabled: boolean; - /** - * Calls ListPages. - * @param request ListPagesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPagesResponse - */ - public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback): void; + /** KnowledgeConnectorSettings triggerFulfillment. */ + public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); - /** - * Calls ListPages. - * @param request ListPagesRequest message or plain object - * @returns Promise - */ - public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): Promise; + /** KnowledgeConnectorSettings targetPage. */ + public targetPage?: (string|null); - /** - * Calls GetPage. - * @param request GetPageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page - */ - public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback): void; + /** KnowledgeConnectorSettings targetFlow. */ + public targetFlow?: (string|null); - /** - * Calls GetPage. - * @param request GetPageRequest message or plain object - * @returns Promise - */ - public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): Promise; + /** KnowledgeConnectorSettings dataStoreConnections. */ + public dataStoreConnections: google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection[]; - /** - * Calls CreatePage. - * @param request CreatePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page - */ - public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback): void; + /** KnowledgeConnectorSettings target. */ + public target?: ("targetPage"|"targetFlow"); /** - * Calls CreatePage. - * @param request CreatePageRequest message or plain object - * @returns Promise + * Creates a new KnowledgeConnectorSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns KnowledgeConnectorSettings instance */ - public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings): google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings; /** - * Calls UpdatePage. - * @param request UpdatePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Encodes the specified KnowledgeConnectorSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify|verify} messages. + * @param message KnowledgeConnectorSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdatePage. - * @param request UpdatePageRequest message or plain object - * @returns Promise + * Encodes the specified KnowledgeConnectorSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify|verify} messages. + * @param message KnowledgeConnectorSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeletePage. - * @param request DeletePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KnowledgeConnectorSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings; /** - * Calls DeletePage. - * @param request DeletePageRequest message or plain object - * @returns Promise + * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KnowledgeConnectorSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): Promise; - } - - namespace Pages { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|listPages}. - * @param error Error, if any - * @param [response] ListPagesResponse + * Verifies a KnowledgeConnectorSettings message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|getPage}. - * @param error Error, if any - * @param [response] Page + * Creates a KnowledgeConnectorSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KnowledgeConnectorSettings */ - type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|createPage}. - * @param error Error, if any - * @param [response] Page + * Creates a plain object from a KnowledgeConnectorSettings message. Also converts values to other types if specified. + * @param message KnowledgeConnectorSettings + * @param [options] Conversion options + * @returns Plain object */ - type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|updatePage}. - * @param error Error, if any - * @param [response] Page + * Converts this KnowledgeConnectorSettings to JSON. + * @returns JSON object */ - type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|deletePage}. - * @param error Error, if any - * @param [response] Empty + * Gets the default type url for KnowledgeConnectorSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type DeletePageCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Page. */ - interface IPage { - - /** Page name */ - name?: (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); + /** Properties of a DataStoreConnection. */ + interface IDataStoreConnection { - /** Page eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + /** DataStoreConnection dataStoreType */ + dataStoreType?: (google.cloud.dialogflow.cx.v3beta1.DataStoreType|keyof typeof google.cloud.dialogflow.cx.v3beta1.DataStoreType|null); - /** Page knowledgeConnectorSettings */ - knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null); + /** DataStoreConnection dataStore */ + dataStore?: (string|null); } - /** Represents a Page. */ - class Page implements IPage { + /** Represents a DataStoreConnection. */ + class DataStoreConnection implements IDataStoreConnection { /** - * Constructs a new Page. + * Constructs a new DataStoreConnection. * @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); - - /** Page transitionRouteGroups. */ - public transitionRouteGroups: string[]; - - /** Page transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection); - /** Page eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + /** DataStoreConnection dataStoreType. */ + public dataStoreType: (google.cloud.dialogflow.cx.v3beta1.DataStoreType|keyof typeof google.cloud.dialogflow.cx.v3beta1.DataStoreType); - /** Page knowledgeConnectorSettings. */ - public knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null); + /** DataStoreConnection dataStore. */ + public dataStore: string; /** - * Creates a new Page instance using the specified properties. + * Creates a new DataStoreConnection instance using the specified properties. * @param [properties] Properties to set - * @returns Page instance + * @returns DataStoreConnection 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.IDataStoreConnection): google.cloud.dialogflow.cx.v3beta1.DataStoreConnection; /** - * 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 DataStoreConnection message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify|verify} messages. + * @param message DataStoreConnection 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.IDataStoreConnection, 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 DataStoreConnection message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify|verify} messages. + * @param message DataStoreConnection 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.IDataStoreConnection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Page message from the specified reader or buffer. + * Decodes a DataStoreConnection 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 DataStoreConnection * @throws {Error} If the payload is not a reader or 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.DataStoreConnection; /** - * Decodes a Page message from the specified reader or buffer, length delimited. + * Decodes a DataStoreConnection message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Page + * @returns DataStoreConnection * @throws {Error} If the payload is not a 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.DataStoreConnection; /** - * Verifies a Page message. + * Verifies a DataStoreConnection message. * @param message Plain 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 DataStoreConnection message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Page + * @returns DataStoreConnection */ - 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.DataStoreConnection; /** - * 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 DataStoreConnection message. Also converts values to other types if specified. + * @param message DataStoreConnection * @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.DataStoreConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Page to JSON. + * Converts this DataStoreConnection to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Page + * Gets the default type url for DataStoreConnection * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Form. */ - interface IForm { + /** DataStoreType enum. */ + enum DataStoreType { + DATA_STORE_TYPE_UNSPECIFIED = 0, + PUBLIC_WEB = 1, + UNSTRUCTURED = 2, + STRUCTURED = 3 + } - /** Form parameters */ - parameters?: (google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]|null); + /** Properties of a Fulfillment. */ + interface IFulfillment { + + /** Fulfillment messages */ + messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); + + /** Fulfillment webhook */ + webhook?: (string|null); + + /** Fulfillment returnPartialResponses */ + returnPartialResponses?: (boolean|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); + + /** Fulfillment advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + + /** Fulfillment enableGenerativeFallback */ + enableGenerativeFallback?: (boolean|null); } - /** Represents a Form. */ - class Form implements IForm { + /** Represents a Fulfillment. */ + class Fulfillment implements IFulfillment { /** - * Constructs a new Form. + * Constructs a new Fulfillment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IForm); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillment); - /** Form parameters. */ - public parameters: google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]; + /** Fulfillment messages. */ + public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; + + /** Fulfillment webhook. */ + public webhook: string; + + /** Fulfillment returnPartialResponses. */ + public returnPartialResponses: boolean; + + /** 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[]; + + /** Fulfillment advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + + /** Fulfillment enableGenerativeFallback. */ + public enableGenerativeFallback: boolean; /** - * Creates a new Form instance using the specified properties. + * Creates a new Fulfillment instance using the specified properties. * @param [properties] Properties to set - * @returns Form instance + * @returns Fulfillment 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.IFulfillment): google.cloud.dialogflow.cx.v3beta1.Fulfillment; /** - * 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 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.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillment, 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 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.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Form message from the specified reader or buffer. + * 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 Form + * @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.Form; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment; /** - * Decodes a Form message from the specified reader or buffer, length delimited. + * Decodes a Fulfillment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Form + * @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.Form; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment; /** - * Verifies a Form message. + * 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 Form message from a plain object. Also converts values to their respective internal types. + * Creates a Fulfillment message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Form + * @returns Fulfillment */ - 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.Fulfillment; /** - * Creates a plain object from a Form message. Also converts values to other types if specified. - * @param message Form + * 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.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Form to JSON. + * Converts this Fulfillment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Form + * Gets the default type url for Fulfillment * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Form { + namespace Fulfillment { - /** Properties of a Parameter. */ - interface IParameter { + /** Properties of a SetParameterAction. */ + interface ISetParameterAction { - /** Parameter displayName */ - displayName?: (string|null); + /** 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); - /** Parameter required */ - required?: (boolean|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; - /** Parameter entityType */ - entityType?: (string|null); + /** + * 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 }; - /** Parameter isList */ - isList?: (boolean|null); + /** + * Converts this SetParameterAction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Parameter fillBehavior */ - fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + /** + * Gets the default type url for SetParameterAction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Parameter defaultValue */ - defaultValue?: (google.protobuf.IValue|null); + /** Properties of a ConditionalCases. */ + interface IConditionalCases { - /** Parameter redact */ - redact?: (boolean|null); + /** ConditionalCases cases */ + cases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase[]|null); } - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** Represents a ConditionalCases. */ + class ConditionalCases implements IConditionalCases { /** - * Constructs a new Parameter. + * Constructs a new ConditionalCases. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter); - - /** Parameter displayName. */ - public displayName: string; - - /** Parameter required. */ - public required: boolean; - - /** 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); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases); - /** Parameter redact. */ - public redact: boolean; + /** ConditionalCases cases. */ + public cases: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase[]; /** - * Creates a new Parameter instance using the specified properties. + * Creates a new ConditionalCases instance using the specified properties. * @param [properties] Properties to set - * @returns Parameter instance + * @returns ConditionalCases instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; /** - * 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 + * 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.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases, 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 + * 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.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Parameter message from the specified reader or buffer. + * 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 Parameter + * @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.Form.Parameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. + * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Parameter + * @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.Form.Parameter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; /** - * Verifies a Parameter message. + * 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 Parameter message from a plain object. Also converts values to their respective internal types. + * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Parameter + * @returns ConditionalCases */ - 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.ConditionalCases; /** - * 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 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.Form.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Parameter to JSON. + * Converts this ConditionalCases to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Parameter + * Gets the default type url for ConditionalCases * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Parameter { + namespace ConditionalCases { - /** Properties of a FillBehavior. */ - interface IFillBehavior { + /** Properties of a Case. */ + interface ICase { - /** FillBehavior initialPromptFulfillment */ - initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** Case condition */ + condition?: (string|null); - /** FillBehavior repromptEventHandlers */ - repromptEventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|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 }; /** - * Gets the default type url for FillBehavior + * Gets the default type url for Case * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - } - - /** Properties of an EventHandler. */ - interface IEventHandler { - - /** EventHandler name */ - name?: (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 an EventHandler. */ - class EventHandler implements IEventHandler { - - /** - * Constructs a new EventHandler. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler); - - /** EventHandler name. */ - public name: string; - - /** EventHandler event. */ - public event: string; - - /** EventHandler triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); - - /** EventHandler targetPage. */ - public targetPage?: (string|null); - - /** EventHandler targetFlow. */ - public targetFlow?: (string|null); - - /** EventHandler target. */ - public target?: ("targetPage"|"targetFlow"); - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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 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 }; - - /** - * Gets the default type url for EventHandler - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TransitionRoute. */ - interface ITransitionRoute { - - /** TransitionRoute name */ - name?: (string|null); - - /** TransitionRoute description */ - description?: (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 TransitionRoute. */ - class TransitionRoute implements ITransitionRoute { - - /** - * Constructs a new TransitionRoute. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute); - - /** TransitionRoute name. */ - public name: string; - /** TransitionRoute description. */ - public description: string; - - /** TransitionRoute intent. */ - public intent: string; + namespace Case { - /** TransitionRoute condition. */ - public condition: string; + /** Properties of a CaseContent. */ + interface ICaseContent { - /** TransitionRoute triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** CaseContent message */ + message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); - /** TransitionRoute targetPage. */ - public targetPage?: (string|null); + /** CaseContent additionalCases */ + additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); + } - /** TransitionRoute targetFlow. */ - public targetFlow?: (string|null); + /** Represents a CaseContent. */ + class CaseContent implements ICaseContent { - /** TransitionRoute target. */ - public target?: ("targetPage"|"targetFlow"); + /** + * Constructs a new CaseContent. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent); - /** - * Creates a new TransitionRoute instance using the specified properties. - * @param [properties] Properties to set - * @returns TransitionRoute instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + /** CaseContent message. */ + public message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); - /** - * 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.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + /** CaseContent additionalCases. */ + public additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); - /** - * 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.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + /** CaseContent casesOrMessage. */ + public casesOrMessage?: ("message"|"additionalCases"); - /** - * 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 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.TransitionRoute; + /** + * 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; - /** - * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.TransitionRoute; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransitionRoute - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + /** + * 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; - /** - * 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.TransitionRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this TransitionRoute to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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); - /** - * Gets the default type url for TransitionRoute - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * 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; - /** Properties of a ListPagesRequest. */ - interface IListPagesRequest { + /** + * 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 }; - /** ListPagesRequest parent */ - parent?: (string|null); + /** + * Converts this CaseContent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListPagesRequest languageCode */ - languageCode?: (string|null); + /** + * Gets the default type url for CaseContent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + } - /** ListPagesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ResponseMessage. */ + interface IResponseMessage { - /** ListPagesRequest pageToken */ - pageToken?: (string|null); - } + /** ResponseMessage text */ + text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); - /** Represents a ListPagesRequest. */ - class ListPagesRequest implements IListPagesRequest { + /** ResponseMessage payload */ + payload?: (google.protobuf.IStruct|null); - /** - * Constructs a new ListPagesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest); + /** ResponseMessage conversationSuccess */ + conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); - /** ListPagesRequest parent. */ - public parent: string; + /** ResponseMessage outputAudioText */ + outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); - /** ListPagesRequest languageCode. */ - public languageCode: string; + /** ResponseMessage liveAgentHandoff */ + liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); - /** ListPagesRequest pageSize. */ - public pageSize: number; + /** ResponseMessage endInteraction */ + endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); - /** ListPagesRequest pageToken. */ - public pageToken: string; + /** ResponseMessage playAudio */ + playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); - /** - * 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; + /** ResponseMessage mixedAudio */ + mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); - /** - * 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; + /** ResponseMessage telephonyTransferCall */ + telephonyTransferCall?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null); - /** - * 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; + /** ResponseMessage knowledgeInfoCard */ + knowledgeInfoCard?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard|null); - /** - * 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; + /** ResponseMessage channel */ + channel?: (string|null); + } - /** - * 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; + /** Represents a ResponseMessage. */ + class ResponseMessage implements IResponseMessage { /** - * Verifies a ListPagesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Constructs a new ResponseMessage. + * @param [properties] Properties to set */ - public static verify(message: { [k: string]: any }): (string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage); - /** - * 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; + /** ResponseMessage text. */ + public text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); - /** - * 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 }; + /** ResponseMessage payload. */ + public payload?: (google.protobuf.IStruct|null); - /** - * Converts this ListPagesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ResponseMessage conversationSuccess. */ + public conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); - /** - * Gets the default type url for ListPagesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ResponseMessage outputAudioText. */ + public outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); - /** Properties of a ListPagesResponse. */ - interface IListPagesResponse { + /** ResponseMessage liveAgentHandoff. */ + public liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); - /** ListPagesResponse pages */ - pages?: (google.cloud.dialogflow.cx.v3beta1.IPage[]|null); + /** ResponseMessage endInteraction. */ + public endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); - /** ListPagesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** ResponseMessage playAudio. */ + public playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); - /** Represents a ListPagesResponse. */ - class ListPagesResponse implements IListPagesResponse { + /** ResponseMessage mixedAudio. */ + public mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); - /** - * Constructs a new ListPagesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse); + /** ResponseMessage telephonyTransferCall. */ + public telephonyTransferCall?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null); - /** ListPagesResponse pages. */ - public pages: google.cloud.dialogflow.cx.v3beta1.IPage[]; + /** ResponseMessage knowledgeInfoCard. */ + public knowledgeInfoCard?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard|null); - /** ListPagesResponse nextPageToken. */ - public nextPageToken: string; + /** ResponseMessage channel. */ + public channel: string; + + /** ResponseMessage message. */ + public message?: ("text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"|"knowledgeInfoCard"); /** - * Creates a new ListPagesResponse instance using the specified properties. + * Creates a new ResponseMessage instance using the specified properties. * @param [properties] Properties to set - * @returns ListPagesResponse instance + * @returns ResponseMessage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; /** - * 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 + * 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.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPagesResponse 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 ListPagesResponse + * @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.ListPagesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; /** - * Decodes a ListPagesResponse 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 ListPagesResponse + * @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.ListPagesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; /** - * Verifies a ListPagesResponse 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 ListPagesResponse 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 ListPagesResponse + * @returns ResponseMessage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; /** - * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. - * @param message ListPagesResponse + * 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.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPagesResponse to JSON. + * Converts this ResponseMessage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPagesResponse + * Gets the default type url for ResponseMessage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPageRequest. */ - interface IGetPageRequest { - - /** GetPageRequest name */ - name?: (string|null); - - /** GetPageRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a GetPageRequest. */ - class GetPageRequest implements IGetPageRequest { - - /** - * 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; + namespace ResponseMessage { - /** - * 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; + /** Properties of a Text. */ + interface IText { - /** - * 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; + /** Text text */ + text?: (string[]|null); - /** - * 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; + /** Text allowPlaybackInterruption */ + allowPlaybackInterruption?: (boolean|null); + } - /** - * 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); + /** Represents a Text. */ + class Text implements IText { - /** - * 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; + /** + * Constructs a new Text. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText); - /** - * 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 }; + /** Text text. */ + public text: string[]; - /** - * Converts this GetPageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Text allowPlaybackInterruption. */ + public allowPlaybackInterruption: boolean; - /** - * Gets the default type url for GetPageRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): 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; - /** Properties of a CreatePageRequest. */ - interface ICreatePageRequest { + /** + * 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; - /** CreatePageRequest parent */ - parent?: (string|null); + /** + * 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; - /** CreatePageRequest page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** + * 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; - /** CreatePageRequest languageCode */ - languageCode?: (string|null); - } + /** + * 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; - /** Represents a CreatePageRequest. */ - class CreatePageRequest implements ICreatePageRequest { + /** + * 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); - /** - * Constructs a new CreatePageRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest); + /** + * 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; - /** CreatePageRequest parent. */ - public parent: string; + /** + * 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 }; - /** CreatePageRequest page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** + * Converts this Text to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CreatePageRequest languageCode. */ - public languageCode: string; + /** + * Gets the default type url for Text + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): 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; + /** Properties of a LiveAgentHandoff. */ + interface ILiveAgentHandoff { - /** - * 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; + /** LiveAgentHandoff metadata */ + metadata?: (google.protobuf.IStruct|null); + } - /** - * 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; + /** Represents a LiveAgentHandoff. */ + class LiveAgentHandoff implements ILiveAgentHandoff { - /** - * 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; + /** + * Constructs a new LiveAgentHandoff. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff); - /** - * 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; + /** LiveAgentHandoff metadata. */ + public metadata?: (google.protobuf.IStruct|null); - /** - * 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 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this CreatePageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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; - /** - * Gets the default type url for CreatePageRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * 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; - /** Properties of an UpdatePageRequest. */ - interface IUpdatePageRequest { + /** + * 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); - /** UpdatePageRequest page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|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; - /** UpdatePageRequest languageCode */ - languageCode?: (string|null); + /** + * 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 }; - /** UpdatePageRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** + * Converts this LiveAgentHandoff to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents an UpdatePageRequest. */ - class UpdatePageRequest implements IUpdatePageRequest { + /** + * Gets the default type url for LiveAgentHandoff + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new UpdatePageRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest); + /** Properties of a ConversationSuccess. */ + interface IConversationSuccess { - /** UpdatePageRequest page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** ConversationSuccess metadata */ + metadata?: (google.protobuf.IStruct|null); + } - /** UpdatePageRequest languageCode. */ - public languageCode: string; + /** Represents a ConversationSuccess. */ + class ConversationSuccess implements IConversationSuccess { - /** UpdatePageRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * Constructs a new ConversationSuccess. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess); - /** - * 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; + /** ConversationSuccess metadata. */ + public metadata?: (google.protobuf.IStruct|null); - /** - * 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; + /** + * 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 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; + /** + * 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; - /** - * 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; + /** + * 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 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; + /** + * Decodes a ConversationSuccess message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConversationSuccess + * @throws {Error} If the payload is not a reader or 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.ConversationSuccess; - /** - * 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); + /** + * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConversationSuccess + * @throws {Error} If the payload is not a 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.ConversationSuccess; - /** - * 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; + /** + * Verifies a ConversationSuccess message. + * @param message Plain 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 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 }; + /** + * Creates a ConversationSuccess message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConversationSuccess + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess; - /** - * Converts this UpdatePageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. + * @param message ConversationSuccess + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for UpdatePageRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this ConversationSuccess to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a DeletePageRequest. */ - interface IDeletePageRequest { + /** + * Gets the default type url for ConversationSuccess + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeletePageRequest name */ - name?: (string|null); + /** Properties of an OutputAudioText. */ + interface IOutputAudioText { - /** DeletePageRequest force */ - force?: (boolean|null); - } + /** OutputAudioText text */ + text?: (string|null); - /** Represents a DeletePageRequest. */ - class DeletePageRequest implements IDeletePageRequest { + /** OutputAudioText ssml */ + ssml?: (string|null); - /** - * Constructs a new DeletePageRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest); + /** OutputAudioText allowPlaybackInterruption */ + allowPlaybackInterruption?: (boolean|null); + } - /** DeletePageRequest name. */ - public name: string; + /** Represents an OutputAudioText. */ + class OutputAudioText implements IOutputAudioText { - /** DeletePageRequest force. */ - public force: boolean; + /** + * Constructs a new OutputAudioText. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText); - /** - * 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; + /** OutputAudioText text. */ + public text?: (string|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; + /** OutputAudioText ssml. */ + public ssml?: (string|null); - /** - * 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; + /** OutputAudioText allowPlaybackInterruption. */ + public allowPlaybackInterruption: boolean; - /** - * 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; + /** OutputAudioText source. */ + public source?: ("text"|"ssml"); - /** - * 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; + /** + * Creates a new OutputAudioText instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputAudioText instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText; - /** - * 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); + /** + * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * @param message OutputAudioText message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * @param message OutputAudioText message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 }; + /** + * Decodes an OutputAudioText message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputAudioText + * @throws {Error} If the payload is not a reader or 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.OutputAudioText; - /** - * Converts this DeletePageRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputAudioText + * @throws {Error} If the payload is not a 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.OutputAudioText; - /** - * Gets the default type url for DeletePageRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies an OutputAudioText message. + * @param message 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 KnowledgeConnectorSettings. */ - interface IKnowledgeConnectorSettings { + /** + * Creates an OutputAudioText message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputAudioText + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText; - /** KnowledgeConnectorSettings enabled */ - enabled?: (boolean|null); + /** + * Creates a plain object from an OutputAudioText message. Also converts values to other types if specified. + * @param message OutputAudioText + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** KnowledgeConnectorSettings triggerFulfillment */ - triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** + * Converts this OutputAudioText to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** KnowledgeConnectorSettings targetPage */ - targetPage?: (string|null); + /** + * Gets the default type url for OutputAudioText + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** KnowledgeConnectorSettings targetFlow */ - targetFlow?: (string|null); + /** Properties of an EndInteraction. */ + interface IEndInteraction { + } - /** KnowledgeConnectorSettings dataStoreConnections */ - dataStoreConnections?: (google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection[]|null); - } + /** Represents an EndInteraction. */ + class EndInteraction implements IEndInteraction { - /** Represents a KnowledgeConnectorSettings. */ - class KnowledgeConnectorSettings implements IKnowledgeConnectorSettings { + /** + * Constructs a new EndInteraction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction); - /** - * Constructs a new KnowledgeConnectorSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings); + /** + * Creates a new EndInteraction instance using the specified properties. + * @param [properties] Properties to set + * @returns EndInteraction instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction; - /** KnowledgeConnectorSettings enabled. */ - public enabled: boolean; + /** + * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. + * @param message EndInteraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction, writer?: $protobuf.Writer): $protobuf.Writer; - /** KnowledgeConnectorSettings triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** + * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. + * @param message EndInteraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction, writer?: $protobuf.Writer): $protobuf.Writer; - /** KnowledgeConnectorSettings targetPage. */ - public targetPage?: (string|null); + /** + * Decodes an EndInteraction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EndInteraction + * @throws {Error} If the payload is not a reader or 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.EndInteraction; - /** KnowledgeConnectorSettings targetFlow. */ - public targetFlow?: (string|null); + /** + * Decodes an EndInteraction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EndInteraction + * @throws {Error} If the payload is not a 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.EndInteraction; - /** KnowledgeConnectorSettings dataStoreConnections. */ - public dataStoreConnections: google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection[]; + /** + * Verifies an EndInteraction message. + * @param message Plain 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 EndInteraction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EndInteraction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction; - /** KnowledgeConnectorSettings target. */ - public target?: ("targetPage"|"targetFlow"); + /** + * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. + * @param message EndInteraction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new KnowledgeConnectorSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns KnowledgeConnectorSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings): google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings; + /** + * Converts this EndInteraction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified KnowledgeConnectorSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify|verify} messages. - * @param message KnowledgeConnectorSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for EndInteraction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified KnowledgeConnectorSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify|verify} messages. - * @param message KnowledgeConnectorSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a PlayAudio. */ + interface IPlayAudio { - /** - * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KnowledgeConnectorSettings - * @throws {Error} If the payload is not a reader or 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.KnowledgeConnectorSettings; + /** PlayAudio audioUri */ + audioUri?: (string|null); - /** - * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KnowledgeConnectorSettings - * @throws {Error} If the payload is not a 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.KnowledgeConnectorSettings; + /** PlayAudio allowPlaybackInterruption */ + allowPlaybackInterruption?: (boolean|null); + } - /** - * Verifies a KnowledgeConnectorSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Represents a PlayAudio. */ + class PlayAudio implements IPlayAudio { - /** - * Creates a KnowledgeConnectorSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KnowledgeConnectorSettings - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings; + /** + * Constructs a new PlayAudio. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio); - /** - * Creates a plain object from a KnowledgeConnectorSettings message. Also converts values to other types if specified. - * @param message KnowledgeConnectorSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PlayAudio audioUri. */ + public audioUri: string; - /** - * Converts this KnowledgeConnectorSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PlayAudio allowPlaybackInterruption. */ + public allowPlaybackInterruption: boolean; - /** - * Gets the default type url for KnowledgeConnectorSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new PlayAudio instance using the specified properties. + * @param [properties] Properties to set + * @returns PlayAudio instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio; - /** Properties of a DataStoreConnection. */ - interface IDataStoreConnection { + /** + * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. + * @param message PlayAudio message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio, writer?: $protobuf.Writer): $protobuf.Writer; - /** DataStoreConnection dataStoreType */ - dataStoreType?: (google.cloud.dialogflow.cx.v3beta1.DataStoreType|keyof typeof google.cloud.dialogflow.cx.v3beta1.DataStoreType|null); + /** + * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. + * @param message PlayAudio message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio, writer?: $protobuf.Writer): $protobuf.Writer; - /** DataStoreConnection dataStore */ - dataStore?: (string|null); - } + /** + * Decodes a PlayAudio message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PlayAudio + * @throws {Error} If the payload is not a reader or 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.PlayAudio; - /** Represents a DataStoreConnection. */ - class DataStoreConnection implements IDataStoreConnection { + /** + * Decodes a PlayAudio message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PlayAudio + * @throws {Error} If the payload is not a 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.PlayAudio; - /** - * Constructs a new DataStoreConnection. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection); + /** + * Verifies a PlayAudio message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** DataStoreConnection dataStoreType. */ - public dataStoreType: (google.cloud.dialogflow.cx.v3beta1.DataStoreType|keyof typeof google.cloud.dialogflow.cx.v3beta1.DataStoreType); + /** + * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PlayAudio + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio; - /** DataStoreConnection dataStore. */ - public dataStore: string; + /** + * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. + * @param message PlayAudio + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new DataStoreConnection instance using the specified properties. - * @param [properties] Properties to set - * @returns DataStoreConnection instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection): google.cloud.dialogflow.cx.v3beta1.DataStoreConnection; + /** + * Converts this PlayAudio to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified DataStoreConnection message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify|verify} messages. - * @param message DataStoreConnection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for PlayAudio + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified DataStoreConnection message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify|verify} messages. - * @param message DataStoreConnection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a MixedAudio. */ + interface IMixedAudio { - /** - * Decodes a DataStoreConnection message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataStoreConnection - * @throws {Error} If the payload is not a reader or 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.DataStoreConnection; + /** MixedAudio segments */ + segments?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment[]|null); + } - /** - * Decodes a DataStoreConnection message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DataStoreConnection - * @throws {Error} If the payload is not a 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.DataStoreConnection; + /** Represents a MixedAudio. */ + class MixedAudio implements IMixedAudio { - /** - * Verifies a DataStoreConnection message. - * @param message 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 MixedAudio. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio); - /** - * Creates a DataStoreConnection message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DataStoreConnection - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DataStoreConnection; + /** MixedAudio segments. */ + public segments: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment[]; - /** - * Creates a plain object from a DataStoreConnection message. Also converts values to other types if specified. - * @param message DataStoreConnection - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DataStoreConnection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new MixedAudio instance using the specified properties. + * @param [properties] Properties to set + * @returns MixedAudio instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio; - /** - * Converts this DataStoreConnection to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * @param message MixedAudio message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for DataStoreConnection - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * @param message MixedAudio message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio, writer?: $protobuf.Writer): $protobuf.Writer; - /** DataStoreType enum. */ - enum DataStoreType { - DATA_STORE_TYPE_UNSPECIFIED = 0, - PUBLIC_WEB = 1, - UNSTRUCTURED = 2, - STRUCTURED = 3 - } + /** + * Decodes a MixedAudio message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MixedAudio + * @throws {Error} If the payload is not a reader or 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.MixedAudio; - /** Properties of a Fulfillment. */ - interface IFulfillment { + /** + * Decodes a MixedAudio message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MixedAudio + * @throws {Error} If the payload is not a 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.MixedAudio; - /** Fulfillment messages */ - messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); + /** + * Verifies a MixedAudio message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Fulfillment webhook */ - webhook?: (string|null); + /** + * Creates a MixedAudio message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MixedAudio + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio; - /** Fulfillment returnPartialResponses */ - returnPartialResponses?: (boolean|null); + /** + * Creates a plain object from a MixedAudio message. Also converts values to other types if specified. + * @param message MixedAudio + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Fulfillment tag */ - tag?: (string|null); + /** + * Converts this MixedAudio to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Fulfillment setParameterActions */ - setParameterActions?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction[]|null); + /** + * Gets the default type url for MixedAudio + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Fulfillment conditionalCases */ - conditionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases[]|null); - } + namespace MixedAudio { - /** Represents a Fulfillment. */ - class Fulfillment implements IFulfillment { + /** Properties of a Segment. */ + interface ISegment { - /** - * Constructs a new Fulfillment. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillment); + /** Segment audio */ + audio?: (Uint8Array|string|null); - /** Fulfillment messages. */ - public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; + /** Segment uri */ + uri?: (string|null); - /** Fulfillment webhook. */ - public webhook: string; + /** Segment allowPlaybackInterruption */ + allowPlaybackInterruption?: (boolean|null); + } - /** Fulfillment returnPartialResponses. */ - public returnPartialResponses: boolean; + /** Represents a Segment. */ + class Segment implements ISegment { - /** Fulfillment tag. */ - public tag: string; + /** + * Constructs a new Segment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment); - /** Fulfillment setParameterActions. */ - public setParameterActions: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction[]; + /** Segment audio. */ + public audio?: (Uint8Array|string|null); - /** Fulfillment conditionalCases. */ - public conditionalCases: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases[]; + /** Segment uri. */ + public uri?: (string|null); - /** - * 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; + /** Segment allowPlaybackInterruption. */ + public allowPlaybackInterruption: boolean; - /** - * 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; + /** Segment content. */ + public content?: ("audio"|"uri"); - /** - * 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; + /** + * Creates a new Segment instance using the specified properties. + * @param [properties] Properties to set + * @returns Segment instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment; - /** - * 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; + /** + * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * @param message Segment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * @param message Segment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * Decodes a Segment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Segment + * @throws {Error} If the payload is not a reader or 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.MixedAudio.Segment; - /** - * 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; + /** + * Decodes a Segment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Segment + * @throws {Error} If the payload is not a 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.MixedAudio.Segment; - /** - * 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 }; + /** + * Verifies a Segment message. + * @param message 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 Fulfillment to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a Segment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Segment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment; - /** - * Gets the default type url for Fulfillment - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a Segment message. Also converts values to other types if specified. + * @param message Segment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment, options?: $protobuf.IConversionOptions): { [k: string]: any }; - namespace Fulfillment { + /** + * Converts this Segment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a SetParameterAction. */ - interface ISetParameterAction { + /** + * Gets the default type url for Segment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** SetParameterAction parameter */ - parameter?: (string|null); + /** Properties of a TelephonyTransferCall. */ + interface ITelephonyTransferCall { - /** SetParameterAction value */ - value?: (google.protobuf.IValue|null); + /** TelephonyTransferCall phoneNumber */ + phoneNumber?: (string|null); } - /** Represents a SetParameterAction. */ - class SetParameterAction implements ISetParameterAction { + /** Represents a TelephonyTransferCall. */ + class TelephonyTransferCall implements ITelephonyTransferCall { /** - * Constructs a new SetParameterAction. + * Constructs a new TelephonyTransferCall. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall); - /** SetParameterAction parameter. */ - public parameter: string; + /** TelephonyTransferCall phoneNumber. */ + public phoneNumber?: (string|null); - /** SetParameterAction value. */ - public value?: (google.protobuf.IValue|null); + /** TelephonyTransferCall endpoint. */ + public endpoint?: "phoneNumber"; /** - * Creates a new SetParameterAction instance using the specified properties. + * Creates a new TelephonyTransferCall instance using the specified properties. * @param [properties] Properties to set - * @returns SetParameterAction instance + * @returns TelephonyTransferCall instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall; /** - * 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 + * Encodes the specified TelephonyTransferCall message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * @param message TelephonyTransferCall 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; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall, 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 + * Encodes the specified TelephonyTransferCall message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * @param message TelephonyTransferCall 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetParameterAction message from the specified reader or buffer. + * Decodes a TelephonyTransferCall message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SetParameterAction + * @returns TelephonyTransferCall * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall; /** - * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. + * Decodes a TelephonyTransferCall message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetParameterAction + * @returns TelephonyTransferCall * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall; /** - * Verifies a SetParameterAction message. + * Verifies a TelephonyTransferCall message. * @param message Plain 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. + * Creates a TelephonyTransferCall message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetParameterAction + * @returns TelephonyTransferCall */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall; /** - * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. - * @param message SetParameterAction + * Creates a plain object from a TelephonyTransferCall message. Also converts values to other types if specified. + * @param message TelephonyTransferCall * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetParameterAction to JSON. + * Converts this TelephonyTransferCall to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SetParameterAction + * Gets the default type url for TelephonyTransferCall * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ConditionalCases. */ - interface IConditionalCases { - - /** ConditionalCases cases */ - cases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase[]|null); + /** Properties of a KnowledgeInfoCard. */ + interface IKnowledgeInfoCard { } - /** Represents a ConditionalCases. */ - class ConditionalCases implements IConditionalCases { + /** Represents a KnowledgeInfoCard. */ + class KnowledgeInfoCard implements IKnowledgeInfoCard { /** - * Constructs a new ConditionalCases. + * Constructs a new KnowledgeInfoCard. * @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[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard); /** - * Creates a new ConditionalCases instance using the specified properties. + * Creates a new KnowledgeInfoCard instance using the specified properties. * @param [properties] Properties to set - * @returns ConditionalCases instance + * @returns KnowledgeInfoCard instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard; /** - * 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 + * Encodes the specified KnowledgeInfoCard message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify|verify} messages. + * @param message KnowledgeInfoCard 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; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard, 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 + * Encodes the specified KnowledgeInfoCard message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify|verify} messages. + * @param message KnowledgeInfoCard 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConditionalCases message from the specified reader or buffer. + * Decodes a KnowledgeInfoCard message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConditionalCases + * @returns KnowledgeInfoCard * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard; /** - * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. + * Decodes a KnowledgeInfoCard message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConditionalCases + * @returns KnowledgeInfoCard * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard; /** - * Verifies a ConditionalCases message. + * Verifies a KnowledgeInfoCard message. * @param message Plain 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. + * Creates a KnowledgeInfoCard message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConditionalCases + * @returns KnowledgeInfoCard */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard; /** - * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. - * @param message ConditionalCases + * Creates a plain object from a KnowledgeInfoCard message. Also converts values to other types if specified. + * @param message KnowledgeInfoCard * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConditionalCases to JSON. + * Converts this KnowledgeInfoCard to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConditionalCases + * Gets the default type url for KnowledgeInfoCard * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - 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; + /** Properties of a ValidationMessage. */ + interface IValidationMessage { - /** - * 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; + /** ValidationMessage resourceType */ + resourceType?: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|null); - /** - * 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; + /** ValidationMessage resources */ + resources?: (string[]|null); - /** - * 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; + /** ValidationMessage resourceNames */ + resourceNames?: (google.cloud.dialogflow.cx.v3beta1.IResourceName[]|null); - /** - * 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; + /** ValidationMessage severity */ + severity?: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|null); - /** - * 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); + /** ValidationMessage detail */ + detail?: (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; + /** Represents a ValidationMessage. */ + class ValidationMessage implements IValidationMessage { - /** - * 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 }; + /** + * Constructs a new ValidationMessage. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidationMessage); - /** - * Converts this Case to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ValidationMessage resourceType. */ + public resourceType: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType); - /** - * Gets the default type url for Case - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ValidationMessage resources. */ + public resources: string[]; - namespace Case { + /** ValidationMessage resourceNames. */ + public resourceNames: google.cloud.dialogflow.cx.v3beta1.IResourceName[]; - /** Properties of a CaseContent. */ - interface ICaseContent { + /** ValidationMessage severity. */ + public severity: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity); - /** CaseContent message */ - message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); + /** ValidationMessage detail. */ + public detail: string; - /** CaseContent additionalCases */ - additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); - } + /** + * Creates a new ValidationMessage instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidationMessage instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidationMessage): google.cloud.dialogflow.cx.v3beta1.ValidationMessage; - /** Represents a CaseContent. */ - class CaseContent implements ICaseContent { + /** + * Encodes the specified ValidationMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. + * @param message ValidationMessage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidationMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new CaseContent. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent); + /** + * Encodes the specified ValidationMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. + * @param message ValidationMessage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidationMessage, writer?: $protobuf.Writer): $protobuf.Writer; - /** CaseContent message. */ - public message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); + /** + * Decodes a ValidationMessage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidationMessage + * @throws {Error} If the payload is not a reader or 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.ValidationMessage; - /** CaseContent additionalCases. */ - public additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); + /** + * Decodes a ValidationMessage message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidationMessage + * @throws {Error} If the payload is not a 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.ValidationMessage; - /** CaseContent casesOrMessage. */ - public casesOrMessage?: ("message"|"additionalCases"); + /** + * Verifies a ValidationMessage message. + * @param message Plain 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 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; + /** + * Creates a ValidationMessage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidationMessage + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidationMessage; - /** - * 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; + /** + * Creates a plain object from a ValidationMessage message. Also converts values to other types if specified. + * @param message ValidationMessage + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidationMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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; + /** + * Converts this ValidationMessage to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * 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; + /** + * Gets the default type url for ValidationMessage + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * 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; + namespace ValidationMessage { - /** - * 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); + /** ResourceType enum. */ + enum ResourceType { + RESOURCE_TYPE_UNSPECIFIED = 0, + AGENT = 1, + INTENT = 2, + INTENT_TRAINING_PHRASE = 8, + INTENT_PARAMETER = 9, + INTENTS = 10, + INTENT_TRAINING_PHRASES = 11, + ENTITY_TYPE = 3, + ENTITY_TYPES = 12, + WEBHOOK = 4, + FLOW = 5, + PAGE = 6, + PAGES = 13, + TRANSITION_ROUTE_GROUP = 7, + AGENT_TRANSITION_ROUTE_GROUP = 14 + } - /** - * 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; + /** Severity enum. */ + enum Severity { + SEVERITY_UNSPECIFIED = 0, + INFO = 1, + WARNING = 2, + ERROR = 3 + } + } - /** - * 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 }; + /** Properties of a ResourceName. */ + interface IResourceName { - /** - * Converts this CaseContent to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ResourceName name */ + name?: (string|null); - /** - * Gets the default type url for CaseContent - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** ResourceName displayName */ + displayName?: (string|null); } - /** Properties of a ResponseMessage. */ - interface IResponseMessage { - - /** ResponseMessage text */ - text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); + /** Represents a ResourceName. */ + class ResourceName implements IResourceName { - /** ResponseMessage payload */ - payload?: (google.protobuf.IStruct|null); + /** + * Constructs a new ResourceName. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IResourceName); - /** ResponseMessage conversationSuccess */ - conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); + /** ResourceName name. */ + public name: string; - /** ResponseMessage outputAudioText */ - outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); + /** ResourceName displayName. */ + public displayName: string; - /** ResponseMessage liveAgentHandoff */ - liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); + /** + * Creates a new ResourceName instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceName instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IResourceName): google.cloud.dialogflow.cx.v3beta1.ResourceName; - /** ResponseMessage endInteraction */ - endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); + /** + * Encodes the specified ResourceName message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. + * @param message ResourceName message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IResourceName, writer?: $protobuf.Writer): $protobuf.Writer; - /** ResponseMessage playAudio */ - playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); + /** + * Encodes the specified ResourceName message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. + * @param message ResourceName message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IResourceName, writer?: $protobuf.Writer): $protobuf.Writer; - /** ResponseMessage mixedAudio */ - mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); + /** + * Decodes a ResourceName message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceName + * @throws {Error} If the payload is not a reader or 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.ResourceName; - /** ResponseMessage telephonyTransferCall */ - telephonyTransferCall?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null); + /** + * Decodes a ResourceName message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceName + * @throws {Error} If the payload is not a 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.ResourceName; - /** ResponseMessage knowledgeInfoCard */ - knowledgeInfoCard?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard|null); + /** + * Verifies a ResourceName message. + * @param message 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 channel */ - channel?: (string|null); - } + /** + * Creates a ResourceName message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceName + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResourceName; - /** Represents a ResponseMessage. */ - class ResponseMessage implements IResponseMessage { + /** + * Creates a plain object from a ResourceName message. Also converts values to other types if specified. + * @param message ResourceName + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResourceName, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Constructs a new ResponseMessage. - * @param [properties] Properties to set + * Converts this ResourceName to JSON. + * @returns JSON object */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage); + public toJSON(): { [k: string]: any }; - /** ResponseMessage text. */ - public text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); + /** + * Gets the default type url for ResourceName + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ResponseMessage payload. */ - public payload?: (google.protobuf.IStruct|null); + /** Properties of a GenerativeSettings. */ + interface IGenerativeSettings { - /** ResponseMessage conversationSuccess. */ - public conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); + /** GenerativeSettings name */ + name?: (string|null); - /** ResponseMessage outputAudioText. */ - public outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); + /** GenerativeSettings fallbackSettings */ + fallbackSettings?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings|null); - /** ResponseMessage liveAgentHandoff. */ - public liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); + /** GenerativeSettings generativeSafetySettings */ + generativeSafetySettings?: (google.cloud.dialogflow.cx.v3beta1.ISafetySettings|null); - /** ResponseMessage endInteraction. */ - public endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); + /** GenerativeSettings knowledgeConnectorSettings */ + knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings|null); - /** ResponseMessage playAudio. */ - public playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); + /** GenerativeSettings languageCode */ + languageCode?: (string|null); + } - /** ResponseMessage mixedAudio. */ - public mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); + /** Represents a GenerativeSettings. */ + class GenerativeSettings implements IGenerativeSettings { - /** ResponseMessage telephonyTransferCall. */ - public telephonyTransferCall?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null); + /** + * Constructs a new GenerativeSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings); - /** ResponseMessage knowledgeInfoCard. */ - public knowledgeInfoCard?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard|null); + /** GenerativeSettings name. */ + public name: string; - /** ResponseMessage channel. */ - public channel: string; + /** GenerativeSettings fallbackSettings. */ + public fallbackSettings?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings|null); - /** ResponseMessage message. */ - public message?: ("text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"|"knowledgeInfoCard"); + /** GenerativeSettings generativeSafetySettings. */ + public generativeSafetySettings?: (google.cloud.dialogflow.cx.v3beta1.ISafetySettings|null); + + /** GenerativeSettings knowledgeConnectorSettings. */ + public knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings|null); + + /** GenerativeSettings languageCode. */ + public languageCode: string; /** - * Creates a new ResponseMessage instance using the specified properties. + * Creates a new GenerativeSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ResponseMessage instance + * @returns GenerativeSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings; /** - * 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 + * Encodes the specified GenerativeSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify|verify} messages. + * @param message GenerativeSettings 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; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings, 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 + * Encodes the specified GenerativeSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify|verify} messages. + * @param message GenerativeSettings 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResponseMessage message from the specified reader or buffer. + * Decodes a GenerativeSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResponseMessage + * @returns GenerativeSettings * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings; /** - * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. + * Decodes a GenerativeSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResponseMessage + * @returns GenerativeSettings * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings; /** - * Verifies a ResponseMessage message. + * Verifies a GenerativeSettings message. * @param message Plain 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. + * Creates a GenerativeSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResponseMessage + * @returns GenerativeSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings; /** - * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. - * @param message ResponseMessage + * Creates a plain object from a GenerativeSettings message. Also converts values to other types if specified. + * @param message GenerativeSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResponseMessage to JSON. + * Converts this GenerativeSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResponseMessage + * Gets the default type url for GenerativeSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ResponseMessage { + namespace GenerativeSettings { - /** Properties of a Text. */ - interface IText { + /** Properties of a FallbackSettings. */ + interface IFallbackSettings { - /** Text text */ - text?: (string[]|null); + /** FallbackSettings selectedPrompt */ + selectedPrompt?: (string|null); - /** Text allowPlaybackInterruption */ - allowPlaybackInterruption?: (boolean|null); + /** FallbackSettings promptTemplates */ + promptTemplates?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate[]|null); } - /** Represents a Text. */ - class Text implements IText { + /** Represents a FallbackSettings. */ + class FallbackSettings implements IFallbackSettings { /** - * Constructs a new Text. + * Constructs a new FallbackSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings); - /** Text text. */ - public text: string[]; + /** FallbackSettings selectedPrompt. */ + public selectedPrompt: string; - /** Text allowPlaybackInterruption. */ - public allowPlaybackInterruption: boolean; + /** FallbackSettings promptTemplates. */ + public promptTemplates: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate[]; /** - * Creates a new Text instance using the specified properties. + * Creates a new FallbackSettings instance using the specified properties. * @param [properties] Properties to set - * @returns Text instance + * @returns FallbackSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings; /** - * 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 + * Encodes the specified FallbackSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify|verify} messages. + * @param message FallbackSettings 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; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings, 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 + * Encodes the specified FallbackSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify|verify} messages. + * @param message FallbackSettings 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Text message from the specified reader or buffer. + * Decodes a FallbackSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Text + * @returns FallbackSettings * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings; /** - * Decodes a Text message from the specified reader or buffer, length delimited. + * Decodes a FallbackSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Text + * @returns FallbackSettings * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings; /** - * Verifies a Text message. + * Verifies a FallbackSettings message. * @param message Plain 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. + * Creates a FallbackSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Text + * @returns FallbackSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings; /** - * Creates a plain object from a Text message. Also converts values to other types if specified. - * @param message Text + * Creates a plain object from a FallbackSettings message. Also converts values to other types if specified. + * @param message FallbackSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Text to JSON. + * Converts this FallbackSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Text + * Gets the default type url for FallbackSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LiveAgentHandoff. */ - interface ILiveAgentHandoff { + namespace FallbackSettings { - /** LiveAgentHandoff metadata */ - metadata?: (google.protobuf.IStruct|null); - } + /** Properties of a PromptTemplate. */ + interface IPromptTemplate { - /** Represents a LiveAgentHandoff. */ - class LiveAgentHandoff implements ILiveAgentHandoff { + /** PromptTemplate displayName */ + displayName?: (string|null); - /** - * Constructs a new LiveAgentHandoff. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff); + /** PromptTemplate promptText */ + promptText?: (string|null); - /** LiveAgentHandoff metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** PromptTemplate frozen */ + frozen?: (boolean|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; + /** Represents a PromptTemplate. */ + class PromptTemplate implements IPromptTemplate { - /** - * 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; + /** + * Constructs a new PromptTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate); - /** - * 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; + /** PromptTemplate displayName. */ + public displayName: string; - /** - * 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; + /** PromptTemplate promptText. */ + public promptText: string; - /** - * 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; + /** PromptTemplate frozen. */ + public frozen: boolean; - /** - * 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 new PromptTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns PromptTemplate instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate; - /** - * 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; + /** + * Encodes the specified PromptTemplate message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify|verify} messages. + * @param message PromptTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 }; + /** + * Encodes the specified PromptTemplate message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify|verify} messages. + * @param message PromptTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this LiveAgentHandoff to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a PromptTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PromptTemplate + * @throws {Error} If the payload is not a reader or 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.GenerativeSettings.FallbackSettings.PromptTemplate; - /** - * Gets the default type url for LiveAgentHandoff - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Decodes a PromptTemplate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PromptTemplate + * @throws {Error} If the payload is not a 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.GenerativeSettings.FallbackSettings.PromptTemplate; + + /** + * Verifies a PromptTemplate message. + * @param message Plain 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 PromptTemplate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PromptTemplate + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate; + + /** + * Creates a plain object from a PromptTemplate message. Also converts values to other types if specified. + * @param message PromptTemplate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PromptTemplate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PromptTemplate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a ConversationSuccess. */ - interface IConversationSuccess { + /** Properties of a KnowledgeConnectorSettings. */ + interface IKnowledgeConnectorSettings { - /** ConversationSuccess metadata */ - metadata?: (google.protobuf.IStruct|null); + /** KnowledgeConnectorSettings business */ + business?: (string|null); + + /** KnowledgeConnectorSettings agent */ + agent?: (string|null); + + /** KnowledgeConnectorSettings agentIdentity */ + agentIdentity?: (string|null); + + /** KnowledgeConnectorSettings businessDescription */ + businessDescription?: (string|null); + + /** KnowledgeConnectorSettings agentScope */ + agentScope?: (string|null); } - /** Represents a ConversationSuccess. */ - class ConversationSuccess implements IConversationSuccess { + /** Represents a KnowledgeConnectorSettings. */ + class KnowledgeConnectorSettings implements IKnowledgeConnectorSettings { /** - * Constructs a new ConversationSuccess. + * Constructs a new KnowledgeConnectorSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings); - /** ConversationSuccess metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** KnowledgeConnectorSettings business. */ + public business: string; + + /** KnowledgeConnectorSettings agent. */ + public agent: string; + + /** KnowledgeConnectorSettings agentIdentity. */ + public agentIdentity: string; + + /** KnowledgeConnectorSettings businessDescription. */ + public businessDescription: string; + + /** KnowledgeConnectorSettings agentScope. */ + public agentScope: string; /** - * Creates a new ConversationSuccess instance using the specified properties. + * Creates a new KnowledgeConnectorSettings instance using the specified properties. * @param [properties] Properties to set - * @returns ConversationSuccess instance + * @returns KnowledgeConnectorSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings; /** - * 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 + * Encodes the specified KnowledgeConnectorSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify|verify} messages. + * @param message KnowledgeConnectorSettings 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; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings, 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 + /** + * Encodes the specified KnowledgeConnectorSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify|verify} messages. + * @param message KnowledgeConnectorSettings 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConversationSuccess message from the specified reader or buffer. + * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConversationSuccess + * @returns KnowledgeConnectorSettings * @throws {Error} If the payload is not a reader or 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.ConversationSuccess; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings; /** - * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. + * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConversationSuccess + * @returns KnowledgeConnectorSettings * @throws {Error} If the payload is not a 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.ConversationSuccess; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings; /** - * Verifies a ConversationSuccess message. + * Verifies a KnowledgeConnectorSettings message. * @param message Plain 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 ConversationSuccess message from a plain object. Also converts values to their respective internal types. + * Creates a KnowledgeConnectorSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConversationSuccess + * @returns KnowledgeConnectorSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings; /** - * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. - * @param message ConversationSuccess + * Creates a plain object from a KnowledgeConnectorSettings message. Also converts values to other types if specified. + * @param message KnowledgeConnectorSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConversationSuccess to JSON. + * Converts this KnowledgeConnectorSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConversationSuccess + * Gets the default type url for KnowledgeConnectorSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of an OutputAudioText. */ - interface IOutputAudioText { + /** Properties of a SafetySettings. */ + interface ISafetySettings { - /** OutputAudioText text */ - text?: (string|null); + /** SafetySettings bannedPhrases */ + bannedPhrases?: (google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase[]|null); + } - /** OutputAudioText ssml */ - ssml?: (string|null); + /** Represents a SafetySettings. */ + class SafetySettings implements ISafetySettings { - /** OutputAudioText allowPlaybackInterruption */ - allowPlaybackInterruption?: (boolean|null); + /** + * Constructs a new SafetySettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISafetySettings); + + /** SafetySettings bannedPhrases. */ + public bannedPhrases: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase[]; + + /** + * Creates a new SafetySettings instance using the specified properties. + * @param [properties] Properties to set + * @returns SafetySettings instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISafetySettings): google.cloud.dialogflow.cx.v3beta1.SafetySettings; + + /** + * Encodes the specified SafetySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.verify|verify} messages. + * @param message SafetySettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISafetySettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SafetySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.verify|verify} messages. + * @param message SafetySettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISafetySettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SafetySettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SafetySettings + * @throws {Error} If the payload is not a reader or 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.SafetySettings; + + /** + * Decodes a SafetySettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SafetySettings + * @throws {Error} If the payload is not a 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.SafetySettings; + + /** + * Verifies a SafetySettings message. + * @param message Plain 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 SafetySettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SafetySettings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SafetySettings; + + /** + * Creates a plain object from a SafetySettings message. Also converts values to other types if specified. + * @param message SafetySettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SafetySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SafetySettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SafetySettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SafetySettings { + + /** Properties of a Phrase. */ + interface IPhrase { + + /** Phrase text */ + text?: (string|null); + + /** Phrase languageCode */ + languageCode?: (string|null); } - /** Represents an OutputAudioText. */ - class OutputAudioText implements IOutputAudioText { + /** Represents a Phrase. */ + class Phrase implements IPhrase { /** - * Constructs a new OutputAudioText. + * Constructs a new Phrase. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText); - - /** OutputAudioText text. */ - public text?: (string|null); - - /** OutputAudioText ssml. */ - public ssml?: (string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase); - /** OutputAudioText allowPlaybackInterruption. */ - public allowPlaybackInterruption: boolean; + /** Phrase text. */ + public text: string; - /** OutputAudioText source. */ - public source?: ("text"|"ssml"); + /** Phrase languageCode. */ + public languageCode: string; /** - * Creates a new OutputAudioText instance using the specified properties. + * Creates a new Phrase instance using the specified properties. * @param [properties] Properties to set - * @returns OutputAudioText instance + * @returns Phrase instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase): google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase; /** - * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. - * @param message OutputAudioText message or plain object to encode + * Encodes the specified Phrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify|verify} messages. + * @param message Phrase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. - * @param message OutputAudioText message or plain object to encode + * Encodes the specified Phrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify|verify} messages. + * @param message Phrase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputAudioText message from the specified reader or buffer. + * Decodes a Phrase message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputAudioText + * @returns Phrase * @throws {Error} If the payload is not a reader or 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.OutputAudioText; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase; /** - * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. + * Decodes a Phrase message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputAudioText + * @returns Phrase * @throws {Error} If the payload is not a 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.OutputAudioText; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase; /** - * Verifies an OutputAudioText message. + * Verifies a Phrase message. * @param message Plain 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 OutputAudioText message from a plain object. Also converts values to their respective internal types. + * Creates a Phrase message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputAudioText + * @returns Phrase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase; /** - * Creates a plain object from an OutputAudioText message. Also converts values to other types if specified. - * @param message OutputAudioText + * Creates a plain object from a Phrase message. Also converts values to other types if specified. + * @param message Phrase * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputAudioText to JSON. + * Converts this Phrase to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputAudioText + * Gets the default type url for Phrase * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of an EndInteraction. */ - interface IEndInteraction { - } + /** Represents a Changelogs */ + class Changelogs extends $protobuf.rpc.Service { - /** Represents an EndInteraction. */ - class EndInteraction implements IEndInteraction { + /** + * Constructs a new Changelogs 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); - /** - * Constructs a new EndInteraction. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction); + /** + * Creates new Changelogs 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): Changelogs; - /** - * Creates a new EndInteraction instance using the specified properties. - * @param [properties] Properties to set - * @returns EndInteraction instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction; + /** + * Calls ListChangelogs. + * @param request ListChangelogsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListChangelogsResponse + */ + public listChangelogs(request: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogsCallback): void; + + /** + * Calls ListChangelogs. + * @param request ListChangelogsRequest message or plain object + * @returns Promise + */ + public listChangelogs(request: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest): Promise; + + /** + * Calls GetChangelog. + * @param request GetChangelogRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Changelog + */ + public getChangelog(request: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, callback: google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelogCallback): void; + + /** + * Calls GetChangelog. + * @param request GetChangelogRequest message or plain object + * @returns Promise + */ + public getChangelog(request: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest): Promise; + } + + namespace Changelogs { + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs|listChangelogs}. + * @param error Error, if any + * @param [response] ListChangelogsResponse + */ + type ListChangelogsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs|getChangelog}. + * @param error Error, if any + * @param [response] Changelog + */ + type GetChangelogCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Changelog) => void; + } + + /** Properties of a ListChangelogsRequest. */ + interface IListChangelogsRequest { + + /** ListChangelogsRequest parent */ + parent?: (string|null); + + /** ListChangelogsRequest filter */ + filter?: (string|null); + + /** ListChangelogsRequest pageSize */ + pageSize?: (number|null); + + /** ListChangelogsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListChangelogsRequest. */ + class ListChangelogsRequest implements IListChangelogsRequest { + + /** + * Constructs a new ListChangelogsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest); + + /** ListChangelogsRequest parent. */ + public parent: string; + + /** ListChangelogsRequest filter. */ + public filter: string; + + /** ListChangelogsRequest pageSize. */ + public pageSize: number; + + /** ListChangelogsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListChangelogsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListChangelogsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; + + /** + * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. + * @param message ListChangelogsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. + * @param message ListChangelogsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListChangelogsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListChangelogsRequest + * @throws {Error} If the payload is not a reader or 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.ListChangelogsRequest; + + /** + * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListChangelogsRequest + * @throws {Error} If the payload is not a 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.ListChangelogsRequest; + + /** + * Verifies a ListChangelogsRequest message. + * @param message Plain 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 ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListChangelogsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; + + /** + * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. + * @param message ListChangelogsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListChangelogsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListChangelogsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListChangelogsResponse. */ + interface IListChangelogsResponse { + + /** ListChangelogsResponse changelogs */ + changelogs?: (google.cloud.dialogflow.cx.v3beta1.IChangelog[]|null); + + /** ListChangelogsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListChangelogsResponse. */ + class ListChangelogsResponse implements IListChangelogsResponse { + + /** + * Constructs a new ListChangelogsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse); + + /** ListChangelogsResponse changelogs. */ + public changelogs: google.cloud.dialogflow.cx.v3beta1.IChangelog[]; + + /** ListChangelogsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListChangelogsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListChangelogsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; + + /** + * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * @param message ListChangelogsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * @param message ListChangelogsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListChangelogsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListChangelogsResponse + * @throws {Error} If the payload is not a reader or 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.ListChangelogsResponse; + + /** + * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListChangelogsResponse + * @throws {Error} If the payload is not a 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.ListChangelogsResponse; + + /** + * Verifies a ListChangelogsResponse message. + * @param message Plain 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 ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListChangelogsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; + + /** + * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. + * @param message ListChangelogsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListChangelogsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListChangelogsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @param message EndInteraction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a GetChangelogRequest. */ + interface IGetChangelogRequest { - /** - * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @param message EndInteraction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction, writer?: $protobuf.Writer): $protobuf.Writer; + /** GetChangelogRequest name */ + name?: (string|null); + } - /** - * Decodes an EndInteraction message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EndInteraction - * @throws {Error} If the payload is not a reader or 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.EndInteraction; + /** Represents a GetChangelogRequest. */ + class GetChangelogRequest implements IGetChangelogRequest { - /** - * Decodes an EndInteraction message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EndInteraction - * @throws {Error} If the payload is not a 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.EndInteraction; + /** + * Constructs a new GetChangelogRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest); - /** - * Verifies an EndInteraction message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** GetChangelogRequest name. */ + public name: string; - /** - * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EndInteraction - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction; + /** + * Creates a new GetChangelogRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetChangelogRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; - /** - * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. - * @param message EndInteraction - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. + * @param message GetChangelogRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this EndInteraction to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. + * @param message GetChangelogRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for EndInteraction - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a GetChangelogRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetChangelogRequest + * @throws {Error} If the payload is not a reader or 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.GetChangelogRequest; - /** Properties of a PlayAudio. */ - interface IPlayAudio { + /** + * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetChangelogRequest + * @throws {Error} If the payload is not a 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.GetChangelogRequest; - /** PlayAudio audioUri */ - audioUri?: (string|null); + /** + * Verifies a GetChangelogRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** PlayAudio allowPlaybackInterruption */ - allowPlaybackInterruption?: (boolean|null); - } + /** + * Creates a GetChangelogRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetChangelogRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; - /** Represents a PlayAudio. */ - class PlayAudio implements IPlayAudio { + /** + * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. + * @param message GetChangelogRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new PlayAudio. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio); + /** + * Converts this GetChangelogRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PlayAudio audioUri. */ - public audioUri: string; + /** + * Gets the default type url for GetChangelogRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PlayAudio allowPlaybackInterruption. */ - public allowPlaybackInterruption: boolean; + /** Properties of a Changelog. */ + interface IChangelog { - /** - * Creates a new PlayAudio instance using the specified properties. - * @param [properties] Properties to set - * @returns PlayAudio instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio; + /** Changelog name */ + name?: (string|null); - /** - * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @param message PlayAudio message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio, writer?: $protobuf.Writer): $protobuf.Writer; + /** Changelog userEmail */ + userEmail?: (string|null); - /** - * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @param message PlayAudio message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio, writer?: $protobuf.Writer): $protobuf.Writer; + /** Changelog displayName */ + displayName?: (string|null); - /** - * Decodes a PlayAudio message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PlayAudio - * @throws {Error} If the payload is not a reader or 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.PlayAudio; + /** Changelog action */ + action?: (string|null); - /** - * Decodes a PlayAudio message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PlayAudio - * @throws {Error} If the payload is not a 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.PlayAudio; + /** Changelog type */ + type?: (string|null); - /** - * Verifies a PlayAudio message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Changelog resource */ + resource?: (string|null); - /** - * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PlayAudio - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio; + /** Changelog createTime */ + createTime?: (google.protobuf.ITimestamp|null); + } - /** - * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. - * @param message PlayAudio - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a Changelog. */ + class Changelog implements IChangelog { - /** - * Converts this PlayAudio to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new Changelog. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IChangelog); - /** - * Gets the default type url for PlayAudio - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Changelog name. */ + public name: string; - /** Properties of a MixedAudio. */ - interface IMixedAudio { + /** Changelog userEmail. */ + public userEmail: string; - /** MixedAudio segments */ - segments?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment[]|null); - } + /** Changelog displayName. */ + public displayName: string; - /** Represents a MixedAudio. */ - class MixedAudio implements IMixedAudio { + /** Changelog action. */ + public action: string; - /** - * Constructs a new MixedAudio. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio); + /** Changelog type. */ + public type: string; - /** MixedAudio segments. */ - public segments: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment[]; + /** Changelog resource. */ + public resource: string; - /** - * Creates a new MixedAudio instance using the specified properties. - * @param [properties] Properties to set - * @returns MixedAudio instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio; + /** Changelog createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. - * @param message MixedAudio message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new Changelog instance using the specified properties. + * @param [properties] Properties to set + * @returns Changelog instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IChangelog): google.cloud.dialogflow.cx.v3beta1.Changelog; - /** - * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. - * @param message MixedAudio message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. + * @param message Changelog message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MixedAudio message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MixedAudio - * @throws {Error} If the payload is not a reader or 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.MixedAudio; + /** + * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. + * @param message Changelog message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MixedAudio message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MixedAudio - * @throws {Error} If the payload is not a 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.MixedAudio; + /** + * Decodes a Changelog message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Changelog + * @throws {Error} If the payload is not a reader or 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.Changelog; - /** - * Verifies a MixedAudio message. - * @param message 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 Changelog message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Changelog + * @throws {Error} If the payload is not a 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.Changelog; - /** - * Creates a MixedAudio message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MixedAudio - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio; + /** + * Verifies a Changelog message. + * @param message Plain 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 MixedAudio message. Also converts values to other types if specified. - * @param message MixedAudio - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a Changelog message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Changelog + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Changelog; - /** - * Converts this MixedAudio to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a Changelog message. Also converts values to other types if specified. + * @param message Changelog + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Changelog, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for MixedAudio - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this Changelog to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace MixedAudio { + /** + * Gets the default type url for Changelog + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a Segment. */ - interface ISegment { + /** Represents a Deployments */ + class Deployments extends $protobuf.rpc.Service { - /** Segment audio */ - audio?: (Uint8Array|string|null); + /** + * Constructs a new Deployments 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); - /** Segment uri */ - uri?: (string|null); + /** + * Creates new Deployments 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): Deployments; - /** Segment allowPlaybackInterruption */ - allowPlaybackInterruption?: (boolean|null); - } + /** + * Calls ListDeployments. + * @param request ListDeploymentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDeploymentsResponse + */ + public listDeployments(request: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeploymentsCallback): void; - /** Represents a Segment. */ - class Segment implements ISegment { + /** + * Calls ListDeployments. + * @param request ListDeploymentsRequest message or plain object + * @returns Promise + */ + public listDeployments(request: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest): Promise; - /** - * Constructs a new Segment. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment); + /** + * Calls GetDeployment. + * @param request GetDeploymentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Deployment + */ + public getDeployment(request: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeploymentCallback): void; - /** Segment audio. */ - public audio?: (Uint8Array|string|null); + /** + * Calls GetDeployment. + * @param request GetDeploymentRequest message or plain object + * @returns Promise + */ + public getDeployment(request: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest): Promise; + } - /** Segment uri. */ - public uri?: (string|null); + namespace Deployments { - /** Segment allowPlaybackInterruption. */ - public allowPlaybackInterruption: boolean; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments|listDeployments}. + * @param error Error, if any + * @param [response] ListDeploymentsResponse + */ + type ListDeploymentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) => void; - /** Segment content. */ - public content?: ("audio"|"uri"); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments|getDeployment}. + * @param error Error, if any + * @param [response] Deployment + */ + type GetDeploymentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Deployment) => void; + } - /** - * Creates a new Segment instance using the specified properties. - * @param [properties] Properties to set - * @returns Segment instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment; + /** Properties of a Deployment. */ + interface IDeployment { + + /** Deployment name */ + name?: (string|null); - /** - * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. - * @param message Segment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; + /** Deployment flowVersion */ + flowVersion?: (string|null); - /** - * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. - * @param message Segment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; + /** Deployment state */ + state?: (google.cloud.dialogflow.cx.v3beta1.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Deployment.State|null); - /** - * Decodes a Segment message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Segment - * @throws {Error} If the payload is not a reader or 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.MixedAudio.Segment; + /** Deployment result */ + result?: (google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null); - /** - * Decodes a Segment message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Segment - * @throws {Error} If the payload is not a 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.MixedAudio.Segment; + /** Deployment startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies a Segment message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Deployment endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } - /** - * Creates a Segment message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Segment - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment; + /** Represents a Deployment. */ + class Deployment implements IDeployment { - /** - * Creates a plain object from a Segment message. Also converts values to other types if specified. - * @param message Segment - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new Deployment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployment); - /** - * Converts this Segment to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Deployment name. */ + public name: string; - /** - * Gets the default type url for Segment - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** Deployment flowVersion. */ + public flowVersion: string; - /** Properties of a TelephonyTransferCall. */ - interface ITelephonyTransferCall { + /** Deployment state. */ + public state: (google.cloud.dialogflow.cx.v3beta1.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Deployment.State); - /** TelephonyTransferCall phoneNumber */ - phoneNumber?: (string|null); - } + /** Deployment result. */ + public result?: (google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null); - /** Represents a TelephonyTransferCall. */ - class TelephonyTransferCall implements ITelephonyTransferCall { + /** Deployment startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new TelephonyTransferCall. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall); + /** Deployment endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** TelephonyTransferCall phoneNumber. */ - public phoneNumber?: (string|null); + /** + * Creates a new Deployment instance using the specified properties. + * @param [properties] Properties to set + * @returns Deployment instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployment): google.cloud.dialogflow.cx.v3beta1.Deployment; - /** TelephonyTransferCall endpoint. */ - public endpoint?: "phoneNumber"; + /** + * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * @param message Deployment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new TelephonyTransferCall instance using the specified properties. - * @param [properties] Properties to set - * @returns TelephonyTransferCall instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall; + /** + * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * @param message Deployment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TelephonyTransferCall message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. - * @param message TelephonyTransferCall message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Deployment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Deployment + * @throws {Error} If the payload is not a reader or 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.Deployment; - /** - * Encodes the specified TelephonyTransferCall message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. - * @param message TelephonyTransferCall message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a Deployment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Deployment + * @throws {Error} If the payload is not a 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.Deployment; - /** - * Decodes a TelephonyTransferCall message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TelephonyTransferCall - * @throws {Error} If the payload is not a reader or 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.TelephonyTransferCall; + /** + * Verifies a Deployment message. + * @param message 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 TelephonyTransferCall message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TelephonyTransferCall - * @throws {Error} If the payload is not a 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.TelephonyTransferCall; + /** + * Creates a Deployment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Deployment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Deployment; - /** - * Verifies a TelephonyTransferCall message. - * @param message Plain 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 Deployment message. Also converts values to other types if specified. + * @param message Deployment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Deployment, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a TelephonyTransferCall message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TelephonyTransferCall - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall; + /** + * Converts this Deployment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a TelephonyTransferCall message. Also converts values to other types if specified. - * @param message TelephonyTransferCall - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for Deployment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this TelephonyTransferCall to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + namespace Deployment { - /** - * Gets the default type url for TelephonyTransferCall - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + RUNNING = 1, + SUCCEEDED = 2, + FAILED = 3 } - /** Properties of a KnowledgeInfoCard. */ - interface IKnowledgeInfoCard { + /** Properties of a Result. */ + interface IResult { + + /** Result deploymentTestResults */ + deploymentTestResults?: (string[]|null); + + /** Result experiment */ + experiment?: (string|null); } - /** Represents a KnowledgeInfoCard. */ - class KnowledgeInfoCard implements IKnowledgeInfoCard { + /** Represents a Result. */ + class Result implements IResult { /** - * Constructs a new KnowledgeInfoCard. + * Constructs a new Result. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult); + + /** Result deploymentTestResults. */ + public deploymentTestResults: string[]; + + /** Result experiment. */ + public experiment: string; /** - * Creates a new KnowledgeInfoCard instance using the specified properties. + * Creates a new Result instance using the specified properties. * @param [properties] Properties to set - * @returns KnowledgeInfoCard instance + * @returns Result instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; /** - * Encodes the specified KnowledgeInfoCard message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify|verify} messages. - * @param message KnowledgeInfoCard message or plain object to encode + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.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.ResponseMessage.IKnowledgeInfoCard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified KnowledgeInfoCard message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify|verify} messages. - * @param message KnowledgeInfoCard message or plain object to encode + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.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.ResponseMessage.IKnowledgeInfoCard, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a KnowledgeInfoCard message from the specified reader or buffer. + * 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 KnowledgeInfoCard + * @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.ResponseMessage.KnowledgeInfoCard; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; /** - * Decodes a KnowledgeInfoCard message from the specified reader or buffer, length delimited. + * Decodes a Result message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns KnowledgeInfoCard + * @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.ResponseMessage.KnowledgeInfoCard; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; /** - * Verifies a KnowledgeInfoCard message. + * 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 KnowledgeInfoCard message from a plain object. Also converts values to their respective internal types. + * Creates a Result message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns KnowledgeInfoCard + * @returns Result */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; /** - * Creates a plain object from a KnowledgeInfoCard message. Also converts values to other types if specified. - * @param message KnowledgeInfoCard + * 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.ResponseMessage.KnowledgeInfoCard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Deployment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this KnowledgeInfoCard to JSON. + * Converts this Result to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for KnowledgeInfoCard + * Gets the default type url for Result * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -41534,2058 +44568,1447 @@ export namespace google { } } - /** Properties of a ValidationMessage. */ - interface IValidationMessage { - - /** ValidationMessage resourceType */ - resourceType?: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|null); - - /** ValidationMessage resources */ - resources?: (string[]|null); + /** Properties of a ListDeploymentsRequest. */ + interface IListDeploymentsRequest { - /** ValidationMessage resourceNames */ - resourceNames?: (google.cloud.dialogflow.cx.v3beta1.IResourceName[]|null); + /** ListDeploymentsRequest parent */ + parent?: (string|null); - /** ValidationMessage severity */ - severity?: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|null); + /** ListDeploymentsRequest pageSize */ + pageSize?: (number|null); - /** ValidationMessage detail */ - detail?: (string|null); + /** ListDeploymentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ValidationMessage. */ - class ValidationMessage implements IValidationMessage { + /** Represents a ListDeploymentsRequest. */ + class ListDeploymentsRequest implements IListDeploymentsRequest { /** - * Constructs a new ValidationMessage. + * Constructs a new ListDeploymentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidationMessage); - - /** ValidationMessage resourceType. */ - public resourceType: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType); - - /** ValidationMessage resources. */ - public resources: string[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest); - /** ValidationMessage resourceNames. */ - public resourceNames: google.cloud.dialogflow.cx.v3beta1.IResourceName[]; + /** ListDeploymentsRequest parent. */ + public parent: string; - /** ValidationMessage severity. */ - public severity: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity); + /** ListDeploymentsRequest pageSize. */ + public pageSize: number; - /** ValidationMessage detail. */ - public detail: string; + /** ListDeploymentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ValidationMessage instance using the specified properties. + * Creates a new ListDeploymentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidationMessage instance + * @returns ListDeploymentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidationMessage): google.cloud.dialogflow.cx.v3beta1.ValidationMessage; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; /** - * Encodes the specified ValidationMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. - * @param message ValidationMessage message or plain object to encode + * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. + * @param message ListDeploymentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidationMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidationMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. - * @param message ValidationMessage message or plain object to encode + * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. + * @param message ListDeploymentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidationMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidationMessage message from the specified reader or buffer. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidationMessage + * @returns ListDeploymentsRequest * @throws {Error} If the payload is not a reader or 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.ValidationMessage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; /** - * Decodes a ValidationMessage message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidationMessage + * @returns ListDeploymentsRequest * @throws {Error} If the payload is not a 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.ValidationMessage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; /** - * Verifies a ValidationMessage message. + * Verifies a ListDeploymentsRequest message. * @param message Plain 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 ValidationMessage message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidationMessage + * @returns ListDeploymentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidationMessage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; /** - * Creates a plain object from a ValidationMessage message. Also converts values to other types if specified. - * @param message ValidationMessage + * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. + * @param message ListDeploymentsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidationMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidationMessage to JSON. + * Converts this ListDeploymentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidationMessage + * Gets the default type url for ListDeploymentsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ValidationMessage { - - /** ResourceType enum. */ - enum ResourceType { - RESOURCE_TYPE_UNSPECIFIED = 0, - AGENT = 1, - INTENT = 2, - INTENT_TRAINING_PHRASE = 8, - INTENT_PARAMETER = 9, - INTENTS = 10, - INTENT_TRAINING_PHRASES = 11, - ENTITY_TYPE = 3, - ENTITY_TYPES = 12, - WEBHOOK = 4, - FLOW = 5, - PAGE = 6, - PAGES = 13, - TRANSITION_ROUTE_GROUP = 7, - AGENT_TRANSITION_ROUTE_GROUP = 14 - } - - /** Severity enum. */ - enum Severity { - SEVERITY_UNSPECIFIED = 0, - INFO = 1, - WARNING = 2, - ERROR = 3 - } - } - - /** Properties of a ResourceName. */ - interface IResourceName { + /** Properties of a ListDeploymentsResponse. */ + interface IListDeploymentsResponse { - /** ResourceName name */ - name?: (string|null); + /** ListDeploymentsResponse deployments */ + deployments?: (google.cloud.dialogflow.cx.v3beta1.IDeployment[]|null); - /** ResourceName displayName */ - displayName?: (string|null); + /** ListDeploymentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ResourceName. */ - class ResourceName implements IResourceName { + /** Represents a ListDeploymentsResponse. */ + class ListDeploymentsResponse implements IListDeploymentsResponse { /** - * Constructs a new ResourceName. + * Constructs a new ListDeploymentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IResourceName); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse); - /** ResourceName name. */ - public name: string; + /** ListDeploymentsResponse deployments. */ + public deployments: google.cloud.dialogflow.cx.v3beta1.IDeployment[]; - /** ResourceName displayName. */ - public displayName: string; + /** ListDeploymentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ResourceName instance using the specified properties. + * Creates a new ListDeploymentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ResourceName instance + * @returns ListDeploymentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IResourceName): google.cloud.dialogflow.cx.v3beta1.ResourceName; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; /** - * Encodes the specified ResourceName message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. - * @param message ResourceName message or plain object to encode + * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. + * @param message ListDeploymentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IResourceName, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourceName message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. - * @param message ResourceName message or plain object to encode + * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. + * @param message ListDeploymentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IResourceName, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourceName message from the specified reader or buffer. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourceName + * @returns ListDeploymentsResponse * @throws {Error} If the payload is not a reader or 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.ResourceName; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; /** - * Decodes a ResourceName message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourceName + * @returns ListDeploymentsResponse * @throws {Error} If the payload is not a 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.ResourceName; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; /** - * Verifies a ResourceName message. + * Verifies a ListDeploymentsResponse message. * @param message Plain 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 ResourceName message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourceName + * @returns ListDeploymentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResourceName; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; /** - * Creates a plain object from a ResourceName message. Also converts values to other types if specified. - * @param message ResourceName + * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. + * @param message ListDeploymentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResourceName, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourceName to JSON. + * Converts this ListDeploymentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourceName + * Gets the default type url for ListDeploymentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GenerativeSettings. */ - interface IGenerativeSettings { + /** Properties of a GetDeploymentRequest. */ + interface IGetDeploymentRequest { - /** GenerativeSettings name */ + /** GetDeploymentRequest name */ name?: (string|null); - - /** GenerativeSettings fallbackSettings */ - fallbackSettings?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings|null); - - /** GenerativeSettings generativeSafetySettings */ - generativeSafetySettings?: (google.cloud.dialogflow.cx.v3beta1.ISafetySettings|null); - - /** GenerativeSettings knowledgeConnectorSettings */ - knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings|null); - - /** GenerativeSettings languageCode */ - languageCode?: (string|null); } - /** Represents a GenerativeSettings. */ - class GenerativeSettings implements IGenerativeSettings { + /** Represents a GetDeploymentRequest. */ + class GetDeploymentRequest implements IGetDeploymentRequest { /** - * Constructs a new GenerativeSettings. + * Constructs a new GetDeploymentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest); - /** GenerativeSettings name. */ + /** GetDeploymentRequest name. */ public name: string; - /** GenerativeSettings fallbackSettings. */ - public fallbackSettings?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings|null); - - /** GenerativeSettings generativeSafetySettings. */ - public generativeSafetySettings?: (google.cloud.dialogflow.cx.v3beta1.ISafetySettings|null); - - /** GenerativeSettings knowledgeConnectorSettings. */ - public knowledgeConnectorSettings?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings|null); - - /** GenerativeSettings languageCode. */ - public languageCode: string; - /** - * Creates a new GenerativeSettings instance using the specified properties. + * Creates a new GetDeploymentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GenerativeSettings instance + * @returns GetDeploymentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; /** - * Encodes the specified GenerativeSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify|verify} messages. - * @param message GenerativeSettings message or plain object to encode + * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. + * @param message GetDeploymentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenerativeSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify|verify} messages. - * @param message GenerativeSettings message or plain object to encode + * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. + * @param message GetDeploymentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenerativeSettings message from the specified reader or buffer. + * Decodes a GetDeploymentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenerativeSettings + * @returns GetDeploymentRequest * @throws {Error} If the payload is not a reader or 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.GenerativeSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; /** - * Decodes a GenerativeSettings message from the specified reader or buffer, length delimited. + * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenerativeSettings + * @returns GetDeploymentRequest * @throws {Error} If the payload is not a 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.GenerativeSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; /** - * Verifies a GenerativeSettings message. + * Verifies a GetDeploymentRequest message. * @param message Plain 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 GenerativeSettings message from a plain object. Also converts values to their respective internal types. + * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenerativeSettings + * @returns GetDeploymentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; /** - * Creates a plain object from a GenerativeSettings message. Also converts values to other types if specified. - * @param message GenerativeSettings + * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. + * @param message GetDeploymentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenerativeSettings to JSON. + * Converts this GetDeploymentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GenerativeSettings + * Gets the default type url for GetDeploymentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace GenerativeSettings { - - /** Properties of a FallbackSettings. */ - interface IFallbackSettings { - - /** FallbackSettings selectedPrompt */ - selectedPrompt?: (string|null); - - /** FallbackSettings promptTemplates */ - promptTemplates?: (google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate[]|null); - } - - /** Represents a FallbackSettings. */ - class FallbackSettings implements IFallbackSettings { - - /** - * Constructs a new FallbackSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings); - - /** FallbackSettings selectedPrompt. */ - public selectedPrompt: string; - - /** FallbackSettings promptTemplates. */ - public promptTemplates: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate[]; - - /** - * Creates a new FallbackSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns FallbackSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings; - - /** - * Encodes the specified FallbackSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify|verify} messages. - * @param message FallbackSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FallbackSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify|verify} messages. - * @param message FallbackSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FallbackSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FallbackSettings - * @throws {Error} If the payload is not a reader or 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.GenerativeSettings.FallbackSettings; - - /** - * Decodes a FallbackSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FallbackSettings - * @throws {Error} If the payload is not a 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.GenerativeSettings.FallbackSettings; - - /** - * Verifies a FallbackSettings message. - * @param message Plain 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 FallbackSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FallbackSettings - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings; - - /** - * Creates a plain object from a FallbackSettings message. Also converts values to other types if specified. - * @param message FallbackSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FallbackSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FallbackSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace FallbackSettings { - - /** Properties of a PromptTemplate. */ - interface IPromptTemplate { - - /** PromptTemplate displayName */ - displayName?: (string|null); - - /** PromptTemplate promptText */ - promptText?: (string|null); - - /** PromptTemplate frozen */ - frozen?: (boolean|null); - } - - /** Represents a PromptTemplate. */ - class PromptTemplate implements IPromptTemplate { - - /** - * Constructs a new PromptTemplate. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate); - - /** PromptTemplate displayName. */ - public displayName: string; - - /** PromptTemplate promptText. */ - public promptText: string; - - /** PromptTemplate frozen. */ - public frozen: boolean; - - /** - * Creates a new PromptTemplate instance using the specified properties. - * @param [properties] Properties to set - * @returns PromptTemplate instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate; - - /** - * Encodes the specified PromptTemplate message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify|verify} messages. - * @param message PromptTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PromptTemplate message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify|verify} messages. - * @param message PromptTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PromptTemplate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PromptTemplate - * @throws {Error} If the payload is not a reader or 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.GenerativeSettings.FallbackSettings.PromptTemplate; - - /** - * Decodes a PromptTemplate message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PromptTemplate - * @throws {Error} If the payload is not a 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.GenerativeSettings.FallbackSettings.PromptTemplate; - - /** - * Verifies a PromptTemplate message. - * @param message Plain 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 PromptTemplate message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PromptTemplate - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate; - - /** - * Creates a plain object from a PromptTemplate message. Also converts values to other types if specified. - * @param message PromptTemplate - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PromptTemplate to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents an EntityTypes */ + class EntityTypes extends $protobuf.rpc.Service { - /** - * Gets the default type url for PromptTemplate - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Constructs a new EntityTypes 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); - /** Properties of a KnowledgeConnectorSettings. */ - interface IKnowledgeConnectorSettings { + /** + * Creates new EntityTypes 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): EntityTypes; - /** KnowledgeConnectorSettings business */ - business?: (string|null); + /** + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse + */ + public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback): void; - /** KnowledgeConnectorSettings agent */ - agent?: (string|null); + /** + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @returns Promise + */ + public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): Promise; - /** KnowledgeConnectorSettings agentIdentity */ - agentIdentity?: (string|null); + /** + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType + */ + public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback): void; - /** KnowledgeConnectorSettings businessDescription */ - businessDescription?: (string|null); + /** + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @returns Promise + */ + public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): Promise; - /** KnowledgeConnectorSettings agentScope */ - agentScope?: (string|null); - } + /** + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType + */ + public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback): void; - /** Represents a KnowledgeConnectorSettings. */ - class KnowledgeConnectorSettings implements IKnowledgeConnectorSettings { + /** + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @returns Promise + */ + public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): Promise; - /** - * Constructs a new KnowledgeConnectorSettings. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings); + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType + */ + public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback): void; - /** KnowledgeConnectorSettings business. */ - public business: string; + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @returns Promise + */ + public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): Promise; - /** KnowledgeConnectorSettings agent. */ - public agent: string; + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback): void; - /** KnowledgeConnectorSettings agentIdentity. */ - public agentIdentity: string; + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @returns Promise + */ + public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): Promise; + } - /** KnowledgeConnectorSettings businessDescription. */ - public businessDescription: string; + namespace EntityTypes { - /** KnowledgeConnectorSettings agentScope. */ - public agentScope: string; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|listEntityTypes}. + * @param error Error, if any + * @param [response] ListEntityTypesResponse + */ + type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) => void; - /** - * Creates a new KnowledgeConnectorSettings instance using the specified properties. - * @param [properties] Properties to set - * @returns KnowledgeConnectorSettings instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|getEntityType}. + * @param error Error, if any + * @param [response] EntityType + */ + type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; - /** - * Encodes the specified KnowledgeConnectorSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify|verify} messages. - * @param message KnowledgeConnectorSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|createEntityType}. + * @param error Error, if any + * @param [response] EntityType + */ + type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; - /** - * Encodes the specified KnowledgeConnectorSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify|verify} messages. - * @param message KnowledgeConnectorSettings message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|updateEntityType}. + * @param error Error, if any + * @param [response] EntityType + */ + type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; - /** - * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KnowledgeConnectorSettings - * @throws {Error} If the payload is not a reader or 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.GenerativeSettings.KnowledgeConnectorSettings; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|deleteEntityType}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } - /** - * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns KnowledgeConnectorSettings - * @throws {Error} If the payload is not a 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.GenerativeSettings.KnowledgeConnectorSettings; + /** Properties of an EntityType. */ + interface IEntityType { - /** - * Verifies a KnowledgeConnectorSettings message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** EntityType name */ + name?: (string|null); - /** - * Creates a KnowledgeConnectorSettings message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns KnowledgeConnectorSettings - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings; + /** EntityType displayName */ + displayName?: (string|null); - /** - * Creates a plain object from a KnowledgeConnectorSettings message. Also converts values to other types if specified. - * @param message KnowledgeConnectorSettings - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** EntityType kind */ + kind?: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null); - /** - * Converts this KnowledgeConnectorSettings to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** EntityType autoExpansionMode */ + autoExpansionMode?: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null); - /** - * Gets the default type url for KnowledgeConnectorSettings - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** EntityType entities */ + entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); - /** Properties of a SafetySettings. */ - interface ISafetySettings { + /** EntityType excludedPhrases */ + excludedPhrases?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]|null); - /** SafetySettings bannedPhrases */ - bannedPhrases?: (google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase[]|null); + /** EntityType enableFuzzyExtraction */ + enableFuzzyExtraction?: (boolean|null); + + /** EntityType redact */ + redact?: (boolean|null); } - /** Represents a SafetySettings. */ - class SafetySettings implements ISafetySettings { + /** Represents an EntityType. */ + class EntityType implements IEntityType { /** - * Constructs a new SafetySettings. + * Constructs a new EntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISafetySettings); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType); - /** SafetySettings bannedPhrases. */ - public bannedPhrases: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase[]; + /** EntityType name. */ + public name: string; + + /** EntityType displayName. */ + public displayName: string; + + /** EntityType kind. */ + public kind: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind); + + /** EntityType autoExpansionMode. */ + public autoExpansionMode: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode); + + /** EntityType entities. */ + public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; + + /** EntityType excludedPhrases. */ + public excludedPhrases: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]; + + /** EntityType enableFuzzyExtraction. */ + public enableFuzzyExtraction: boolean; + + /** EntityType redact. */ + public redact: boolean; /** - * Creates a new SafetySettings instance using the specified properties. + * Creates a new EntityType instance using the specified properties. * @param [properties] Properties to set - * @returns SafetySettings instance + * @returns EntityType instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISafetySettings): google.cloud.dialogflow.cx.v3beta1.SafetySettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType): google.cloud.dialogflow.cx.v3beta1.EntityType; /** - * Encodes the specified SafetySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.verify|verify} messages. - * @param message SafetySettings message or plain object to encode + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISafetySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SafetySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.verify|verify} messages. - * @param message SafetySettings message or plain object to encode + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISafetySettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SafetySettings message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SafetySettings + * @returns EntityType * @throws {Error} If the payload is not a reader or 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.SafetySettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType; /** - * Decodes a SafetySettings message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SafetySettings + * @returns EntityType * @throws {Error} If the payload is not a 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.SafetySettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType; /** - * Verifies a SafetySettings message. + * Verifies an EntityType message. * @param message Plain 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 SafetySettings 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. * @param object Plain object - * @returns SafetySettings + * @returns EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SafetySettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType; /** - * Creates a plain object from a SafetySettings message. Also converts values to other types if specified. - * @param message SafetySettings + * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * @param message EntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SafetySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SafetySettings to JSON. + * Converts this EntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SafetySettings + * Gets the default type url for EntityType * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SafetySettings { + namespace EntityType { - /** Properties of a Phrase. */ - interface IPhrase { + /** Kind enum. */ + enum Kind { + KIND_UNSPECIFIED = 0, + KIND_MAP = 1, + KIND_LIST = 2, + KIND_REGEXP = 3 + } - /** Phrase text */ - text?: (string|null); + /** AutoExpansionMode enum. */ + enum AutoExpansionMode { + AUTO_EXPANSION_MODE_UNSPECIFIED = 0, + AUTO_EXPANSION_MODE_DEFAULT = 1 + } - /** Phrase languageCode */ - languageCode?: (string|null); + /** Properties of an Entity. */ + interface IEntity { + + /** Entity value */ + value?: (string|null); + + /** Entity synonyms */ + synonyms?: (string[]|null); } - /** Represents a Phrase. */ - class Phrase implements IPhrase { + /** Represents an Entity. */ + class Entity implements IEntity { /** - * Constructs a new Phrase. + * Constructs a new Entity. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity); - /** Phrase text. */ - public text: string; + /** Entity value. */ + public value: string; - /** Phrase languageCode. */ - public languageCode: string; + /** Entity synonyms. */ + public synonyms: string[]; /** - * Creates a new Phrase instance using the specified properties. + * Creates a new Entity instance using the specified properties. * @param [properties] Properties to set - * @returns Phrase instance + * @returns Entity instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase): google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; /** - * Encodes the specified Phrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify|verify} messages. - * @param message Phrase message or plain object to encode + * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * @param message Entity message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Phrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify|verify} messages. - * @param message Phrase message or plain object to encode + * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * @param message Entity message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Phrase message from the specified reader or buffer. + * Decodes an Entity message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Phrase + * @returns Entity * @throws {Error} If the payload is not a reader or 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.SafetySettings.Phrase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; /** - * Decodes a Phrase message from the specified reader or buffer, length delimited. + * Decodes an Entity message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Phrase + * @returns Entity * @throws {Error} If the payload is not a 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.SafetySettings.Phrase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; /** - * Verifies a Phrase message. + * Verifies an Entity message. * @param message Plain 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 Phrase message from a plain object. Also converts values to their respective internal types. + * Creates an Entity message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Phrase + * @returns Entity */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; /** - * Creates a plain object from a Phrase message. Also converts values to other types if specified. - * @param message Phrase + * Creates a plain object from an Entity message. Also converts values to other types if specified. + * @param message Entity * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Phrase to JSON. + * Converts this Entity to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Phrase + * Gets the default type url for Entity * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - - /** Represents a Changelogs */ - class Changelogs extends $protobuf.rpc.Service { - - /** - * Constructs a new Changelogs 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 Changelogs 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): Changelogs; - - /** - * Calls ListChangelogs. - * @param request ListChangelogsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListChangelogsResponse - */ - public listChangelogs(request: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogsCallback): void; - - /** - * Calls ListChangelogs. - * @param request ListChangelogsRequest message or plain object - * @returns Promise - */ - public listChangelogs(request: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest): Promise; - - /** - * Calls GetChangelog. - * @param request GetChangelogRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Changelog - */ - public getChangelog(request: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, callback: google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelogCallback): void; - - /** - * Calls GetChangelog. - * @param request GetChangelogRequest message or plain object - * @returns Promise - */ - public getChangelog(request: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest): Promise; - } - - namespace Changelogs { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs|listChangelogs}. - * @param error Error, if any - * @param [response] ListChangelogsResponse - */ - type ListChangelogsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs|getChangelog}. - * @param error Error, if any - * @param [response] Changelog - */ - type GetChangelogCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Changelog) => void; - } - - /** Properties of a ListChangelogsRequest. */ - interface IListChangelogsRequest { - - /** ListChangelogsRequest parent */ - parent?: (string|null); - - /** ListChangelogsRequest filter */ - filter?: (string|null); - - /** ListChangelogsRequest pageSize */ - pageSize?: (number|null); - - /** ListChangelogsRequest pageToken */ - pageToken?: (string|null); - } - - /** Represents a ListChangelogsRequest. */ - class ListChangelogsRequest implements IListChangelogsRequest { - - /** - * Constructs a new ListChangelogsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest); - - /** ListChangelogsRequest parent. */ - public parent: string; - - /** ListChangelogsRequest filter. */ - public filter: string; - - /** ListChangelogsRequest pageSize. */ - public pageSize: number; - - /** ListChangelogsRequest pageToken. */ - public pageToken: string; - - /** - * Creates a new ListChangelogsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListChangelogsRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; - - /** - * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. - * @param message ListChangelogsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. - * @param message ListChangelogsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListChangelogsRequest - * @throws {Error} If the payload is not a reader or 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.ListChangelogsRequest; - - /** - * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListChangelogsRequest - * @throws {Error} If the payload is not a 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.ListChangelogsRequest; - - /** - * Verifies a ListChangelogsRequest message. - * @param message Plain 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 ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListChangelogsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest; - - /** - * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. - * @param message ListChangelogsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListChangelogsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ListChangelogsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an ExcludedPhrase. */ + interface IExcludedPhrase { - /** Properties of a ListChangelogsResponse. */ - interface IListChangelogsResponse { + /** ExcludedPhrase value */ + value?: (string|null); + } - /** ListChangelogsResponse changelogs */ - changelogs?: (google.cloud.dialogflow.cx.v3beta1.IChangelog[]|null); + /** Represents an ExcludedPhrase. */ + class ExcludedPhrase implements IExcludedPhrase { - /** ListChangelogsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Constructs a new ExcludedPhrase. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase); - /** Represents a ListChangelogsResponse. */ - class ListChangelogsResponse implements IListChangelogsResponse { + /** ExcludedPhrase value. */ + public value: string; - /** - * Constructs a new ListChangelogsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse); + /** + * Creates a new ExcludedPhrase instance using the specified properties. + * @param [properties] Properties to set + * @returns ExcludedPhrase instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; - /** ListChangelogsResponse changelogs. */ - public changelogs: google.cloud.dialogflow.cx.v3beta1.IChangelog[]; + /** + * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * @param message ExcludedPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListChangelogsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * @param message ExcludedPhrase message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ListChangelogsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListChangelogsResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExcludedPhrase + * @throws {Error} If the payload is not a reader or 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.EntityType.ExcludedPhrase; - /** - * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. - * @param message ListChangelogsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExcludedPhrase + * @throws {Error} If the payload is not a 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.EntityType.ExcludedPhrase; - /** - * Encodes the specified ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. - * @param message ListChangelogsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies an ExcludedPhrase message. + * @param message 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 ListChangelogsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListChangelogsResponse - * @throws {Error} If the payload is not a reader or 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.ListChangelogsResponse; + /** + * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExcludedPhrase + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; - /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListChangelogsResponse - * @throws {Error} If the payload is not a 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.ListChangelogsResponse; + /** + * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. + * @param message ExcludedPhrase + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a ListChangelogsResponse message. - * @param message 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 ExcludedPhrase to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListChangelogsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse; + /** + * Gets the default type url for ExcludedPhrase + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. - * @param message ListChangelogsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ListEntityTypesRequest. */ + interface IListEntityTypesRequest { - /** - * Converts this ListChangelogsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListEntityTypesRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for ListChangelogsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListEntityTypesRequest languageCode */ + languageCode?: (string|null); - /** Properties of a GetChangelogRequest. */ - interface IGetChangelogRequest { + /** ListEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** GetChangelogRequest name */ - name?: (string|null); + /** ListEntityTypesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a GetChangelogRequest. */ - class GetChangelogRequest implements IGetChangelogRequest { + /** Represents a ListEntityTypesRequest. */ + class ListEntityTypesRequest implements IListEntityTypesRequest { /** - * Constructs a new GetChangelogRequest. + * Constructs a new ListEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest); - /** GetChangelogRequest name. */ - public name: string; + /** ListEntityTypesRequest parent. */ + public parent: string; + + /** ListEntityTypesRequest languageCode. */ + public languageCode: string; + + /** ListEntityTypesRequest pageSize. */ + public pageSize: number; + + /** ListEntityTypesRequest pageToken. */ + public pageToken: string; /** - * Creates a new GetChangelogRequest instance using the specified properties. + * Creates a new ListEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetChangelogRequest instance + * @returns ListEntityTypesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; /** - * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. - * @param message GetChangelogRequest message or plain object to encode + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. - * @param message GetChangelogRequest message or plain object to encode + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetChangelogRequest message from the specified reader or buffer. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetChangelogRequest + * @returns ListEntityTypesRequest * @throws {Error} If the payload is not a reader or 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.GetChangelogRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; /** - * Decodes a GetChangelogRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetChangelogRequest + * @returns ListEntityTypesRequest * @throws {Error} If the payload is not a 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.GetChangelogRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; /** - * Verifies a GetChangelogRequest message. + * Verifies a ListEntityTypesRequest message. * @param message Plain 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 GetChangelogRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetChangelogRequest + * @returns ListEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; /** - * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. - * @param message GetChangelogRequest + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListEntityTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetChangelogRequest to JSON. + * Converts this ListEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetChangelogRequest + * Gets the default type url for ListEntityTypesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Changelog. */ - interface IChangelog { - - /** Changelog name */ - name?: (string|null); - - /** Changelog userEmail */ - userEmail?: (string|null); - - /** Changelog displayName */ - displayName?: (string|null); - - /** Changelog action */ - action?: (string|null); - - /** Changelog type */ - type?: (string|null); + /** Properties of a ListEntityTypesResponse. */ + interface IListEntityTypesResponse { - /** Changelog resource */ - resource?: (string|null); + /** ListEntityTypesResponse entityTypes */ + entityTypes?: (google.cloud.dialogflow.cx.v3beta1.IEntityType[]|null); - /** Changelog createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a Changelog. */ - class Changelog implements IChangelog { + /** Represents a ListEntityTypesResponse. */ + class ListEntityTypesResponse implements IListEntityTypesResponse { /** - * Constructs a new Changelog. + * Constructs a new ListEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IChangelog); - - /** Changelog name. */ - public name: string; - - /** Changelog userEmail. */ - public userEmail: string; - - /** Changelog displayName. */ - public displayName: string; - - /** Changelog action. */ - public action: string; - - /** Changelog type. */ - public type: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse); - /** Changelog resource. */ - public resource: string; + /** ListEntityTypesResponse entityTypes. */ + public entityTypes: google.cloud.dialogflow.cx.v3beta1.IEntityType[]; - /** Changelog createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new Changelog instance using the specified properties. + * Creates a new ListEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Changelog instance + * @returns ListEntityTypesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IChangelog): google.cloud.dialogflow.cx.v3beta1.Changelog; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; /** - * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. - * @param message Changelog message or plain object to encode + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. - * @param message Changelog message or plain object to encode + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Changelog message from the specified reader or buffer. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Changelog + * @returns ListEntityTypesResponse * @throws {Error} If the payload is not a reader or 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.Changelog; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; /** - * Decodes a Changelog message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Changelog + * @returns ListEntityTypesResponse * @throws {Error} If the payload is not a 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.Changelog; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; /** - * Verifies a Changelog message. + * Verifies a ListEntityTypesResponse message. * @param message Plain 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 Changelog message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Changelog + * @returns ListEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Changelog; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; /** - * Creates a plain object from a Changelog message. Also converts values to other types if specified. - * @param message Changelog + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListEntityTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Changelog, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Changelog to JSON. + * Converts this ListEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Changelog + * Gets the default type url for ListEntityTypesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a Deployments */ - class Deployments extends $protobuf.rpc.Service { - - /** - * Constructs a new Deployments 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 Deployments 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): Deployments; - - /** - * Calls ListDeployments. - * @param request ListDeploymentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDeploymentsResponse - */ - public listDeployments(request: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeploymentsCallback): void; - - /** - * Calls ListDeployments. - * @param request ListDeploymentsRequest message or plain object - * @returns Promise - */ - public listDeployments(request: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest): Promise; - - /** - * Calls GetDeployment. - * @param request GetDeploymentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Deployment - */ - public getDeployment(request: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeploymentCallback): void; - - /** - * Calls GetDeployment. - * @param request GetDeploymentRequest message or plain object - * @returns Promise - */ - public getDeployment(request: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest): Promise; - } - - namespace Deployments { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments|listDeployments}. - * @param error Error, if any - * @param [response] ListDeploymentsResponse - */ - type ListDeploymentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments|getDeployment}. - * @param error Error, if any - * @param [response] Deployment - */ - type GetDeploymentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Deployment) => void; - } - - /** Properties of a Deployment. */ - interface IDeployment { + /** Properties of a GetEntityTypeRequest. */ + interface IGetEntityTypeRequest { - /** Deployment name */ + /** GetEntityTypeRequest name */ name?: (string|null); - /** Deployment flowVersion */ - flowVersion?: (string|null); - - /** Deployment state */ - state?: (google.cloud.dialogflow.cx.v3beta1.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Deployment.State|null); - - /** Deployment result */ - result?: (google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null); - - /** Deployment startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** Deployment endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** GetEntityTypeRequest languageCode */ + languageCode?: (string|null); } - /** Represents a Deployment. */ - class Deployment implements IDeployment { + /** Represents a GetEntityTypeRequest. */ + class GetEntityTypeRequest implements IGetEntityTypeRequest { /** - * Constructs a new Deployment. + * Constructs a new GetEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployment); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest); - /** Deployment name. */ + /** GetEntityTypeRequest name. */ public name: string; - /** Deployment flowVersion. */ - public flowVersion: string; - - /** Deployment state. */ - public state: (google.cloud.dialogflow.cx.v3beta1.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Deployment.State); - - /** Deployment result. */ - public result?: (google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null); - - /** Deployment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** Deployment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** GetEntityTypeRequest languageCode. */ + public languageCode: string; /** - * Creates a new Deployment instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Deployment instance + * @returns GetEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployment): google.cloud.dialogflow.cx.v3beta1.Deployment; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; /** - * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. - * @param message Deployment message or plain object to encode + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. - * @param message Deployment message or plain object to encode + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Deployment message from the specified reader or buffer. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Deployment + * @returns GetEntityTypeRequest * @throws {Error} If the payload is not a reader or 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.Deployment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; /** - * Decodes a Deployment message from the specified reader or buffer, length delimited. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Deployment + * @returns GetEntityTypeRequest * @throws {Error} If the payload is not a 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.Deployment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; /** - * Verifies a Deployment message. + * Verifies a GetEntityTypeRequest message. * @param message Plain 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 Deployment message from a plain object. Also converts values to their respective internal types. + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Deployment + * @returns GetEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Deployment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; /** - * Creates a plain object from a Deployment message. Also converts values to other types if specified. - * @param message Deployment + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Deployment, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Deployment to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Gets the default type url for Deployment - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Deployment { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - RUNNING = 1, - SUCCEEDED = 2, - FAILED = 3 - } - - /** Properties of a Result. */ - interface IResult { - - /** Result deploymentTestResults */ - deploymentTestResults?: (string[]|null); - - /** Result experiment */ - experiment?: (string|null); - } - - /** Represents a Result. */ - class Result implements IResult { - - /** - * Constructs a new Result. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Deployment.IResult); - - /** Result deploymentTestResults. */ - public deploymentTestResults: string[]; - - /** Result experiment. */ - public experiment: string; - - /** - * 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.Deployment.IResult): google.cloud.dialogflow.cx.v3beta1.Deployment.Result; - - /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.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.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.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.Deployment.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.Deployment.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.Deployment.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.Deployment.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.Deployment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Result to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + * Converts this GetEntityTypeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Result - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for GetEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDeploymentsRequest. */ - interface IListDeploymentsRequest { + /** Properties of a CreateEntityTypeRequest. */ + interface ICreateEntityTypeRequest { - /** ListDeploymentsRequest parent */ + /** CreateEntityTypeRequest parent */ parent?: (string|null); - /** ListDeploymentsRequest pageSize */ - pageSize?: (number|null); + /** CreateEntityTypeRequest entityType */ + entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); - /** ListDeploymentsRequest pageToken */ - pageToken?: (string|null); + /** CreateEntityTypeRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListDeploymentsRequest. */ - class ListDeploymentsRequest implements IListDeploymentsRequest { + /** Represents a CreateEntityTypeRequest. */ + class CreateEntityTypeRequest implements ICreateEntityTypeRequest { /** - * Constructs a new ListDeploymentsRequest. + * Constructs a new CreateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest); - /** ListDeploymentsRequest parent. */ + /** CreateEntityTypeRequest parent. */ public parent: string; - /** ListDeploymentsRequest pageSize. */ - public pageSize: number; + /** CreateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); - /** ListDeploymentsRequest pageToken. */ - public pageToken: string; + /** CreateEntityTypeRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListDeploymentsRequest instance using the specified properties. + * Creates a new CreateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentsRequest instance + * @returns CreateEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; /** - * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. - * @param message ListDeploymentsRequest message or plain object to encode + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. - * @param message ListDeploymentsRequest message or plain object to encode + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentsRequest + * @returns CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or 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.ListDeploymentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; /** - * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentsRequest + * @returns CreateEntityTypeRequest * @throws {Error} If the payload is not a 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.ListDeploymentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; /** - * Verifies a ListDeploymentsRequest message. + * Verifies a CreateEntityTypeRequest message. * @param message Plain 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 ListDeploymentsRequest 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. * @param object Plain object - * @returns ListDeploymentsRequest + * @returns CreateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; /** - * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. - * @param message ListDeploymentsRequest + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentsRequest to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDeploymentsRequest + * Gets the default type url for CreateEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDeploymentsResponse. */ - interface IListDeploymentsResponse { + /** Properties of an UpdateEntityTypeRequest. */ + interface IUpdateEntityTypeRequest { - /** ListDeploymentsResponse deployments */ - deployments?: (google.cloud.dialogflow.cx.v3beta1.IDeployment[]|null); + /** UpdateEntityTypeRequest entityType */ + entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); - /** ListDeploymentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** UpdateEntityTypeRequest languageCode */ + languageCode?: (string|null); + + /** UpdateEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListDeploymentsResponse. */ - class ListDeploymentsResponse implements IListDeploymentsResponse { + /** Represents an UpdateEntityTypeRequest. */ + class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { /** - * Constructs a new ListDeploymentsResponse. + * Constructs a new UpdateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest); - /** ListDeploymentsResponse deployments. */ - public deployments: google.cloud.dialogflow.cx.v3beta1.IDeployment[]; + /** UpdateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); - /** ListDeploymentsResponse nextPageToken. */ - public nextPageToken: string; + /** UpdateEntityTypeRequest languageCode. */ + public languageCode: string; + + /** UpdateEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListDeploymentsResponse instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentsResponse instance + * @returns UpdateEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; /** - * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. - * @param message ListDeploymentsResponse message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. - * @param message ListDeploymentsResponse message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentsResponse + * @returns UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or 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.ListDeploymentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentsResponse + * @returns UpdateEntityTypeRequest * @throws {Error} If the payload is not a 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.ListDeploymentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; /** - * Verifies a ListDeploymentsResponse message. + * Verifies an UpdateEntityTypeRequest message. * @param message Plain 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 ListDeploymentsResponse 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. * @param object Plain object - * @returns ListDeploymentsResponse + * @returns UpdateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; /** - * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. - * @param message ListDeploymentsResponse + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentsResponse to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDeploymentsResponse + * Gets the default type url for UpdateEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDeploymentRequest. */ - interface IGetDeploymentRequest { + /** Properties of a DeleteEntityTypeRequest. */ + interface IDeleteEntityTypeRequest { - /** GetDeploymentRequest name */ + /** DeleteEntityTypeRequest name */ name?: (string|null); + + /** DeleteEntityTypeRequest force */ + force?: (boolean|null); } - /** Represents a GetDeploymentRequest. */ - class GetDeploymentRequest implements IGetDeploymentRequest { + /** Represents a DeleteEntityTypeRequest. */ + class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { /** - * Constructs a new GetDeploymentRequest. + * Constructs a new DeleteEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest); - /** GetDeploymentRequest name. */ + /** DeleteEntityTypeRequest name. */ public name: string; + /** DeleteEntityTypeRequest force. */ + public force: boolean; + /** - * Creates a new GetDeploymentRequest instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDeploymentRequest instance + * @returns DeleteEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; /** - * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. - * @param message GetDeploymentRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. - * @param message GetDeploymentRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDeploymentRequest + * @returns DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or 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.GetDeploymentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; /** - * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDeploymentRequest + * @returns DeleteEntityTypeRequest * @throws {Error} If the payload is not a 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.GetDeploymentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; /** - * Verifies a GetDeploymentRequest message. + * Verifies a DeleteEntityTypeRequest message. * @param message Plain 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 GetDeploymentRequest 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. * @param object Plain object - * @returns GetDeploymentRequest + * @returns DeleteEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; /** - * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. - * @param message GetDeploymentRequest + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDeploymentRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDeploymentRequest + * Gets the default type url for DeleteEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents an EntityTypes */ - class EntityTypes extends $protobuf.rpc.Service { + /** Represents an Environments */ + class Environments extends $protobuf.rpc.Service { /** - * Constructs a new EntityTypes service. + * Constructs a new Environments service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -43593,4520 +46016,4381 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new EntityTypes service using the specified rpc implementation. + * Creates new Environments 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): EntityTypes; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Environments; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback): void; + public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback): void; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object * @returns Promise */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): Promise; + public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): Promise; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Environment */ - public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback): void; + public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback): void; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object * @returns Promise */ - public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): Promise; + public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): Promise; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback): void; + public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback): void; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object * @returns Promise */ - public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): Promise; + public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): Promise; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback): void; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback): void; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object * @returns Promise */ - public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): Promise; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): Promise; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback): void; + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback): void; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object * @returns Promise */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): Promise; + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): Promise; + + /** + * Calls LookupEnvironmentHistory. + * @param request LookupEnvironmentHistoryRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse + */ + public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback): void; + + /** + * Calls LookupEnvironmentHistory. + * @param request LookupEnvironmentHistoryRequest message or plain object + * @returns Promise + */ + public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): Promise; + + /** + * Calls RunContinuousTest. + * @param request RunContinuousTestRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public runContinuousTest(request: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTestCallback): void; + + /** + * Calls RunContinuousTest. + * @param request RunContinuousTestRequest message or plain object + * @returns Promise + */ + public runContinuousTest(request: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest): Promise; + + /** + * Calls ListContinuousTestResults. + * @param request ListContinuousTestResultsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse + */ + public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResultsCallback): void; + + /** + * Calls ListContinuousTestResults. + * @param request ListContinuousTestResultsRequest message or plain object + * @returns Promise + */ + public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest): Promise; + + /** + * Calls DeployFlow. + * @param request DeployFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deployFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlowCallback): void; + + /** + * Calls DeployFlow. + * @param request DeployFlowRequest message or plain object + * @returns Promise + */ + public deployFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest): Promise; } - namespace EntityTypes { + namespace Environments { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|listEntityTypes}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|listEnvironments}. * @param error Error, if any - * @param [response] ListEntityTypesResponse + * @param [response] ListEnvironmentsResponse */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) => void; + type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|getEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|getEnvironment}. * @param error Error, if any - * @param [response] EntityType + * @param [response] Environment */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; + type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Environment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|createEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|createEnvironment}. * @param error Error, if any - * @param [response] EntityType + * @param [response] Operation */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; + type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|updateEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|updateEnvironment}. * @param error Error, if any - * @param [response] EntityType + * @param [response] Operation */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; + type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes|deleteEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|deleteEnvironment}. * @param error Error, if any * @param [response] Empty */ - type DeleteEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + type DeleteEnvironmentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|lookupEnvironmentHistory}. + * @param error Error, if any + * @param [response] LookupEnvironmentHistoryResponse + */ + type LookupEnvironmentHistoryCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|runContinuousTest}. + * @param error Error, if any + * @param [response] Operation + */ + type RunContinuousTestCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|listContinuousTestResults}. + * @param error Error, if any + * @param [response] ListContinuousTestResultsResponse + */ + type ListContinuousTestResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|deployFlow}. + * @param error Error, if any + * @param [response] Operation + */ + type DeployFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of an EntityType. */ - interface IEntityType { + /** Properties of an Environment. */ + interface IEnvironment { - /** EntityType name */ + /** Environment name */ name?: (string|null); - /** EntityType displayName */ + /** Environment displayName */ displayName?: (string|null); - /** EntityType kind */ - kind?: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null); - - /** EntityType autoExpansionMode */ - autoExpansionMode?: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null); + /** Environment description */ + description?: (string|null); - /** EntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); + /** Environment versionConfigs */ + versionConfigs?: (google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]|null); - /** EntityType excludedPhrases */ - excludedPhrases?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]|null); + /** Environment updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** EntityType enableFuzzyExtraction */ - enableFuzzyExtraction?: (boolean|null); + /** Environment testCasesConfig */ + testCasesConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null); - /** EntityType redact */ - redact?: (boolean|null); + /** Environment webhookConfig */ + webhookConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig|null); } - /** Represents an EntityType. */ - class EntityType implements IEntityType { + /** Represents an Environment. */ + class Environment implements IEnvironment { /** - * Constructs a new EntityType. + * Constructs a new Environment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment); - /** EntityType name. */ + /** Environment name. */ public name: string; - /** EntityType displayName. */ + /** Environment displayName. */ public displayName: string; - /** EntityType kind. */ - public kind: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind); - - /** EntityType autoExpansionMode. */ - public autoExpansionMode: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode); + /** Environment description. */ + public description: string; - /** EntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; + /** Environment versionConfigs. */ + public versionConfigs: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]; - /** EntityType excludedPhrases. */ - public excludedPhrases: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]; + /** Environment updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** EntityType enableFuzzyExtraction. */ - public enableFuzzyExtraction: boolean; + /** Environment testCasesConfig. */ + public testCasesConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null); - /** EntityType redact. */ - public redact: boolean; + /** Environment webhookConfig. */ + public webhookConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig|null); /** - * Creates a new EntityType instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @param [properties] Properties to set - * @returns EntityType instance + * @returns Environment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment): google.cloud.dialogflow.cx.v3beta1.Environment; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes an Environment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityType + * @returns Environment * @throws {Error} If the payload is not a reader or 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.EntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes an Environment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityType + * @returns Environment * @throws {Error} If the payload is not a 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.EntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment; /** - * Verifies an EntityType message. + * Verifies an Environment message. * @param message Plain 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 EntityType 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. * @param object Plain object - * @returns EntityType + * @returns Environment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. - * @param message EntityType + * Creates a plain object from an Environment message. Also converts values to other types if specified. + * @param message Environment * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityType to JSON. + * Converts this Environment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EntityType + * Gets the default type url for Environment * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace EntityType { - - /** Kind enum. */ - enum Kind { - KIND_UNSPECIFIED = 0, - KIND_MAP = 1, - KIND_LIST = 2, - KIND_REGEXP = 3 - } - - /** AutoExpansionMode enum. */ - enum AutoExpansionMode { - AUTO_EXPANSION_MODE_UNSPECIFIED = 0, - AUTO_EXPANSION_MODE_DEFAULT = 1 - } - - /** Properties of an Entity. */ - interface IEntity { + namespace Environment { - /** Entity value */ - value?: (string|null); + /** Properties of a VersionConfig. */ + interface IVersionConfig { - /** Entity synonyms */ - synonyms?: (string[]|null); + /** VersionConfig version */ + version?: (string|null); } - /** Represents an Entity. */ - class Entity implements IEntity { + /** Represents a VersionConfig. */ + class VersionConfig implements IVersionConfig { /** - * Constructs a new Entity. + * Constructs a new VersionConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity); - - /** Entity value. */ - public value: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig); - /** Entity synonyms. */ - public synonyms: string[]; + /** VersionConfig version. */ + public version: string; /** - * Creates a new Entity instance using the specified properties. + * Creates a new VersionConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Entity instance + * @returns VersionConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; /** - * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. - * @param message Entity message or plain object to encode + * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * @param message VersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. - * @param message Entity message or plain object to encode + * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * @param message VersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Entity message from the specified reader or buffer. + * Decodes a VersionConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Entity + * @returns VersionConfig * @throws {Error} If the payload is not a reader or 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.EntityType.Entity; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; /** - * Decodes an Entity message from the specified reader or buffer, length delimited. + * Decodes a VersionConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Entity + * @returns VersionConfig * @throws {Error} If the payload is not a 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.EntityType.Entity; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; /** - * Verifies an Entity message. + * Verifies a VersionConfig message. * @param message Plain 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 Entity message from a plain object. Also converts values to their respective internal types. + * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Entity + * @returns VersionConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; /** - * Creates a plain object from an Entity message. Also converts values to other types if specified. - * @param message Entity + * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. + * @param message VersionConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Entity to JSON. + * Converts this VersionConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Entity + * Gets the default type url for VersionConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExcludedPhrase. */ - interface IExcludedPhrase { + /** Properties of a TestCasesConfig. */ + interface ITestCasesConfig { - /** ExcludedPhrase value */ - value?: (string|null); + /** TestCasesConfig testCases */ + testCases?: (string[]|null); + + /** TestCasesConfig enableContinuousRun */ + enableContinuousRun?: (boolean|null); + + /** TestCasesConfig enablePredeploymentRun */ + enablePredeploymentRun?: (boolean|null); } - /** Represents an ExcludedPhrase. */ - class ExcludedPhrase implements IExcludedPhrase { + /** Represents a TestCasesConfig. */ + class TestCasesConfig implements ITestCasesConfig { /** - * Constructs a new ExcludedPhrase. + * Constructs a new TestCasesConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig); - /** ExcludedPhrase value. */ - public value: string; + /** TestCasesConfig testCases. */ + public testCases: string[]; + + /** TestCasesConfig enableContinuousRun. */ + public enableContinuousRun: boolean; + + /** TestCasesConfig enablePredeploymentRun. */ + public enablePredeploymentRun: boolean; /** - * Creates a new ExcludedPhrase instance using the specified properties. + * Creates a new TestCasesConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ExcludedPhrase instance + * @returns TestCasesConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; /** - * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. - * @param message ExcludedPhrase message or plain object to encode + * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. + * @param message TestCasesConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. - * @param message ExcludedPhrase message or plain object to encode + * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. + * @param message TestCasesConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer. + * Decodes a TestCasesConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExcludedPhrase + * @returns TestCasesConfig * @throws {Error} If the payload is not a reader or 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.EntityType.ExcludedPhrase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExcludedPhrase + * @returns TestCasesConfig * @throws {Error} If the payload is not a 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.EntityType.ExcludedPhrase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; /** - * Verifies an ExcludedPhrase message. + * Verifies a TestCasesConfig message. * @param message Plain 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 ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExcludedPhrase + * @returns TestCasesConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; /** - * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. - * @param message ExcludedPhrase + * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. + * @param message TestCasesConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExcludedPhrase to JSON. + * Converts this TestCasesConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExcludedPhrase + * Gets the default type url for TestCasesConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - - /** Properties of a ListEntityTypesRequest. */ - interface IListEntityTypesRequest { - - /** ListEntityTypesRequest parent */ - parent?: (string|null); - - /** ListEntityTypesRequest languageCode */ - languageCode?: (string|null); - - /** ListEntityTypesRequest pageSize */ - pageSize?: (number|null); - - /** ListEntityTypesRequest pageToken */ - pageToken?: (string|null); - } - - /** Represents a ListEntityTypesRequest. */ - class ListEntityTypesRequest implements IListEntityTypesRequest { - - /** - * Constructs a new ListEntityTypesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest); - - /** ListEntityTypesRequest parent. */ - public parent: string; - - /** ListEntityTypesRequest languageCode. */ - public languageCode: string; - - /** ListEntityTypesRequest pageSize. */ - public pageSize: number; - - /** ListEntityTypesRequest pageToken. */ - public pageToken: string; - - /** - * Creates a new ListEntityTypesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListEntityTypesRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; - - /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListEntityTypesRequest - * @throws {Error} If the payload is not a reader or 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.ListEntityTypesRequest; - - /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListEntityTypesRequest - * @throws {Error} If the payload is not a 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.ListEntityTypesRequest; - - /** - * Verifies a ListEntityTypesRequest message. - * @param message Plain 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 ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListEntityTypesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; - - /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListEntityTypesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListEntityTypesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ListEntityTypesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListEntityTypesResponse. */ - interface IListEntityTypesResponse { - - /** ListEntityTypesResponse entityTypes */ - entityTypes?: (google.cloud.dialogflow.cx.v3beta1.IEntityType[]|null); - - /** ListEntityTypesResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListEntityTypesResponse. */ - class ListEntityTypesResponse implements IListEntityTypesResponse { - - /** - * Constructs a new ListEntityTypesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse); - - /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.dialogflow.cx.v3beta1.IEntityType[]; - - /** ListEntityTypesResponse nextPageToken. */ - public nextPageToken: string; - - /** - * Creates a new ListEntityTypesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListEntityTypesResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; - - /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListEntityTypesResponse - * @throws {Error} If the payload is not a reader or 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.ListEntityTypesResponse; - - /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListEntityTypesResponse - * @throws {Error} If the payload is not a 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.ListEntityTypesResponse; - - /** - * Verifies a ListEntityTypesResponse message. - * @param message Plain 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 ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListEntityTypesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; - - /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListEntityTypesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListEntityTypesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ListEntityTypesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - /** Properties of a GetEntityTypeRequest. */ - interface IGetEntityTypeRequest { - - /** GetEntityTypeRequest name */ - name?: (string|null); - - /** GetEntityTypeRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a GetEntityTypeRequest. */ - class GetEntityTypeRequest implements IGetEntityTypeRequest { + /** Properties of a WebhookConfig. */ + interface IWebhookConfig { - /** - * Constructs a new GetEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest); + /** WebhookConfig webhookOverrides */ + webhookOverrides?: (google.cloud.dialogflow.cx.v3beta1.IWebhook[]|null); + } - /** GetEntityTypeRequest name. */ - public name: string; + /** Represents a WebhookConfig. */ + class WebhookConfig implements IWebhookConfig { - /** GetEntityTypeRequest languageCode. */ - public languageCode: string; + /** + * Constructs a new WebhookConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig); - /** - * Creates a new GetEntityTypeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetEntityTypeRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + /** WebhookConfig webhookOverrides. */ + public webhookOverrides: google.cloud.dialogflow.cx.v3beta1.IWebhook[]; - /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new WebhookConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns WebhookConfig instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig): google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig; - /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified WebhookConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify|verify} messages. + * @param message WebhookConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetEntityTypeRequest - * @throws {Error} If the payload is not a reader or 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.GetEntityTypeRequest; + /** + * Encodes the specified WebhookConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify|verify} messages. + * @param message WebhookConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetEntityTypeRequest - * @throws {Error} If the payload is not a 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.GetEntityTypeRequest; + /** + * Decodes a WebhookConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WebhookConfig + * @throws {Error} If the payload is not a reader or 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.Environment.WebhookConfig; - /** - * Verifies a GetEntityTypeRequest message. - * @param message 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 WebhookConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns WebhookConfig + * @throws {Error} If the payload is not a 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.Environment.WebhookConfig; - /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetEntityTypeRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + /** + * Verifies a WebhookConfig message. + * @param message Plain 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 GetEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetEntityTypeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a WebhookConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WebhookConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig; - /** - * Converts this GetEntityTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a WebhookConfig message. Also converts values to other types if specified. + * @param message WebhookConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for GetEntityTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this WebhookConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WebhookConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a CreateEntityTypeRequest. */ - interface ICreateEntityTypeRequest { + /** Properties of a ListEnvironmentsRequest. */ + interface IListEnvironmentsRequest { - /** CreateEntityTypeRequest parent */ + /** ListEnvironmentsRequest parent */ parent?: (string|null); - /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + /** ListEnvironmentsRequest pageSize */ + pageSize?: (number|null); - /** CreateEntityTypeRequest languageCode */ - languageCode?: (string|null); + /** ListEnvironmentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a CreateEntityTypeRequest. */ - class CreateEntityTypeRequest implements ICreateEntityTypeRequest { + /** Represents a ListEnvironmentsRequest. */ + class ListEnvironmentsRequest implements IListEnvironmentsRequest { /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new ListEnvironmentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest); - /** CreateEntityTypeRequest parent. */ + /** ListEnvironmentsRequest parent. */ public parent: string; - /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + /** ListEnvironmentsRequest pageSize. */ + public pageSize: number; - /** CreateEntityTypeRequest languageCode. */ - public languageCode: string; + /** ListEnvironmentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new ListEnvironmentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEntityTypeRequest instance + * @returns ListEnvironmentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * 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.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * 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.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * 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 CreateEntityTypeRequest + * @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.CreateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeRequest + * @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.CreateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; /** - * Verifies a CreateEntityTypeRequest message. + * 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 CreateEntityTypeRequest 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. * @param object Plain object - * @returns CreateEntityTypeRequest + * @returns ListEnvironmentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateEntityTypeRequest + * 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.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this ListEnvironmentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEntityTypeRequest + * Gets the default type url for ListEnvironmentsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateEntityTypeRequest. */ - interface IUpdateEntityTypeRequest { - - /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + /** Properties of a ListEnvironmentsResponse. */ + interface IListEnvironmentsResponse { - /** UpdateEntityTypeRequest languageCode */ - languageCode?: (string|null); + /** ListEnvironmentsResponse environments */ + environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); - /** UpdateEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListEnvironmentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateEntityTypeRequest. */ - class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { + /** Represents a ListEnvironmentsResponse. */ + class ListEnvironmentsResponse implements IListEnvironmentsResponse { /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new ListEnvironmentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest); - - /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse); - /** UpdateEntityTypeRequest languageCode. */ - public languageCode: string; + /** ListEnvironmentsResponse environments. */ + public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; - /** UpdateEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListEnvironmentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new ListEnvironmentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEntityTypeRequest instance + * @returns ListEnvironmentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * 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.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * 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.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * 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 UpdateEntityTypeRequest + * @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.UpdateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEntityTypeRequest + * @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.UpdateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; /** - * Verifies an UpdateEntityTypeRequest message. + * 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 an UpdateEntityTypeRequest 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. * @param object Plain object - * @returns UpdateEntityTypeRequest + * @returns ListEnvironmentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateEntityTypeRequest + * 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.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this ListEnvironmentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateEntityTypeRequest + * Gets the default type url for ListEnvironmentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteEntityTypeRequest. */ - interface IDeleteEntityTypeRequest { + /** Properties of a GetEnvironmentRequest. */ + interface IGetEnvironmentRequest { - /** DeleteEntityTypeRequest name */ + /** GetEnvironmentRequest name */ name?: (string|null); - - /** DeleteEntityTypeRequest force */ - force?: (boolean|null); } - /** Represents a DeleteEntityTypeRequest. */ - class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { + /** Represents a GetEnvironmentRequest. */ + class GetEnvironmentRequest implements IGetEnvironmentRequest { /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new GetEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest); - /** DeleteEntityTypeRequest name. */ + /** GetEnvironmentRequest name. */ public name: string; - /** DeleteEntityTypeRequest force. */ - public force: boolean; - /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new GetEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEntityTypeRequest instance + * @returns GetEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * 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.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * 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.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * 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 DeleteEntityTypeRequest - * @throws {Error} If the payload is not a reader or 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.DeleteEntityTypeRequest; - - /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteEntityTypeRequest + * @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.DeleteEntityTypeRequest; - - /** - * Verifies a DeleteEntityTypeRequest message. - * @param message Plain 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 DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteEntityTypeRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; - - /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteEntityTypeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteEntityTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteEntityTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Represents an Environments */ - class Environments extends $protobuf.rpc.Service { - - /** - * Constructs a new Environments 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 Environments 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): Environments; - - /** - * Calls ListEnvironments. - * @param request ListEnvironmentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse - */ - public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback): void; - - /** - * Calls ListEnvironments. - * @param request ListEnvironmentsRequest message or plain object - * @returns Promise - */ - public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): Promise; - - /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Environment - */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback): void; - - /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @returns Promise - */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): Promise; - - /** - * Calls CreateEnvironment. - * @param request CreateEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback): void; - - /** - * Calls CreateEnvironment. - * @param request CreateEnvironmentRequest message or plain object - * @returns Promise - */ - public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): Promise; - - /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback): void; - - /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @returns Promise - */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): Promise; - - /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback): void; - - /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @returns Promise - */ - public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): Promise; - - /** - * Calls LookupEnvironmentHistory. - * @param request LookupEnvironmentHistoryRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse - */ - public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback): void; - - /** - * Calls LookupEnvironmentHistory. - * @param request LookupEnvironmentHistoryRequest message or plain object - * @returns Promise - */ - public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): Promise; - - /** - * Calls RunContinuousTest. - * @param request RunContinuousTestRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public runContinuousTest(request: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTestCallback): void; - - /** - * Calls RunContinuousTest. - * @param request RunContinuousTestRequest message or plain object - * @returns Promise - */ - public runContinuousTest(request: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest): Promise; - - /** - * Calls ListContinuousTestResults. - * @param request ListContinuousTestResultsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse - */ - public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResultsCallback): void; - - /** - * Calls ListContinuousTestResults. - * @param request ListContinuousTestResultsRequest message or plain object - * @returns Promise - */ - public listContinuousTestResults(request: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest): Promise; - - /** - * Calls DeployFlow. - * @param request DeployFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deployFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlowCallback): void; - - /** - * Calls DeployFlow. - * @param request DeployFlowRequest message or plain object - * @returns Promise - */ - public deployFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest): Promise; - } - - namespace Environments { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|listEnvironments}. - * @param error Error, if any - * @param [response] ListEnvironmentsResponse - */ - type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|getEnvironment}. - * @param error Error, if any - * @param [response] Environment - */ - type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Environment) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|createEnvironment}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|updateEnvironment}. - * @param error Error, if any - * @param [response] Operation + * 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 */ - type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|deleteEnvironment}. - * @param error Error, if any - * @param [response] Empty + * Verifies a GetEnvironmentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type DeleteEnvironmentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|lookupEnvironmentHistory}. - * @param error Error, if any - * @param [response] LookupEnvironmentHistoryResponse + * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetEnvironmentRequest */ - type LookupEnvironmentHistoryCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|runContinuousTest}. - * @param error Error, if any - * @param [response] Operation + * 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 */ - type RunContinuousTestCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|listContinuousTestResults}. - * @param error Error, if any - * @param [response] ListContinuousTestResultsResponse + * Converts this GetEnvironmentRequest to JSON. + * @returns JSON object */ - type ListContinuousTestResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|deployFlow}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for GetEnvironmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type DeployFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Environment. */ - interface IEnvironment { - - /** Environment name */ - name?: (string|null); - - /** Environment displayName */ - displayName?: (string|null); - - /** Environment description */ - description?: (string|null); - - /** Environment versionConfigs */ - versionConfigs?: (google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]|null); - - /** Environment updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a CreateEnvironmentRequest. */ + interface ICreateEnvironmentRequest { - /** Environment testCasesConfig */ - testCasesConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null); + /** CreateEnvironmentRequest parent */ + parent?: (string|null); - /** Environment webhookConfig */ - webhookConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig|null); + /** CreateEnvironmentRequest environment */ + environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); } - /** Represents an Environment. */ - class Environment implements IEnvironment { + /** Represents a CreateEnvironmentRequest. */ + class CreateEnvironmentRequest implements ICreateEnvironmentRequest { /** - * Constructs a new Environment. + * Constructs a new CreateEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment); - - /** Environment name. */ - public name: string; - - /** Environment displayName. */ - public displayName: string; - - /** Environment description. */ - public description: string; - - /** Environment versionConfigs. */ - public versionConfigs: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]; - - /** Environment updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest); - /** Environment testCasesConfig. */ - public testCasesConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null); + /** CreateEnvironmentRequest parent. */ + public parent: string; - /** Environment webhookConfig. */ - public webhookConfig?: (google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig|null); + /** CreateEnvironmentRequest environment. */ + public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); /** - * Creates a new Environment instance using the specified properties. + * Creates a new CreateEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Environment instance + * @returns CreateEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment): google.cloud.dialogflow.cx.v3beta1.Environment; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode + * 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.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. - * @param message Environment message or plain object to encode + * 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.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Environment message from the specified reader or buffer. + * 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 Environment + * @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.Environment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; /** - * Decodes an Environment message from the specified reader or buffer, length delimited. + * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Environment + * @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.Environment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; /** - * Verifies an Environment message. + * 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 an Environment 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. * @param object Plain object - * @returns Environment + * @returns CreateEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @param message Environment + * 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.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Environment to JSON. + * Converts this CreateEnvironmentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Environment + * Gets the default type url for CreateEnvironmentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Environment { - - /** Properties of a VersionConfig. */ - interface IVersionConfig { - - /** VersionConfig version */ - version?: (string|null); - } - - /** Represents a VersionConfig. */ - class VersionConfig implements IVersionConfig { - - /** - * Constructs a new VersionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig); - - /** VersionConfig version. */ - public version: string; - - /** - * Creates a new VersionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns VersionConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; - - /** - * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. - * @param message VersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. - * @param message VersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VersionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VersionConfig - * @throws {Error} If the payload is not a reader or 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.Environment.VersionConfig; - - /** - * Decodes a VersionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VersionConfig - * @throws {Error} If the payload is not a 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.Environment.VersionConfig; - - /** - * Verifies a VersionConfig message. - * @param message Plain 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 VersionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VersionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; - - /** - * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. - * @param message VersionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VersionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VersionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TestCasesConfig. */ - interface ITestCasesConfig { - - /** TestCasesConfig testCases */ - testCases?: (string[]|null); - - /** TestCasesConfig enableContinuousRun */ - enableContinuousRun?: (boolean|null); - - /** TestCasesConfig enablePredeploymentRun */ - enablePredeploymentRun?: (boolean|null); - } + /** Properties of an UpdateEnvironmentRequest. */ + interface IUpdateEnvironmentRequest { - /** Represents a TestCasesConfig. */ - class TestCasesConfig implements ITestCasesConfig { + /** UpdateEnvironmentRequest environment */ + environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); - /** - * Constructs a new TestCasesConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig); + /** UpdateEnvironmentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** TestCasesConfig testCases. */ - public testCases: string[]; + /** Represents an UpdateEnvironmentRequest. */ + class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { - /** TestCasesConfig enableContinuousRun. */ - public enableContinuousRun: boolean; + /** + * Constructs a new UpdateEnvironmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest); - /** TestCasesConfig enablePredeploymentRun. */ - public enablePredeploymentRun: boolean; + /** UpdateEnvironmentRequest environment. */ + public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); - /** - * Creates a new TestCasesConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TestCasesConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; + /** UpdateEnvironmentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. - * @param message TestCasesConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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 TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. - * @param message TestCasesConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * Decodes a TestCasesConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TestCasesConfig - * @throws {Error} If the payload is not a reader or 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.Environment.TestCasesConfig; + /** + * 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 a TestCasesConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TestCasesConfig - * @throws {Error} If the payload is not a 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.Environment.TestCasesConfig; + /** + * 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; - /** - * Verifies a TestCasesConfig message. - * @param message 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 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; - /** - * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TestCasesConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig; + /** + * 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 a plain object from a TestCasesConfig message. Also converts values to other types if specified. - * @param message TestCasesConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * 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; - /** - * Converts this TestCasesConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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 }; - /** - * Gets the default type url for TestCasesConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this UpdateEnvironmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a WebhookConfig. */ - interface IWebhookConfig { + /** + * Gets the default type url for UpdateEnvironmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** WebhookConfig webhookOverrides */ - webhookOverrides?: (google.cloud.dialogflow.cx.v3beta1.IWebhook[]|null); - } + /** Properties of a DeleteEnvironmentRequest. */ + interface IDeleteEnvironmentRequest { - /** Represents a WebhookConfig. */ - class WebhookConfig implements IWebhookConfig { + /** DeleteEnvironmentRequest name */ + name?: (string|null); + } - /** - * Constructs a new WebhookConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig); + /** Represents a DeleteEnvironmentRequest. */ + class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { - /** WebhookConfig webhookOverrides. */ - public webhookOverrides: google.cloud.dialogflow.cx.v3beta1.IWebhook[]; + /** + * Constructs a new DeleteEnvironmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest); - /** - * Creates a new WebhookConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns WebhookConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig): google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig; + /** DeleteEnvironmentRequest name. */ + public name: string; - /** - * Encodes the specified WebhookConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify|verify} messages. - * @param message WebhookConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteEnvironmentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; - /** - * Encodes the specified WebhookConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify|verify} messages. - * @param message WebhookConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a WebhookConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WebhookConfig - * @throws {Error} If the payload is not a reader or 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.Environment.WebhookConfig; + /** + * 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.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a WebhookConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns WebhookConfig - * @throws {Error} If the payload is not a 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.Environment.WebhookConfig; + /** + * 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 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.DeleteEnvironmentRequest; - /** - * Verifies a WebhookConfig message. - * @param message 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 DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.DeleteEnvironmentRequest; - /** - * Creates a WebhookConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns WebhookConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig; + /** + * 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 plain object from a WebhookConfig message. Also converts values to other types if specified. - * @param message WebhookConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteEnvironmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; - /** - * Converts this WebhookConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for WebhookConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this DeleteEnvironmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteEnvironmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEnvironmentsRequest. */ - interface IListEnvironmentsRequest { + /** Properties of a LookupEnvironmentHistoryRequest. */ + interface ILookupEnvironmentHistoryRequest { - /** ListEnvironmentsRequest parent */ - parent?: (string|null); + /** LookupEnvironmentHistoryRequest name */ + name?: (string|null); - /** ListEnvironmentsRequest pageSize */ + /** LookupEnvironmentHistoryRequest pageSize */ pageSize?: (number|null); - /** ListEnvironmentsRequest pageToken */ + /** LookupEnvironmentHistoryRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListEnvironmentsRequest. */ - class ListEnvironmentsRequest implements IListEnvironmentsRequest { + /** Represents a LookupEnvironmentHistoryRequest. */ + class LookupEnvironmentHistoryRequest implements ILookupEnvironmentHistoryRequest { /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new LookupEnvironmentHistoryRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest); - /** ListEnvironmentsRequest parent. */ - public parent: string; + /** LookupEnvironmentHistoryRequest name. */ + public name: string; - /** ListEnvironmentsRequest pageSize. */ + /** LookupEnvironmentHistoryRequest pageSize. */ public pageSize: number; - /** ListEnvironmentsRequest pageToken. */ + /** LookupEnvironmentHistoryRequest pageToken. */ public pageToken: string; /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsRequest instance + * @returns LookupEnvironmentHistoryRequest 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.ILookupEnvironmentHistoryRequest): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * 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 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.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, 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 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.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsRequest 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 ListEnvironmentsRequest + * @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.ListEnvironmentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Decodes a ListEnvironmentsRequest 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 ListEnvironmentsRequest + * @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.ListEnvironmentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; /** - * Verifies a ListEnvironmentsRequest 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 ListEnvironmentsRequest 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 ListEnvironmentsRequest + * @returns LookupEnvironmentHistoryRequest */ - 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.LookupEnvironmentHistoryRequest; /** - * 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 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.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this LookupEnvironmentHistoryRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEnvironmentsRequest + * Gets the default type url for LookupEnvironmentHistoryRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEnvironmentsResponse. */ - interface IListEnvironmentsResponse { + /** Properties of a LookupEnvironmentHistoryResponse. */ + interface ILookupEnvironmentHistoryResponse { - /** ListEnvironmentsResponse environments */ + /** LookupEnvironmentHistoryResponse environments */ environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); - /** ListEnvironmentsResponse nextPageToken */ + /** LookupEnvironmentHistoryResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListEnvironmentsResponse. */ - class ListEnvironmentsResponse implements IListEnvironmentsResponse { + /** Represents a LookupEnvironmentHistoryResponse. */ + class LookupEnvironmentHistoryResponse implements ILookupEnvironmentHistoryResponse { /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new LookupEnvironmentHistoryResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse); - /** ListEnvironmentsResponse environments. */ + /** LookupEnvironmentHistoryResponse environments. */ public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; - /** ListEnvironmentsResponse nextPageToken. */ + /** LookupEnvironmentHistoryResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListEnvironmentsResponse instance + * @returns LookupEnvironmentHistoryResponse 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.ILookupEnvironmentHistoryResponse): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * 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 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.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, 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 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.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEnvironmentsResponse 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 ListEnvironmentsResponse + * @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.ListEnvironmentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Decodes a ListEnvironmentsResponse 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 ListEnvironmentsResponse + * @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.ListEnvironmentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; /** - * Verifies a ListEnvironmentsResponse 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 ListEnvironmentsResponse 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 ListEnvironmentsResponse + * @returns LookupEnvironmentHistoryResponse */ - 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.LookupEnvironmentHistoryResponse; /** - * 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 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.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this LookupEnvironmentHistoryResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEnvironmentsResponse + * Gets the default type url for LookupEnvironmentHistoryResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEnvironmentRequest. */ - interface IGetEnvironmentRequest { + /** Properties of a ContinuousTestResult. */ + interface IContinuousTestResult { - /** GetEnvironmentRequest name */ + /** ContinuousTestResult name */ name?: (string|null); + + /** ContinuousTestResult result */ + result?: (google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|null); + + /** ContinuousTestResult testCaseResults */ + testCaseResults?: (string[]|null); + + /** ContinuousTestResult runTime */ + runTime?: (google.protobuf.ITimestamp|null); } - /** Represents a GetEnvironmentRequest. */ - class GetEnvironmentRequest implements IGetEnvironmentRequest { + /** Represents a ContinuousTestResult. */ + class ContinuousTestResult implements IContinuousTestResult { /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new ContinuousTestResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult); - /** GetEnvironmentRequest name. */ + /** ContinuousTestResult name. */ public name: string; + /** ContinuousTestResult result. */ + public result: (google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult); + + /** ContinuousTestResult testCaseResults. */ + public testCaseResults: string[]; + + /** ContinuousTestResult runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); + /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * Creates a new ContinuousTestResult instance using the specified properties. * @param [properties] Properties to set - * @returns GetEnvironmentRequest instance + * @returns ContinuousTestResult 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.IContinuousTestResult): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; /** - * 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 ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * @param message ContinuousTestResult 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.IContinuousTestResult, 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 ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * @param message ContinuousTestResult 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.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a ContinuousTestResult 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 ContinuousTestResult * @throws {Error} If the payload is not a reader or 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.ContinuousTestResult; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEnvironmentRequest + * @returns ContinuousTestResult * @throws {Error} If the payload is not a 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.ContinuousTestResult; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a ContinuousTestResult message. * @param message Plain 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 ContinuousTestResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEnvironmentRequest + * @returns ContinuousTestResult */ - 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.ContinuousTestResult; /** - * 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 ContinuousTestResult message. Also converts values to other types if specified. + * @param message ContinuousTestResult * @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.ContinuousTestResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this ContinuousTestResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetEnvironmentRequest + * Gets the default type url for ContinuousTestResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateEnvironmentRequest. */ - interface ICreateEnvironmentRequest { + namespace ContinuousTestResult { - /** CreateEnvironmentRequest parent */ - parent?: (string|null); + /** AggregatedTestResult enum. */ + enum AggregatedTestResult { + AGGREGATED_TEST_RESULT_UNSPECIFIED = 0, + PASSED = 1, + FAILED = 2 + } + } - /** CreateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** Properties of a RunContinuousTestRequest. */ + interface IRunContinuousTestRequest { + + /** RunContinuousTestRequest environment */ + environment?: (string|null); } - /** Represents a CreateEnvironmentRequest. */ - class CreateEnvironmentRequest implements ICreateEnvironmentRequest { + /** Represents a RunContinuousTestRequest. */ + class RunContinuousTestRequest implements IRunContinuousTestRequest { /** - * Constructs a new CreateEnvironmentRequest. + * Constructs a new RunContinuousTestRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest); - - /** CreateEnvironmentRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest); - /** CreateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** RunContinuousTestRequest environment. */ + public environment: string; /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEnvironmentRequest instance + * @returns RunContinuousTestRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; /** - * 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 + * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. + * @param message RunContinuousTestRequest 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; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, 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 + * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. + * @param message RunContinuousTestRequest 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEnvironmentRequest + * @returns RunContinuousTestRequest * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEnvironmentRequest + * @returns RunContinuousTestRequest * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; /** - * Verifies a CreateEnvironmentRequest message. + * Verifies a RunContinuousTestRequest message. * @param message Plain 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. + * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEnvironmentRequest + * @returns RunContinuousTestRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. - * @param message CreateEnvironmentRequest + * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. + * @param message RunContinuousTestRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEnvironmentRequest to JSON. + * Converts this RunContinuousTestRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEnvironmentRequest + * Gets the default type url for RunContinuousTestRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateEnvironmentRequest. */ - interface IUpdateEnvironmentRequest { - - /** UpdateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** Properties of a RunContinuousTestResponse. */ + interface IRunContinuousTestResponse { - /** UpdateEnvironmentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** RunContinuousTestResponse continuousTestResult */ + continuousTestResult?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null); } - /** Represents an UpdateEnvironmentRequest. */ - class UpdateEnvironmentRequest implements IUpdateEnvironmentRequest { + /** Represents a RunContinuousTestResponse. */ + class RunContinuousTestResponse implements IRunContinuousTestResponse { /** - * Constructs a new UpdateEnvironmentRequest. + * Constructs a new RunContinuousTestResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse); - /** UpdateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** RunContinuousTestResponse continuousTestResult. */ + public continuousTestResult?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null); + + /** + * Creates a new RunContinuousTestResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RunContinuousTestResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; + + /** + * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. + * @param message RunContinuousTestResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. + * @param message RunContinuousTestResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RunContinuousTestResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RunContinuousTestResponse + * @throws {Error} If the payload is not a reader or 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.RunContinuousTestResponse; + + /** + * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RunContinuousTestResponse + * @throws {Error} If the payload is not a 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.RunContinuousTestResponse; + + /** + * Verifies a RunContinuousTestResponse message. + * @param message Plain 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 RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RunContinuousTestResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; + + /** + * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. + * @param message RunContinuousTestResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RunContinuousTestResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RunContinuousTestResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RunContinuousTestMetadata. */ + interface IRunContinuousTestMetadata { + + /** RunContinuousTestMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); + } + + /** Represents a RunContinuousTestMetadata. */ + class RunContinuousTestMetadata implements IRunContinuousTestMetadata { + + /** + * Constructs a new RunContinuousTestMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata); - /** UpdateEnvironmentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** RunContinuousTestMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEnvironmentRequest instance + * @returns RunContinuousTestMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; /** - * 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 + * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. + * @param message RunContinuousTestMetadata 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; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata, 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 + * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. + * @param message RunContinuousTestMetadata 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEnvironmentRequest + * @returns RunContinuousTestMetadata * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEnvironmentRequest + * @returns RunContinuousTestMetadata * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; /** - * Verifies an UpdateEnvironmentRequest message. + * Verifies a RunContinuousTestMetadata message. * @param message Plain 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. + * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEnvironmentRequest + * @returns RunContinuousTestMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. - * @param message UpdateEnvironmentRequest + * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. + * @param message RunContinuousTestMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEnvironmentRequest to JSON. + * Converts this RunContinuousTestMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateEnvironmentRequest + * Gets the default type url for RunContinuousTestMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteEnvironmentRequest. */ - interface IDeleteEnvironmentRequest { + /** Properties of a ListContinuousTestResultsRequest. */ + interface IListContinuousTestResultsRequest { - /** DeleteEnvironmentRequest name */ - name?: (string|null); + /** ListContinuousTestResultsRequest parent */ + parent?: (string|null); + + /** ListContinuousTestResultsRequest pageSize */ + pageSize?: (number|null); + + /** ListContinuousTestResultsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a DeleteEnvironmentRequest. */ - class DeleteEnvironmentRequest implements IDeleteEnvironmentRequest { + /** Represents a ListContinuousTestResultsRequest. */ + class ListContinuousTestResultsRequest implements IListContinuousTestResultsRequest { /** - * Constructs a new DeleteEnvironmentRequest. + * Constructs a new ListContinuousTestResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest); - /** DeleteEnvironmentRequest name. */ - public name: string; + /** ListContinuousTestResultsRequest parent. */ + public parent: string; + + /** ListContinuousTestResultsRequest pageSize. */ + public pageSize: number; + + /** ListContinuousTestResultsRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * Creates a new ListContinuousTestResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEnvironmentRequest instance + * @returns ListContinuousTestResultsRequest 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.IListContinuousTestResultsRequest): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; /** - * 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 ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. + * @param message ListContinuousTestResultsRequest 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.IListContinuousTestResultsRequest, 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 ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. + * @param message ListContinuousTestResultsRequest 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.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsRequest 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 ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or 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.ListContinuousTestResultsRequest; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEnvironmentRequest + * @returns ListContinuousTestResultsRequest * @throws {Error} If the payload is not a 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.ListContinuousTestResultsRequest; /** - * Verifies a DeleteEnvironmentRequest message. + * Verifies a ListContinuousTestResultsRequest message. * @param message Plain 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 ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEnvironmentRequest + * @returns ListContinuousTestResultsRequest */ - 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.ListContinuousTestResultsRequest; /** - * 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 ListContinuousTestResultsRequest message. Also converts values to other types if specified. + * @param message ListContinuousTestResultsRequest * @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.ListContinuousTestResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEnvironmentRequest to JSON. + * Converts this ListContinuousTestResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteEnvironmentRequest + * Gets the default type url for ListContinuousTestResultsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LookupEnvironmentHistoryRequest. */ - interface ILookupEnvironmentHistoryRequest { - - /** LookupEnvironmentHistoryRequest name */ - name?: (string|null); + /** Properties of a ListContinuousTestResultsResponse. */ + interface IListContinuousTestResultsResponse { - /** LookupEnvironmentHistoryRequest pageSize */ - pageSize?: (number|null); + /** ListContinuousTestResultsResponse continuousTestResults */ + continuousTestResults?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult[]|null); - /** LookupEnvironmentHistoryRequest pageToken */ - pageToken?: (string|null); + /** ListContinuousTestResultsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a LookupEnvironmentHistoryRequest. */ - class LookupEnvironmentHistoryRequest implements ILookupEnvironmentHistoryRequest { + /** Represents a ListContinuousTestResultsResponse. */ + class ListContinuousTestResultsResponse implements IListContinuousTestResultsResponse { /** - * Constructs a new LookupEnvironmentHistoryRequest. + * Constructs a new ListContinuousTestResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest); - - /** LookupEnvironmentHistoryRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse); - /** LookupEnvironmentHistoryRequest pageSize. */ - public pageSize: number; + /** ListContinuousTestResultsResponse continuousTestResults. */ + public continuousTestResults: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult[]; - /** LookupEnvironmentHistoryRequest pageToken. */ - public pageToken: string; + /** ListContinuousTestResultsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * Creates a new ListContinuousTestResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns LookupEnvironmentHistoryRequest instance + * @returns ListContinuousTestResultsResponse 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.IListContinuousTestResultsResponse): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; /** - * 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 ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. + * @param message ListContinuousTestResultsResponse 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.IListContinuousTestResultsResponse, 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 ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. + * @param message ListContinuousTestResultsResponse 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.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsResponse 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 ListContinuousTestResultsResponse * @throws {Error} If the payload is not a reader or 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.ListContinuousTestResultsResponse; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupEnvironmentHistoryRequest + * @returns ListContinuousTestResultsResponse * @throws {Error} If the payload is not a 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.ListContinuousTestResultsResponse; /** - * Verifies a LookupEnvironmentHistoryRequest message. + * Verifies a ListContinuousTestResultsResponse message. * @param message Plain 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 ListContinuousTestResultsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupEnvironmentHistoryRequest + * @returns ListContinuousTestResultsResponse */ - 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.ListContinuousTestResultsResponse; /** - * 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 ListContinuousTestResultsResponse message. Also converts values to other types if specified. + * @param message ListContinuousTestResultsResponse * @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.ListContinuousTestResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupEnvironmentHistoryRequest to JSON. + * Converts this ListContinuousTestResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupEnvironmentHistoryRequest + * Gets the default type url for ListContinuousTestResultsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a LookupEnvironmentHistoryResponse. */ - interface ILookupEnvironmentHistoryResponse { + /** Properties of a DeployFlowRequest. */ + interface IDeployFlowRequest { - /** LookupEnvironmentHistoryResponse environments */ - environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + /** DeployFlowRequest environment */ + environment?: (string|null); - /** LookupEnvironmentHistoryResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeployFlowRequest flowVersion */ + flowVersion?: (string|null); } - /** Represents a LookupEnvironmentHistoryResponse. */ - class LookupEnvironmentHistoryResponse implements ILookupEnvironmentHistoryResponse { + /** Represents a DeployFlowRequest. */ + class DeployFlowRequest implements IDeployFlowRequest { /** - * Constructs a new LookupEnvironmentHistoryResponse. + * Constructs a new DeployFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest); - /** LookupEnvironmentHistoryResponse environments. */ - public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + /** DeployFlowRequest environment. */ + public environment: string; - /** LookupEnvironmentHistoryResponse nextPageToken. */ - public nextPageToken: string; + /** DeployFlowRequest flowVersion. */ + public flowVersion: string; /** - * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * Creates a new DeployFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns LookupEnvironmentHistoryResponse instance + * @returns DeployFlowRequest 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.IDeployFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; /** - * 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 DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. + * @param message DeployFlowRequest 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.IDeployFlowRequest, 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 DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. + * @param message DeployFlowRequest 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.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * Decodes a DeployFlowRequest 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 DeployFlowRequest * @throws {Error} If the payload is not a reader or 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.DeployFlowRequest; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LookupEnvironmentHistoryResponse + * @returns DeployFlowRequest * @throws {Error} If the payload is not a 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.DeployFlowRequest; /** - * Verifies a LookupEnvironmentHistoryResponse message. + * Verifies a DeployFlowRequest message. * @param message Plain 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 DeployFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LookupEnvironmentHistoryResponse + * @returns DeployFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; /** - * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. - * @param message LookupEnvironmentHistoryResponse + * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. + * @param message DeployFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LookupEnvironmentHistoryResponse to JSON. + * Converts this DeployFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LookupEnvironmentHistoryResponse + * Gets the default type url for DeployFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ContinuousTestResult. */ - interface IContinuousTestResult { - - /** ContinuousTestResult name */ - name?: (string|null); - - /** ContinuousTestResult result */ - result?: (google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|null); + /** Properties of a DeployFlowResponse. */ + interface IDeployFlowResponse { - /** ContinuousTestResult testCaseResults */ - testCaseResults?: (string[]|null); + /** DeployFlowResponse environment */ + environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); - /** ContinuousTestResult runTime */ - runTime?: (google.protobuf.ITimestamp|null); + /** DeployFlowResponse deployment */ + deployment?: (string|null); } - /** Represents a ContinuousTestResult. */ - class ContinuousTestResult implements IContinuousTestResult { + /** Represents a DeployFlowResponse. */ + class DeployFlowResponse implements IDeployFlowResponse { /** - * Constructs a new ContinuousTestResult. + * Constructs a new DeployFlowResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult); - - /** ContinuousTestResult name. */ - public name: string; - - /** ContinuousTestResult result. */ - public result: (google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse); - /** ContinuousTestResult testCaseResults. */ - public testCaseResults: string[]; + /** DeployFlowResponse environment. */ + public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); - /** ContinuousTestResult runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); + /** DeployFlowResponse deployment. */ + public deployment: string; /** - * Creates a new ContinuousTestResult instance using the specified properties. + * Creates a new DeployFlowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ContinuousTestResult instance + * @returns DeployFlowResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; /** - * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. - * @param message ContinuousTestResult message or plain object to encode + * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. + * @param message DeployFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. - * @param message ContinuousTestResult message or plain object to encode + * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. + * @param message DeployFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer. + * Decodes a DeployFlowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ContinuousTestResult + * @returns DeployFlowResponse * @throws {Error} If the payload is not a reader or 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.ContinuousTestResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ContinuousTestResult + * @returns DeployFlowResponse * @throws {Error} If the payload is not a 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.ContinuousTestResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; /** - * Verifies a ContinuousTestResult message. + * Verifies a DeployFlowResponse message. * @param message Plain 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 ContinuousTestResult message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ContinuousTestResult + * @returns DeployFlowResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; /** - * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. - * @param message ContinuousTestResult + * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. + * @param message DeployFlowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ContinuousTestResult to JSON. + * Converts this DeployFlowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ContinuousTestResult + * Gets the default type url for DeployFlowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ContinuousTestResult { - - /** AggregatedTestResult enum. */ - enum AggregatedTestResult { - AGGREGATED_TEST_RESULT_UNSPECIFIED = 0, - PASSED = 1, - FAILED = 2 - } - } - - /** Properties of a RunContinuousTestRequest. */ - interface IRunContinuousTestRequest { + /** Properties of a DeployFlowMetadata. */ + interface IDeployFlowMetadata { - /** RunContinuousTestRequest environment */ - environment?: (string|null); + /** DeployFlowMetadata testErrors */ + testErrors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); } - /** Represents a RunContinuousTestRequest. */ - class RunContinuousTestRequest implements IRunContinuousTestRequest { + /** Represents a DeployFlowMetadata. */ + class DeployFlowMetadata implements IDeployFlowMetadata { /** - * Constructs a new RunContinuousTestRequest. + * Constructs a new DeployFlowMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata); - /** RunContinuousTestRequest environment. */ - public environment: string; + /** DeployFlowMetadata testErrors. */ + public testErrors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; /** - * Creates a new RunContinuousTestRequest instance using the specified properties. + * Creates a new DeployFlowMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns RunContinuousTestRequest instance + * @returns DeployFlowMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; /** - * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. - * @param message RunContinuousTestRequest message or plain object to encode + * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. + * @param message DeployFlowMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. - * @param message RunContinuousTestRequest message or plain object to encode + * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. + * @param message DeployFlowMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer. + * Decodes a DeployFlowMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RunContinuousTestRequest + * @returns DeployFlowMetadata * @throws {Error} If the payload is not a reader or 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.RunContinuousTestRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RunContinuousTestRequest + * @returns DeployFlowMetadata * @throws {Error} If the payload is not a 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.RunContinuousTestRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; /** - * Verifies a RunContinuousTestRequest message. + * Verifies a DeployFlowMetadata message. * @param message Plain 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 RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RunContinuousTestRequest + * @returns DeployFlowMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; /** - * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. - * @param message RunContinuousTestRequest + * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. + * @param message DeployFlowMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunContinuousTestRequest to JSON. + * Converts this DeployFlowMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunContinuousTestRequest + * Gets the default type url for DeployFlowMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RunContinuousTestResponse. */ - interface IRunContinuousTestResponse { + /** Represents a TestCases */ + class TestCases extends $protobuf.rpc.Service { - /** RunContinuousTestResponse continuousTestResult */ - continuousTestResult?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|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); - /** Represents a RunContinuousTestResponse. */ - class RunContinuousTestResponse implements IRunContinuousTestResponse { + /** + * 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; /** - * Constructs a new RunContinuousTestResponse. - * @param [properties] Properties to set + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCasesResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse); + public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCasesCallback): void; - /** RunContinuousTestResponse continuousTestResult. */ - public continuousTestResult?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null); + /** + * Calls ListTestCases. + * @param request ListTestCasesRequest message or plain object + * @returns Promise + */ + public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): Promise; /** - * Creates a new RunContinuousTestResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns RunContinuousTestResponse instance + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback): void; /** - * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. - * @param message RunContinuousTestResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls BatchDeleteTestCases. + * @param request BatchDeleteTestCasesRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): Promise; /** - * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. - * @param message RunContinuousTestResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetTestCase. + * @param request GetTestCaseRequest 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.IRunContinuousTestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseCallback): void; /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunContinuousTestResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetTestCase. + * @param request GetTestCaseRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; + public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): Promise; /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunContinuousTestResponse - * @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 + * @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.RunContinuousTestResponse; + public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback): void; /** - * Verifies a RunContinuousTestResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateTestCase. + * @param request CreateTestCaseRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): Promise; /** - * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunContinuousTestResponse + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse; + public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCaseCallback): void; /** - * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. - * @param message RunContinuousTestResponse - * @param [options] Conversion options - * @returns Plain object + * Calls UpdateTestCase. + * @param request UpdateTestCaseRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): Promise; /** - * Converts this RunContinuousTestResponse to JSON. - * @returns JSON object + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; + public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCaseCallback): void; /** - * Gets the default type url for RunContinuousTestResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls RunTestCase. + * @param request RunTestCaseRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RunContinuousTestMetadata. */ - interface IRunContinuousTestMetadata { - - /** RunContinuousTestMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); - } - - /** Represents a RunContinuousTestMetadata. */ - class RunContinuousTestMetadata implements IRunContinuousTestMetadata { + public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): Promise; /** - * Constructs a new RunContinuousTestMetadata. - * @param [properties] Properties to set + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata); - - /** RunContinuousTestMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCasesCallback): void; /** - * Creates a new RunContinuousTestMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns RunContinuousTestMetadata instance + * Calls BatchRunTestCases. + * @param request BatchRunTestCasesRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; + public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): Promise; /** - * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. - * @param message RunContinuousTestMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CalculateCoverageResponse */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverageCallback): void; /** - * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. - * @param message RunContinuousTestMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CalculateCoverage. + * @param request CalculateCoverageRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): Promise; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RunContinuousTestMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; + public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCasesCallback): void; /** - * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RunContinuousTestMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ImportTestCases. + * @param request ImportTestCasesRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; + public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): Promise; /** - * Verifies a RunContinuousTestMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ExportTestCases. + * @param request ExportTestCasesRequest 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 exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCasesCallback): void; /** - * Creates a RunContinuousTestMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RunContinuousTestMetadata + * Calls ExportTestCases. + * @param request ExportTestCasesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata; + public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): Promise; /** - * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. - * @param message RunContinuousTestMetadata - * @param [options] Conversion options - * @returns Plain object + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTestCaseResultsResponse */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResultsCallback): void; /** - * Converts this RunContinuousTestMetadata to JSON. - * @returns JSON object + * Calls ListTestCaseResults. + * @param request ListTestCaseResultsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): Promise; /** - * Gets the default type url for RunContinuousTestMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetTestCaseResult. + * @param request GetTestCaseResultRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestCaseResult */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListContinuousTestResultsRequest. */ - interface IListContinuousTestResultsRequest { - - /** ListContinuousTestResultsRequest parent */ - parent?: (string|null); - - /** ListContinuousTestResultsRequest pageSize */ - pageSize?: (number|null); + public getTestCaseResult(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResultCallback): void; - /** ListContinuousTestResultsRequest pageToken */ - pageToken?: (string|null); + /** + * Calls GetTestCaseResult. + * @param request GetTestCaseResultRequest message or plain object + * @returns Promise + */ + public getTestCaseResult(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest): Promise; } - /** Represents a ListContinuousTestResultsRequest. */ - class ListContinuousTestResultsRequest implements IListContinuousTestResultsRequest { + namespace TestCases { /** - * Constructs a new ListContinuousTestResultsRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|listTestCases}. + * @param error Error, if any + * @param [response] ListTestCasesResponse */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest); - - /** ListContinuousTestResultsRequest parent. */ - public parent: string; - - /** ListContinuousTestResultsRequest pageSize. */ - public pageSize: number; + type ListTestCasesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) => void; - /** ListContinuousTestResultsRequest pageToken. */ - public pageToken: string; + /** + * 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; /** - * Creates a new ListContinuousTestResultsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListContinuousTestResultsRequest instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|getTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; + type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; /** - * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. - * @param message ListContinuousTestResultsRequest 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|createTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; /** - * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. - * @param message ListContinuousTestResultsRequest 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|updateTestCase}. + * @param error Error, if any + * @param [response] TestCase */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListContinuousTestResultsRequest - * @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|runTestCase}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; + type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListContinuousTestResultsRequest - * @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|batchRunTestCases}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; + type BatchRunTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies a ListContinuousTestResultsRequest 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|calculateCoverage}. + * @param error Error, if any + * @param [response] CalculateCoverageResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type CalculateCoverageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) => void; /** - * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListContinuousTestResultsRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|importTestCases}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest; + type ImportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. - * @param message ListContinuousTestResultsRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|exportTestCases}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ExportTestCasesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListContinuousTestResultsRequest 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; /** - * Gets the default type url for ListContinuousTestResultsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|getTestCaseResult}. + * @param error Error, if any + * @param [response] TestCaseResult */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type GetTestCaseResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCaseResult) => void; } - /** Properties of a ListContinuousTestResultsResponse. */ - interface IListContinuousTestResultsResponse { + /** Properties of a TestCase. */ + interface ITestCase { - /** ListContinuousTestResultsResponse continuousTestResults */ - continuousTestResults?: (google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult[]|null); + /** TestCase name */ + name?: (string|null); - /** ListContinuousTestResultsResponse nextPageToken */ - nextPageToken?: (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 ListContinuousTestResultsResponse. */ - class ListContinuousTestResultsResponse implements IListContinuousTestResultsResponse { + /** Represents a TestCase. */ + class TestCase implements ITestCase { /** - * Constructs a new ListContinuousTestResultsResponse. + * Constructs a new TestCase. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase); - /** ListContinuousTestResultsResponse continuousTestResults. */ - public continuousTestResults: google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult[]; + /** TestCase name. */ + public name: string; - /** ListContinuousTestResultsResponse nextPageToken. */ - public nextPageToken: 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 ListContinuousTestResultsResponse instance using the specified properties. + * Creates a new TestCase instance using the specified properties. * @param [properties] Properties to set - * @returns ListContinuousTestResultsResponse instance + * @returns TestCase instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCase): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. - * @param message ListContinuousTestResultsResponse 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.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. - * @param message ListContinuousTestResultsResponse 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.IListContinuousTestResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListContinuousTestResultsResponse 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 ListContinuousTestResultsResponse + * @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.ListContinuousTestResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Decodes a ListContinuousTestResultsResponse 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 ListContinuousTestResultsResponse + * @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.ListContinuousTestResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Verifies a ListContinuousTestResultsResponse 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 ListContinuousTestResultsResponse 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 ListContinuousTestResultsResponse + * @returns TestCase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCase; /** - * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. - * @param message ListContinuousTestResultsResponse + * 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.ListContinuousTestResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListContinuousTestResultsResponse to JSON. + * Converts this TestCase to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListContinuousTestResultsResponse + * Gets the default type url for TestCase * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployFlowRequest. */ - interface IDeployFlowRequest { + /** Properties of a TestCaseResult. */ + interface ITestCaseResult { - /** DeployFlowRequest environment */ + /** TestCaseResult name */ + name?: (string|null); + + /** TestCaseResult environment */ environment?: (string|null); - /** DeployFlowRequest flowVersion */ - flowVersion?: (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 DeployFlowRequest. */ - class DeployFlowRequest implements IDeployFlowRequest { + /** Represents a TestCaseResult. */ + class TestCaseResult implements ITestCaseResult { /** - * Constructs a new DeployFlowRequest. + * Constructs a new TestCaseResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult); - /** DeployFlowRequest environment. */ + /** TestCaseResult name. */ + public name: string; + + /** TestCaseResult environment. */ public environment: string; - /** DeployFlowRequest flowVersion. */ - public flowVersion: 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 DeployFlowRequest instance using the specified properties. + * Creates a new TestCaseResult instance using the specified properties. * @param [properties] Properties to set - * @returns DeployFlowRequest instance + * @returns TestCaseResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. - * @param message DeployFlowRequest 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.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. - * @param message DeployFlowRequest 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.IDeployFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployFlowRequest 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 DeployFlowRequest + * @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.DeployFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Decodes a DeployFlowRequest 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 DeployFlowRequest + * @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.DeployFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Verifies a DeployFlowRequest 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 DeployFlowRequest 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 DeployFlowRequest + * @returns TestCaseResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseResult; /** - * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. - * @param message DeployFlowRequest + * 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.DeployFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployFlowRequest to JSON. + * Converts this TestCaseResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployFlowRequest + * Gets the default type url for TestCaseResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployFlowResponse. */ - interface IDeployFlowResponse { + /** Properties of a TestConfig. */ + interface ITestConfig { + + /** TestConfig trackingParameters */ + trackingParameters?: (string[]|null); - /** DeployFlowResponse environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** TestConfig flow */ + flow?: (string|null); - /** DeployFlowResponse deployment */ - deployment?: (string|null); + /** TestConfig page */ + page?: (string|null); } - /** Represents a DeployFlowResponse. */ - class DeployFlowResponse implements IDeployFlowResponse { + /** Represents a TestConfig. */ + class TestConfig implements ITestConfig { /** - * Constructs a new DeployFlowResponse. + * Constructs a new TestConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig); - /** DeployFlowResponse environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + /** TestConfig trackingParameters. */ + public trackingParameters: string[]; - /** DeployFlowResponse deployment. */ - public deployment: string; + /** TestConfig flow. */ + public flow: string; + + /** TestConfig page. */ + public page: string; /** - * Creates a new DeployFlowResponse instance using the specified properties. + * Creates a new TestConfig instance using the specified properties. * @param [properties] Properties to set - * @returns DeployFlowResponse instance + * @returns TestConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. - * @param message DeployFlowResponse 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.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. - * @param message DeployFlowResponse 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.IDeployFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployFlowResponse 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 DeployFlowResponse + * @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.DeployFlowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Decodes a DeployFlowResponse 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 DeployFlowResponse + * @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.DeployFlowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Verifies a DeployFlowResponse 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 DeployFlowResponse 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 DeployFlowResponse + * @returns TestConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestConfig; /** - * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. - * @param message DeployFlowResponse + * 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.DeployFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployFlowResponse to JSON. + * Converts this TestConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployFlowResponse + * Gets the default type url for TestConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployFlowMetadata. */ - interface IDeployFlowMetadata { + /** Properties of a ConversationTurn. */ + interface IConversationTurn { - /** DeployFlowMetadata testErrors */ - testErrors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); + /** ConversationTurn userInput */ + userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); + + /** ConversationTurn virtualAgentOutput */ + virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); } - /** Represents a DeployFlowMetadata. */ - class DeployFlowMetadata implements IDeployFlowMetadata { + /** Represents a ConversationTurn. */ + class ConversationTurn implements IConversationTurn { /** - * Constructs a new DeployFlowMetadata. + * Constructs a new ConversationTurn. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn); - /** DeployFlowMetadata testErrors. */ - public testErrors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; + /** ConversationTurn userInput. */ + public userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); + + /** ConversationTurn virtualAgentOutput. */ + public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); /** - * Creates a new DeployFlowMetadata instance using the specified properties. + * Creates a new ConversationTurn instance using the specified properties. * @param [properties] Properties to set - * @returns DeployFlowMetadata instance + * @returns ConversationTurn instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. - * @param message DeployFlowMetadata 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.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. - * @param message DeployFlowMetadata 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.IDeployFlowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployFlowMetadata 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 DeployFlowMetadata + * @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.DeployFlowMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Decodes a DeployFlowMetadata 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 DeployFlowMetadata + * @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.DeployFlowMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Verifies a DeployFlowMetadata 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 a DeployFlowMetadata 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 DeployFlowMetadata + * @returns ConversationTurn */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn; /** - * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. - * @param message DeployFlowMetadata + * 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.DeployFlowMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployFlowMetadata to JSON. + * Converts this ConversationTurn to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployFlowMetadata + * Gets the default type url for ConversationTurn * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a TestCases */ - class TestCases extends $protobuf.rpc.Service { + namespace ConversationTurn { - /** - * 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); + /** Properties of a UserInput. */ + interface IUserInput { - /** - * 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; + /** UserInput input */ + input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|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; + /** UserInput injectedParameters */ + injectedParameters?: (google.protobuf.IStruct|null); - /** - * Calls ListTestCases. - * @param request ListTestCasesRequest message or plain object - * @returns Promise - */ - public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): Promise; + /** UserInput isWebhookEnabled */ + isWebhookEnabled?: (boolean|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; + /** UserInput enableSentimentAnalysis */ + enableSentimentAnalysis?: (boolean|null); + } - /** - * Calls BatchDeleteTestCases. - * @param request BatchDeleteTestCasesRequest message or plain object - * @returns Promise - */ - public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): Promise; + /** Represents a UserInput. */ + class UserInput implements IUserInput { - /** - * 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; + /** + * Constructs a new UserInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput); - /** - * Calls GetTestCase. - * @param request GetTestCaseRequest message or plain object - * @returns Promise - */ - public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): Promise; + /** UserInput input. */ + public input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|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; + /** UserInput injectedParameters. */ + public injectedParameters?: (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; + /** UserInput isWebhookEnabled. */ + public isWebhookEnabled: boolean; - /** - * 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; + /** UserInput enableSentimentAnalysis. */ + public enableSentimentAnalysis: boolean; - /** - * Calls UpdateTestCase. - * @param request UpdateTestCaseRequest message or plain object - * @returns Promise - */ - public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): Promise; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * Calls RunTestCase. - * @param request RunTestCaseRequest message or plain object - * @returns Promise - */ - public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): Promise; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * Calls BatchRunTestCases. - * @param request BatchRunTestCasesRequest message or plain object - * @returns Promise - */ - public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): Promise; + /** + * 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; - /** - * 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; + /** + * 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); - /** - * Calls CalculateCoverage. - * @param request CalculateCoverageRequest message or plain object - * @returns Promise - */ - public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): Promise; + /** + * 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; - /** - * 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; + /** + * 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 }; - /** - * Calls ImportTestCases. - * @param request ImportTestCasesRequest message or plain object - * @returns Promise - */ - public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): Promise; + /** + * Converts this UserInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * 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; + /** + * Gets the default type url for UserInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls ExportTestCases. - * @param request ExportTestCasesRequest message or plain object - * @returns Promise - */ - public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): Promise; + /** Properties of a VirtualAgentOutput. */ + interface IVirtualAgentOutput { - /** - * 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; + /** VirtualAgentOutput sessionParameters */ + sessionParameters?: (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; + /** VirtualAgentOutput differences */ + differences?: (google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]|null); - /** - * Calls GetTestCaseResult. - * @param request GetTestCaseResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TestCaseResult - */ - public getTestCaseResult(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResultCallback): void; + /** VirtualAgentOutput diagnosticInfo */ + diagnosticInfo?: (google.protobuf.IStruct|null); - /** - * Calls GetTestCaseResult. - * @param request GetTestCaseResultRequest message or plain object - * @returns Promise - */ - public getTestCaseResult(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest): Promise; - } + /** VirtualAgentOutput triggeredIntent */ + triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - namespace TestCases { + /** VirtualAgentOutput currentPage */ + currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** - * 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; + /** VirtualAgentOutput textResponses */ + textResponses?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]|null); - /** - * 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; + /** VirtualAgentOutput status */ + status?: (google.rpc.IStatus|null); + } - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|getTestCase}. - * @param error Error, if any - * @param [response] TestCase - */ - type GetTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; + /** Represents a VirtualAgentOutput. */ + class VirtualAgentOutput implements IVirtualAgentOutput { - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|createTestCase}. - * @param error Error, if any - * @param [response] TestCase - */ - type CreateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; + /** + * Constructs a new VirtualAgentOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|updateTestCase}. - * @param error Error, if any - * @param [response] TestCase - */ - type UpdateTestCaseCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCase) => void; + /** VirtualAgentOutput sessionParameters. */ + public sessionParameters?: (google.protobuf.IStruct|null); - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|runTestCase}. - * @param error Error, if any - * @param [response] Operation - */ - type RunTestCaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** VirtualAgentOutput differences. */ + public differences: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]; - /** - * 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; + /** VirtualAgentOutput diagnosticInfo. */ + public diagnosticInfo?: (google.protobuf.IStruct|null); - /** - * 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; + /** VirtualAgentOutput triggeredIntent. */ + public triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** - * 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; + /** 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; - /** - * 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; + /** + * 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; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|listTestCaseResults}. - * @param error Error, if any - * @param [response] ListTestCaseResultsResponse - */ - type ListTestCaseResultsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) => void; + /** + * 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; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|getTestCaseResult}. - * @param error Error, if any - * @param [response] TestCaseResult - */ - type GetTestCaseResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TestCaseResult) => void; - } + /** + * 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; - /** Properties of a TestCase. */ - interface ITestCase { + /** + * 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; - /** TestCase name */ - name?: (string|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); - /** TestCase tags */ - tags?: (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; - /** TestCase displayName */ - displayName?: (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 }; - /** TestCase notes */ - notes?: (string|null); + /** + * Converts this VirtualAgentOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TestCase testConfig */ - testConfig?: (google.cloud.dialogflow.cx.v3beta1.ITestConfig|null); + /** + * Gets the default type url for VirtualAgentOutput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** TestCase testCaseConversationTurns */ - testCaseConversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); + /** Properties of a TestRunDifference. */ + interface ITestRunDifference { - /** TestCase creationTime */ - creationTime?: (google.protobuf.ITimestamp|null); + /** TestRunDifference type */ + type?: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null); - /** TestCase lastTestResult */ - lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** TestRunDifference description */ + description?: (string|null); } - /** Represents a TestCase. */ - class TestCase implements ITestCase { + /** Represents a TestRunDifference. */ + class TestRunDifference implements ITestRunDifference { /** - * Constructs a new TestCase. + * Constructs a new TestRunDifference. * @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[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference); - /** TestCase creationTime. */ - public creationTime?: (google.protobuf.ITimestamp|null); + /** TestRunDifference type. */ + public type: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType); - /** TestCase lastTestResult. */ - public lastTestResult?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** TestRunDifference description. */ + public description: string; /** - * Creates a new TestCase instance using the specified properties. + * Creates a new TestRunDifference instance using the specified properties. * @param [properties] Properties to set - * @returns TestCase instance + * @returns TestRunDifference 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.ITestRunDifference): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; /** - * 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 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.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, 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 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.ITestCase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCase message from the specified reader or buffer. + * 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 TestCase + * @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.TestCase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; /** - * Decodes a TestCase message from the specified reader or buffer, length delimited. + * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TestCase + * @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.TestCase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestRunDifference; /** - * Verifies a TestCase message. + * 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 TestCase 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. * @param object Plain object - * @returns TestCase + * @returns TestRunDifference */ - 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.TestRunDifference; /** - * 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 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.TestCase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCase to JSON. + * Converts this TestRunDifference to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TestCase + * Gets the default type url for TestRunDifference * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TestCaseResult. */ - interface ITestCaseResult { - - /** TestCaseResult name */ - name?: (string|null); + namespace TestRunDifference { - /** TestCaseResult environment */ - environment?: (string|null); + /** DiffType enum. */ + enum DiffType { + DIFF_TYPE_UNSPECIFIED = 0, + INTENT = 1, + PAGE = 2, + PARAMETERS = 3, + UTTERANCE = 4, + FLOW = 5 + } + } - /** TestCaseResult conversationTurns */ - conversationTurns?: (google.cloud.dialogflow.cx.v3beta1.IConversationTurn[]|null); + /** Properties of a TransitionCoverage. */ + interface ITransitionCoverage { - /** TestCaseResult testResult */ - testResult?: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult|null); + /** TransitionCoverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]|null); - /** TestCaseResult testTime */ - testTime?: (google.protobuf.ITimestamp|null); + /** TransitionCoverage coverageScore */ + coverageScore?: (number|null); } - /** Represents a TestCaseResult. */ - class TestCaseResult implements ITestCaseResult { + /** Represents a TransitionCoverage. */ + class TransitionCoverage implements ITransitionCoverage { /** - * Constructs a new TestCaseResult. + * Constructs a new TransitionCoverage. * @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[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage); - /** TestCaseResult testResult. */ - public testResult: (google.cloud.dialogflow.cx.v3beta1.TestResult|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestResult); + /** TransitionCoverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]; - /** TestCaseResult testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** TransitionCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new TestCaseResult instance using the specified properties. + * Creates a new TransitionCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns TestCaseResult instance + * @returns TransitionCoverage 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.ITransitionCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * 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 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.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, 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 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.ITestCaseResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCaseResult 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 TestCaseResult + * @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.TestCaseResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Decodes a TestCaseResult 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 TestCaseResult + * @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.TestCaseResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionCoverage; /** - * Verifies a TestCaseResult 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 TestCaseResult 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 TestCaseResult + * @returns TransitionCoverage */ - 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.TransitionCoverage; /** - * 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 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.TestCaseResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCaseResult to JSON. + * Converts this TransitionCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TestCaseResult + * Gets the default type url for TransitionCoverage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TestConfig. */ - interface ITestConfig { + namespace TransitionCoverage { - /** TestConfig trackingParameters */ - trackingParameters?: (string[]|null); + /** Properties of a TransitionNode. */ + interface ITransitionNode { - /** TestConfig flow */ - flow?: (string|null); + /** TransitionNode page */ + page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** TestConfig page */ - page?: (string|null); - } + /** TransitionNode flow */ + flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + } - /** Represents a TestConfig. */ - class TestConfig implements ITestConfig { + /** Represents a TransitionNode. */ + class TransitionNode implements ITransitionNode { - /** - * Constructs a new TestConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestConfig); + /** + * Constructs a new TransitionNode. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode); - /** TestConfig trackingParameters. */ - public trackingParameters: string[]; + /** TransitionNode page. */ + public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - /** TestConfig flow. */ - public flow: string; + /** TransitionNode flow. */ + public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** TestConfig page. */ - public page: string; + /** TransitionNode kind. */ + public kind?: ("page"|"flow"); - /** - * 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.v3beta1.ITestConfig): google.cloud.dialogflow.cx.v3beta1.TestConfig; + /** + * 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; - /** - * 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.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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.ITestConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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.v3beta1.TestConfig; + /** + * 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; + + /** + * 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; + + /** + * 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 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; + + /** + * 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 }; + + /** + * Converts this TransitionNode to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TransitionNode + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Transition. */ + interface ITransition { + + /** Transition source */ + source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + + /** Transition index */ + index?: (number|null); + + /** Transition target */ + target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + + /** Transition covered */ + covered?: (boolean|null); + + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + + /** Transition eventHandler */ + eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); + } + + /** Represents a Transition. */ + class Transition implements ITransition { + + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition); + + /** Transition source. */ + public source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + + /** Transition index. */ + public index: number; + + /** Transition target. */ + public target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + + /** 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 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.v3beta1.TestConfig; + /** + * 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 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); + /** + * 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 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.v3beta1.TestConfig; + /** + * 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 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 }; + /** + * 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 TestConfig 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 }; - /** - * Gets the default type url for TestConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this Transition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Transition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a ConversationTurn. */ - interface IConversationTurn { + /** Properties of a TransitionRouteGroupCoverage. */ + interface ITransitionRouteGroupCoverage { - /** ConversationTurn userInput */ - userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); + /** TransitionRouteGroupCoverage coverages */ + coverages?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]|null); - /** ConversationTurn virtualAgentOutput */ - virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); + /** TransitionRouteGroupCoverage coverageScore */ + coverageScore?: (number|null); } - /** Represents a ConversationTurn. */ - class ConversationTurn implements IConversationTurn { + /** Represents a TransitionRouteGroupCoverage. */ + class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { /** - * Constructs a new ConversationTurn. + * Constructs a new TransitionRouteGroupCoverage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IConversationTurn); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage); - /** ConversationTurn userInput. */ - public userInput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null); + /** TransitionRouteGroupCoverage coverages. */ + public coverages: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]; - /** ConversationTurn virtualAgentOutput. */ - public virtualAgentOutput?: (google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null); + /** TransitionRouteGroupCoverage coverageScore. */ + public coverageScore: number; /** - * Creates a new ConversationTurn instance using the specified properties. + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. * @param [properties] Properties to set - * @returns ConversationTurn instance + * @returns TransitionRouteGroupCoverage 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.ITransitionRouteGroupCoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * 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 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.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, 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 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.IConversationTurn, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConversationTurn 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 ConversationTurn + * @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.ConversationTurn; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Decodes a ConversationTurn 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 ConversationTurn + * @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.ConversationTurn; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage; /** - * Verifies a ConversationTurn 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 ConversationTurn 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 ConversationTurn + * @returns TransitionRouteGroupCoverage */ - 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.TransitionRouteGroupCoverage; /** - * 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 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.ConversationTurn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConversationTurn to JSON. + * Converts this TransitionRouteGroupCoverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConversationTurn + * Gets the default type url for TransitionRouteGroupCoverage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ConversationTurn { - - /** Properties of a UserInput. */ - interface IUserInput { + namespace TransitionRouteGroupCoverage { - /** UserInput input */ - input?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + /** Properties of a Coverage. */ + interface ICoverage { - /** UserInput injectedParameters */ - injectedParameters?: (google.protobuf.IStruct|null); + /** Coverage routeGroup */ + routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - /** UserInput isWebhookEnabled */ - isWebhookEnabled?: (boolean|null); + /** Coverage transitions */ + transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]|null); - /** UserInput enableSentimentAnalysis */ - enableSentimentAnalysis?: (boolean|null); + /** Coverage coverageScore */ + coverageScore?: (number|null); } - /** Represents a UserInput. */ - class UserInput implements IUserInput { + /** Represents a Coverage. */ + class Coverage implements ICoverage { /** - * Constructs a new UserInput. + * Constructs a new Coverage. * @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); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage); - /** UserInput injectedParameters. */ - public injectedParameters?: (google.protobuf.IStruct|null); + /** Coverage routeGroup. */ + public routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); - /** UserInput isWebhookEnabled. */ - public isWebhookEnabled: boolean; + /** Coverage transitions. */ + public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]; - /** UserInput enableSentimentAnalysis. */ - public enableSentimentAnalysis: boolean; + /** Coverage coverageScore. */ + public coverageScore: number; /** - * Creates a new UserInput instance using the specified properties. + * Creates a new Coverage instance using the specified properties. * @param [properties] Properties to set - * @returns UserInput instance + * @returns Coverage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; /** - * 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 + * 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.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, 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 + * 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.ConversationTurn.IUserInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserInput message from the specified reader or buffer. + * 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 UserInput + * @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.ConversationTurn.UserInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; /** - * Decodes a UserInput message from the specified reader or buffer, length delimited. + * Decodes a Coverage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserInput + * @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.ConversationTurn.UserInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; /** - * Verifies a UserInput message. + * 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 UserInput message from a plain object. Also converts values to their respective internal types. + * Creates a Coverage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserInput + * @returns Coverage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage; /** - * Creates a plain object from a UserInput message. Also converts values to other types if specified. - * @param message UserInput + * 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.ConversationTurn.UserInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserInput to JSON. + * Converts this Coverage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserInput + * Gets the default type url for Coverage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VirtualAgentOutput. */ - interface IVirtualAgentOutput { + namespace Coverage { - /** VirtualAgentOutput sessionParameters */ - sessionParameters?: (google.protobuf.IStruct|null); + /** Properties of a Transition. */ + interface ITransition { - /** VirtualAgentOutput differences */ - differences?: (google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]|null); + /** Transition transitionRoute */ + transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); - /** VirtualAgentOutput diagnosticInfo */ - diagnosticInfo?: (google.protobuf.IStruct|null); + /** Transition covered */ + covered?: (boolean|null); + } - /** VirtualAgentOutput triggeredIntent */ - triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** Represents a Transition. */ + class Transition implements ITransition { - /** VirtualAgentOutput currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** + * Constructs a new Transition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition); - /** VirtualAgentOutput textResponses */ - textResponses?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]|null); + /** Transition transitionRoute. */ + public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); - /** VirtualAgentOutput status */ - status?: (google.rpc.IStatus|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.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition; + + /** + * 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; + + /** + * 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 }; + + /** + * Gets the default type url for Transition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } + } - /** Represents a VirtualAgentOutput. */ - class VirtualAgentOutput implements IVirtualAgentOutput { + /** Properties of an IntentCoverage. */ + interface IIntentCoverage { - /** - * Constructs a new VirtualAgentOutput. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput); + /** IntentCoverage intents */ + intents?: (google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]|null); - /** VirtualAgentOutput sessionParameters. */ - public sessionParameters?: (google.protobuf.IStruct|null); + /** IntentCoverage coverageScore */ + coverageScore?: (number|null); + } - /** VirtualAgentOutput differences. */ - public differences: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference[]; + /** Represents an IntentCoverage. */ + class IntentCoverage implements IIntentCoverage { - /** VirtualAgentOutput diagnosticInfo. */ - public diagnosticInfo?: (google.protobuf.IStruct|null); + /** + * Constructs a new IntentCoverage. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage); - /** VirtualAgentOutput triggeredIntent. */ - public triggeredIntent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + /** IntentCoverage intents. */ + public intents: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]; - /** VirtualAgentOutput currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** IntentCoverage coverageScore. */ + public coverageScore: number; - /** VirtualAgentOutput textResponses. */ - public textResponses: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText[]; + /** + * Creates a new IntentCoverage instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentCoverage instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; - /** VirtualAgentOutput status. */ - public status?: (google.rpc.IStatus|null); + /** + * 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.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + + /** + * 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 an IntentCoverage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntentCoverage + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + + /** + * 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.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntentCoverage to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IntentCoverage + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + 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 VirtualAgentOutput instance using the specified properties. + * Creates a new Intent instance using the specified properties. * @param [properties] Properties to set - * @returns VirtualAgentOutput instance + * @returns Intent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; /** - * 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 + * 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.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, 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 + * 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.ConversationTurn.IVirtualAgentOutput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VirtualAgentOutput 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 VirtualAgentOutput + * @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.ConversationTurn.VirtualAgentOutput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; /** - * Decodes a VirtualAgentOutput 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 VirtualAgentOutput + * @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.ConversationTurn.VirtualAgentOutput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; /** - * Verifies a VirtualAgentOutput 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 VirtualAgentOutput 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 VirtualAgentOutput + * @returns Intent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent; /** - * Creates a plain object from a VirtualAgentOutput message. Also converts values to other types if specified. - * @param message VirtualAgentOutput + * 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.ConversationTurn.VirtualAgentOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VirtualAgentOutput to JSON. + * Converts this Intent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VirtualAgentOutput + * Gets the default type url for Intent * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -48114,4213 +50398,4257 @@ export namespace google { } } - /** Properties of a TestRunDifference. */ - interface ITestRunDifference { + /** Properties of a CalculateCoverageRequest. */ + interface ICalculateCoverageRequest { - /** TestRunDifference type */ - type?: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null); + /** CalculateCoverageRequest agent */ + agent?: (string|null); - /** TestRunDifference description */ - description?: (string|null); + /** CalculateCoverageRequest type */ + type?: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null); } - /** Represents a TestRunDifference. */ - class TestRunDifference implements ITestRunDifference { + /** Represents a CalculateCoverageRequest. */ + class CalculateCoverageRequest implements ICalculateCoverageRequest { /** - * Constructs a new TestRunDifference. + * Constructs a new CalculateCoverageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestRunDifference); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest); - /** TestRunDifference type. */ - public type: (google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|keyof typeof google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType); + /** CalculateCoverageRequest agent. */ + public agent: string; - /** TestRunDifference description. */ - public description: string; + /** CalculateCoverageRequest type. */ + public type: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType); /** - * Creates a new TestRunDifference instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestRunDifference instance + * @returns CalculateCoverageRequest 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.ICalculateCoverageRequest): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * 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 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.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, 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 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.ITestRunDifference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestRunDifference 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 TestRunDifference + * @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.TestRunDifference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Decodes a TestRunDifference 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 TestRunDifference + * @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.TestRunDifference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest; /** - * Verifies a TestRunDifference 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 TestRunDifference 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 TestRunDifference + * @returns CalculateCoverageRequest */ - 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.CalculateCoverageRequest; /** - * 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 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.TestRunDifference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestRunDifference to JSON. + * Converts this CalculateCoverageRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TestRunDifference + * Gets the default type url for CalculateCoverageRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace TestRunDifference { + namespace CalculateCoverageRequest { - /** DiffType enum. */ - enum DiffType { - DIFF_TYPE_UNSPECIFIED = 0, + /** CoverageType enum. */ + enum CoverageType { + COVERAGE_TYPE_UNSPECIFIED = 0, INTENT = 1, - PAGE = 2, - PARAMETERS = 3, - UTTERANCE = 4, - FLOW = 5 + PAGE_TRANSITION = 2, + TRANSITION_ROUTE_GROUP = 3 } } - /** Properties of a TransitionCoverage. */ - interface ITransitionCoverage { + /** Properties of a CalculateCoverageResponse. */ + interface ICalculateCoverageResponse { - /** TransitionCoverage transitions */ - transitions?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]|null); + /** CalculateCoverageResponse agent */ + agent?: (string|null); - /** TransitionCoverage coverageScore */ - coverageScore?: (number|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 TransitionCoverage. */ - class TransitionCoverage implements ITransitionCoverage { + /** Represents a CalculateCoverageResponse. */ + class CalculateCoverageResponse implements ICalculateCoverageResponse { /** - * Constructs a new TransitionCoverage. + * Constructs a new CalculateCoverageResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse); - /** TransitionCoverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition[]; + /** CalculateCoverageResponse agent. */ + public agent: string; - /** TransitionCoverage coverageScore. */ - public coverageScore: number; + /** 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 TransitionCoverage instance using the specified properties. + * Creates a new CalculateCoverageResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionCoverage instance + * @returns CalculateCoverageResponse 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.ICalculateCoverageResponse): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * 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 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.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, 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 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.ITransitionCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionCoverage 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 TransitionCoverage + * @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.TransitionCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Decodes a TransitionCoverage 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 TransitionCoverage + * @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.TransitionCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse; /** - * Verifies a TransitionCoverage 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 TransitionCoverage 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 TransitionCoverage + * @returns CalculateCoverageResponse */ - 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.CalculateCoverageResponse; /** - * 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 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.TransitionCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionCoverage to JSON. + * Converts this CalculateCoverageResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TransitionCoverage + * Gets the default type url for CalculateCoverageResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace TransitionCoverage { - - /** Properties of a TransitionNode. */ - interface ITransitionNode { - - /** TransitionNode page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); - - /** TransitionNode flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - } + /** Properties of a ListTestCasesRequest. */ + interface IListTestCasesRequest { - /** Represents a TransitionNode. */ - class TransitionNode implements ITransitionNode { + /** ListTestCasesRequest parent */ + parent?: (string|null); - /** - * Constructs a new TransitionNode. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode); + /** ListTestCasesRequest pageSize */ + pageSize?: (number|null); - /** TransitionNode page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** ListTestCasesRequest pageToken */ + pageToken?: (string|null); - /** TransitionNode flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** ListTestCasesRequest view */ + view?: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|null); + } - /** TransitionNode kind. */ - public kind?: ("page"|"flow"); + /** Represents a ListTestCasesRequest. */ + class ListTestCasesRequest implements IListTestCasesRequest { - /** - * 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; + /** + * Constructs a new ListTestCasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest); - /** - * 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; + /** ListTestCasesRequest parent. */ + public parent: string; - /** - * 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; + /** ListTestCasesRequest pageSize. */ + public pageSize: number; - /** - * 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; + /** ListTestCasesRequest pageToken. */ + public pageToken: string; - /** - * 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; + /** ListTestCasesRequest view. */ + public view: (google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView|keyof typeof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView); - /** - * 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 new ListTestCasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTestCasesRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest; - /** - * 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; + /** + * 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.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 }; + /** + * 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.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this TransitionNode to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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.v3beta1.ListTestCasesRequest; - /** - * Gets the default type url for TransitionNode - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * 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.v3beta1.ListTestCasesRequest; - /** Properties of a Transition. */ - interface ITransition { + /** + * 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); - /** Transition source */ - source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** + * 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.v3beta1.ListTestCasesRequest; - /** Transition index */ - index?: (number|null); + /** + * 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.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Transition target */ - target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** + * Converts this ListTestCasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Transition covered */ - covered?: (boolean|null); + /** + * Gets the default type url for ListTestCasesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + namespace ListTestCasesRequest { - /** Transition eventHandler */ - eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); + /** TestCaseView enum. */ + enum TestCaseView { + TEST_CASE_VIEW_UNSPECIFIED = 0, + BASIC = 1, + FULL = 2 } + } - /** Represents a Transition. */ - class Transition implements ITransition { - - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransition); - - /** Transition source. */ - public source?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** Properties of a ListTestCasesResponse. */ + interface IListTestCasesResponse { - /** Transition index. */ - public index: number; + /** ListTestCasesResponse testCases */ + testCases?: (google.cloud.dialogflow.cx.v3beta1.ITestCase[]|null); - /** Transition target. */ - public target?: (google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.ITransitionNode|null); + /** ListTestCasesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Transition covered. */ - public covered: boolean; + /** Represents a ListTestCasesResponse. */ + class ListTestCasesResponse implements IListTestCasesResponse { - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + /** + * Constructs a new ListTestCasesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse); - /** Transition eventHandler. */ - public eventHandler?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler|null); + /** ListTestCasesResponse testCases. */ + public testCases: google.cloud.dialogflow.cx.v3beta1.ITestCase[]; - /** Transition detail. */ - public detail?: ("transitionRoute"|"eventHandler"); + /** ListTestCasesResponse nextPageToken. */ + public nextPageToken: string; - /** - * 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; + /** + * Creates a new ListTestCasesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTestCasesResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; - /** - * 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 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.IListTestCasesResponse, 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; + /** + * 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.IListTestCasesResponse, 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; + /** + * 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 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.ListTestCasesResponse; - /** - * 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; + /** + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ListTestCasesResponse; - /** - * 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); + /** + * 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 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; + /** + * Creates a ListTestCasesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTestCasesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse; - /** - * 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 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.v3beta1.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this ListTestCasesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Transition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for ListTestCasesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TransitionRouteGroupCoverage. */ - interface ITransitionRouteGroupCoverage { + /** Properties of a BatchDeleteTestCasesRequest. */ + interface IBatchDeleteTestCasesRequest { - /** TransitionRouteGroupCoverage coverages */ - coverages?: (google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]|null); + /** BatchDeleteTestCasesRequest parent */ + parent?: (string|null); - /** TransitionRouteGroupCoverage coverageScore */ - coverageScore?: (number|null); + /** BatchDeleteTestCasesRequest names */ + names?: (string[]|null); } - /** Represents a TransitionRouteGroupCoverage. */ - class TransitionRouteGroupCoverage implements ITransitionRouteGroupCoverage { + /** Represents a BatchDeleteTestCasesRequest. */ + class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new BatchDeleteTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest); - /** TransitionRouteGroupCoverage coverages. */ - public coverages: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage[]; + /** BatchDeleteTestCasesRequest parent. */ + public parent: string; - /** TransitionRouteGroupCoverage coverageScore. */ - public coverageScore: number; + /** BatchDeleteTestCasesRequest names. */ + public names: string[]; /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TransitionRouteGroupCoverage instance + * @returns BatchDeleteTestCasesRequest 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.IBatchDeleteTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * 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 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 static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, 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 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 static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TransitionRouteGroupCoverage 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 TransitionRouteGroupCoverage + * @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.v3beta1.TransitionRouteGroupCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Decodes a TransitionRouteGroupCoverage 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 TransitionRouteGroupCoverage + * @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.v3beta1.TransitionRouteGroupCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest; /** - * Verifies a TransitionRouteGroupCoverage 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 TransitionRouteGroupCoverage 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 TransitionRouteGroupCoverage + * @returns BatchDeleteTestCasesRequest */ - 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.BatchDeleteTestCasesRequest; /** - * 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 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.v3beta1.TransitionRouteGroupCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this BatchDeleteTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TransitionRouteGroupCoverage + * Gets the default type url for BatchDeleteTestCasesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - 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); - - /** Coverage coverageScore */ - coverageScore?: (number|null); - } + /** Properties of a CreateTestCaseRequest. */ + interface ICreateTestCaseRequest { - /** Represents a Coverage. */ - class Coverage implements ICoverage { + /** CreateTestCaseRequest parent */ + parent?: (string|null); - /** - * Constructs a new Coverage. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.ICoverage); + /** CreateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + } - /** Coverage routeGroup. */ - public routeGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + /** Represents a CreateTestCaseRequest. */ + class CreateTestCaseRequest implements ICreateTestCaseRequest { - /** Coverage transitions. */ - public transitions: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition[]; + /** + * Constructs a new CreateTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest); - /** Coverage coverageScore. */ - public coverageScore: number; + /** CreateTestCaseRequest parent. */ + public parent: string; - /** - * 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; + /** CreateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** - * 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; + /** + * Creates a new CreateTestCaseRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTestCaseRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; - /** - * 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; + /** + * 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.ICreateTestCaseRequest, 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.v3beta1.TransitionRouteGroupCoverage.Coverage; + /** + * 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.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * 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 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.CreateTestCaseRequest; - /** - * 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); + /** + * Decodes a CreateTestCaseRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.CreateTestCaseRequest; - /** - * 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; + /** + * 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 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 }; + /** + * Creates a CreateTestCaseRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTestCaseRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest; - /** - * Converts this Coverage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for Coverage - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this CreateTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace Coverage { + /** + * Gets the default type url for CreateTestCaseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a Transition. */ - interface ITransition { + /** Properties of an UpdateTestCaseRequest. */ + interface IUpdateTestCaseRequest { - /** Transition transitionRoute */ - transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + /** UpdateTestCaseRequest testCase */ + testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** Transition covered */ - covered?: (boolean|null); - } + /** UpdateTestCaseRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** Represents a Transition. */ - class Transition implements ITransition { + /** Represents an UpdateTestCaseRequest. */ + class UpdateTestCaseRequest implements IUpdateTestCaseRequest { - /** - * Constructs a new Transition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.ITransition); + /** + * Constructs a new UpdateTestCaseRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest); - /** Transition transitionRoute. */ - public transitionRoute?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute|null); + /** UpdateTestCaseRequest testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); - /** Transition covered. */ - public covered: boolean; + /** UpdateTestCaseRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * 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 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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); - /** - * 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 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; - /** - * 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 }; + /** + * 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 }; - /** - * Converts this Transition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateTestCaseRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Transition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Gets the default type url for UpdateTestCaseRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IntentCoverage. */ - interface IIntentCoverage { - - /** IntentCoverage intents */ - intents?: (google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]|null); + /** Properties of a GetTestCaseRequest. */ + interface IGetTestCaseRequest { - /** IntentCoverage coverageScore */ - coverageScore?: (number|null); + /** GetTestCaseRequest name */ + name?: (string|null); } - /** Represents an IntentCoverage. */ - class IntentCoverage implements IIntentCoverage { + /** Represents a GetTestCaseRequest. */ + class GetTestCaseRequest implements IGetTestCaseRequest { /** - * Constructs a new IntentCoverage. + * Constructs a new GetTestCaseRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage); - - /** IntentCoverage intents. */ - public intents: google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IIntent[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest); - /** IntentCoverage coverageScore. */ - public coverageScore: number; + /** GetTestCaseRequest name. */ + public name: string; /** - * Creates a new IntentCoverage instance using the specified properties. + * Creates a new GetTestCaseRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IntentCoverage instance + * @returns GetTestCaseRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentCoverage): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; /** - * 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 + * 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.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IIntentCoverage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntentCoverage message from the specified reader or buffer. + * 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 IntentCoverage + * @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.IntentCoverage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; /** - * Decodes an IntentCoverage message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntentCoverage + * @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.IntentCoverage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; /** - * Verifies an IntentCoverage message. + * 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); /** - * Creates an IntentCoverage 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. * @param object Plain object - * @returns IntentCoverage + * @returns GetTestCaseRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentCoverage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; /** - * Creates a plain object from an IntentCoverage message. Also converts values to other types if specified. - * @param message IntentCoverage + * 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.IntentCoverage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntentCoverage to JSON. + * Converts this GetTestCaseRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IntentCoverage + * Gets the default type url for GetTestCaseRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - 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; - - /** - * 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 }; - - /** - * Gets the default type url for Intent - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a CalculateCoverageRequest. */ - interface ICalculateCoverageRequest { + /** Properties of a RunTestCaseRequest. */ + interface IRunTestCaseRequest { - /** CalculateCoverageRequest agent */ - agent?: (string|null); + /** RunTestCaseRequest name */ + name?: (string|null); - /** CalculateCoverageRequest type */ - type?: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null); + /** RunTestCaseRequest environment */ + environment?: (string|null); } - /** Represents a CalculateCoverageRequest. */ - class CalculateCoverageRequest implements ICalculateCoverageRequest { + /** Represents a RunTestCaseRequest. */ + class RunTestCaseRequest implements IRunTestCaseRequest { /** - * Constructs a new CalculateCoverageRequest. + * Constructs a new RunTestCaseRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest); - /** CalculateCoverageRequest agent. */ - public agent: string; + /** RunTestCaseRequest name. */ + public name: string; - /** CalculateCoverageRequest type. */ - public type: (google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType); + /** RunTestCaseRequest environment. */ + public environment: string; /** - * Creates a new CalculateCoverageRequest instance using the specified properties. + * Creates a new RunTestCaseRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CalculateCoverageRequest instance + * @returns RunTestCaseRequest 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.IRunTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * 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 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.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, 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 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.ICalculateCoverageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CalculateCoverageRequest 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 CalculateCoverageRequest + * @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.CalculateCoverageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Decodes a CalculateCoverageRequest 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 CalculateCoverageRequest + * @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.CalculateCoverageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; /** - * Verifies a CalculateCoverageRequest 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 CalculateCoverageRequest 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 CalculateCoverageRequest + * @returns RunTestCaseRequest */ - 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.RunTestCaseRequest; /** - * 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 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.CalculateCoverageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CalculateCoverageRequest to JSON. + * Converts this RunTestCaseRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CalculateCoverageRequest + * Gets the default type url for RunTestCaseRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace CalculateCoverageRequest { - - /** CoverageType enum. */ - enum CoverageType { - COVERAGE_TYPE_UNSPECIFIED = 0, - INTENT = 1, - PAGE_TRANSITION = 2, - TRANSITION_ROUTE_GROUP = 3 - } - } - - /** 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); + /** Properties of a RunTestCaseResponse. */ + interface IRunTestCaseResponse { - /** CalculateCoverageResponse routeGroupCoverage */ - routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); + /** RunTestCaseResponse result */ + result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); } - /** Represents a CalculateCoverageResponse. */ - class CalculateCoverageResponse implements ICalculateCoverageResponse { + /** Represents a RunTestCaseResponse. */ + class RunTestCaseResponse implements IRunTestCaseResponse { /** - * Constructs a new CalculateCoverageResponse. + * Constructs a new RunTestCaseResponse. * @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); - - /** CalculateCoverageResponse transitionCoverage. */ - public transitionCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null); - - /** CalculateCoverageResponse routeGroupCoverage. */ - public routeGroupCoverage?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse); - /** CalculateCoverageResponse coverageType. */ - public coverageType?: ("intentCoverage"|"transitionCoverage"|"routeGroupCoverage"); + /** RunTestCaseResponse result. */ + public result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); /** - * Creates a new CalculateCoverageResponse instance using the specified properties. + * Creates a new RunTestCaseResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CalculateCoverageResponse instance + * @returns RunTestCaseResponse 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.IRunTestCaseResponse): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * 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 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.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, 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 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.ICalculateCoverageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CalculateCoverageResponse 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 CalculateCoverageResponse + * @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.CalculateCoverageResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * Decodes a CalculateCoverageResponse 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 CalculateCoverageResponse + * @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.CalculateCoverageResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; /** - * Verifies a CalculateCoverageResponse 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 CalculateCoverageResponse 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 CalculateCoverageResponse + * @returns RunTestCaseResponse */ - 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.RunTestCaseResponse; /** - * 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 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.CalculateCoverageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CalculateCoverageResponse to JSON. + * Converts this RunTestCaseResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CalculateCoverageResponse + * Gets the default type url for RunTestCaseResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTestCasesRequest. */ - interface IListTestCasesRequest { - - /** 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); + /** Properties of a RunTestCaseMetadata. */ + interface IRunTestCaseMetadata { } - /** Represents a ListTestCasesRequest. */ - class ListTestCasesRequest implements IListTestCasesRequest { + /** Represents a RunTestCaseMetadata. */ + class RunTestCaseMetadata implements IRunTestCaseMetadata { /** - * Constructs a new ListTestCasesRequest. + * Constructs a new RunTestCaseMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest); - - /** 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); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata); /** - * Creates a new ListTestCasesRequest instance using the specified properties. + * Creates a new RunTestCaseMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCasesRequest instance + * @returns RunTestCaseMetadata 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.IRunTestCaseMetadata): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * 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 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.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, 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 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.IListTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCasesRequest 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 ListTestCasesRequest + * @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.ListTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Decodes a ListTestCasesRequest 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 ListTestCasesRequest + * @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.ListTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata; /** - * Verifies a ListTestCasesRequest 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 ListTestCasesRequest 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 ListTestCasesRequest + * @returns RunTestCaseMetadata */ - 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.RunTestCaseMetadata; /** - * 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 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.ListTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCasesRequest to JSON. + * Converts this RunTestCaseMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTestCasesRequest + * Gets the default type url for RunTestCaseMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ListTestCasesRequest { - - /** TestCaseView enum. */ - enum TestCaseView { - TEST_CASE_VIEW_UNSPECIFIED = 0, - BASIC = 1, - FULL = 2 - } - } + /** Properties of a BatchRunTestCasesRequest. */ + interface IBatchRunTestCasesRequest { - /** Properties of a ListTestCasesResponse. */ - interface IListTestCasesResponse { + /** BatchRunTestCasesRequest parent */ + parent?: (string|null); - /** ListTestCasesResponse testCases */ - testCases?: (google.cloud.dialogflow.cx.v3beta1.ITestCase[]|null); + /** BatchRunTestCasesRequest environment */ + environment?: (string|null); - /** ListTestCasesResponse nextPageToken */ - nextPageToken?: (string|null); + /** BatchRunTestCasesRequest testCases */ + testCases?: (string[]|null); } - /** Represents a ListTestCasesResponse. */ - class ListTestCasesResponse implements IListTestCasesResponse { + /** Represents a BatchRunTestCasesRequest. */ + class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { /** - * Constructs a new ListTestCasesResponse. + * Constructs a new BatchRunTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest); - /** ListTestCasesResponse testCases. */ - public testCases: google.cloud.dialogflow.cx.v3beta1.ITestCase[]; + /** BatchRunTestCasesRequest parent. */ + public parent: string; - /** ListTestCasesResponse nextPageToken. */ - public nextPageToken: string; + /** BatchRunTestCasesRequest environment. */ + public environment: string; + + /** BatchRunTestCasesRequest testCases. */ + public testCases: string[]; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCasesResponse instance + * @returns BatchRunTestCasesRequest 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.IBatchRunTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * 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 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.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, 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 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.IListTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCasesResponse 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 ListTestCasesResponse + * @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.ListTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Decodes a ListTestCasesResponse 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 ListTestCasesResponse + * @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.ListTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest; /** - * Verifies a ListTestCasesResponse 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 ListTestCasesResponse 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 ListTestCasesResponse + * @returns BatchRunTestCasesRequest */ - 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.BatchRunTestCasesRequest; /** - * 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 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.ListTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTestCasesResponse + * Gets the default type url for BatchRunTestCasesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchDeleteTestCasesRequest. */ - interface IBatchDeleteTestCasesRequest { - - /** BatchDeleteTestCasesRequest parent */ - parent?: (string|null); + /** Properties of a BatchRunTestCasesResponse. */ + interface IBatchRunTestCasesResponse { - /** BatchDeleteTestCasesRequest names */ - names?: (string[]|null); + /** BatchRunTestCasesResponse results */ + results?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); } - /** Represents a BatchDeleteTestCasesRequest. */ - class BatchDeleteTestCasesRequest implements IBatchDeleteTestCasesRequest { + /** Represents a BatchRunTestCasesResponse. */ + class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { /** - * Constructs a new BatchDeleteTestCasesRequest. + * Constructs a new BatchRunTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest); - - /** BatchDeleteTestCasesRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse); - /** BatchDeleteTestCasesRequest names. */ - public names: string[]; + /** BatchRunTestCasesResponse results. */ + public results: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDeleteTestCasesRequest instance + * @returns BatchRunTestCasesResponse 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.IBatchRunTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * 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 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.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, 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 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.IBatchDeleteTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDeleteTestCasesRequest 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 BatchDeleteTestCasesRequest + * @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.BatchDeleteTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Decodes a BatchDeleteTestCasesRequest 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 BatchDeleteTestCasesRequest + * @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.BatchDeleteTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse; /** - * Verifies a BatchDeleteTestCasesRequest 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 BatchDeleteTestCasesRequest 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 BatchDeleteTestCasesRequest + * @returns BatchRunTestCasesResponse */ - 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.BatchRunTestCasesResponse; /** - * 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 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.BatchDeleteTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDeleteTestCasesRequest to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchDeleteTestCasesRequest + * Gets the default type url for BatchRunTestCasesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTestCaseRequest. */ - interface ICreateTestCaseRequest { - - /** CreateTestCaseRequest parent */ - parent?: (string|null); + /** Properties of a BatchRunTestCasesMetadata. */ + interface IBatchRunTestCasesMetadata { - /** CreateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** BatchRunTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); } - /** Represents a CreateTestCaseRequest. */ - class CreateTestCaseRequest implements ICreateTestCaseRequest { + /** Represents a BatchRunTestCasesMetadata. */ + class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new BatchRunTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest); - - /** CreateTestCaseRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata); - /** CreateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** BatchRunTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTestCaseRequest instance + * @returns BatchRunTestCasesMetadata 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.IBatchRunTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * 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 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.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, 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 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.ICreateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTestCaseRequest 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 CreateTestCaseRequest + * @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.CreateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Decodes a CreateTestCaseRequest 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 CreateTestCaseRequest + * @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.CreateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata; /** - * Verifies a CreateTestCaseRequest 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 CreateTestCaseRequest 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 CreateTestCaseRequest + * @returns BatchRunTestCasesMetadata */ - 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.BatchRunTestCasesMetadata; /** - * 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 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.CreateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTestCaseRequest to JSON. + * Converts this BatchRunTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTestCaseRequest + * Gets the default type url for BatchRunTestCasesMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTestCaseRequest. */ - interface IUpdateTestCaseRequest { + /** Properties of a TestError. */ + interface ITestError { - /** UpdateTestCaseRequest testCase */ - testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** TestError testCase */ + testCase?: (string|null); - /** UpdateTestCaseRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** TestError status */ + status?: (google.rpc.IStatus|null); + + /** TestError testTime */ + testTime?: (google.protobuf.ITimestamp|null); } - /** Represents an UpdateTestCaseRequest. */ - class UpdateTestCaseRequest implements IUpdateTestCaseRequest { + /** Represents a TestError. */ + class TestError implements ITestError { /** - * Constructs a new UpdateTestCaseRequest. + * Constructs a new TestError. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError); - /** UpdateTestCaseRequest testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** TestError testCase. */ + public testCase: string; - /** UpdateTestCaseRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** TestError status. */ + public status?: (google.rpc.IStatus|null); + + /** TestError testTime. */ + public testTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. + * Creates a new TestError instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTestCaseRequest instance + * @returns TestError 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.ITestError): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * 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 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 static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestError, 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 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 static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTestCaseRequest 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 UpdateTestCaseRequest + * @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.v3beta1.UpdateTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Decodes an UpdateTestCaseRequest 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 UpdateTestCaseRequest + * @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.v3beta1.UpdateTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestError; /** - * Verifies an UpdateTestCaseRequest 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 an UpdateTestCaseRequest 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 UpdateTestCaseRequest + * @returns TestError */ - 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.TestError; /** - * 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 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.v3beta1.UpdateTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTestCaseRequest to JSON. + * Converts this TestError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTestCaseRequest + * Gets the default type url for TestError * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTestCaseRequest. */ - interface IGetTestCaseRequest { + /** Properties of an ImportTestCasesRequest. */ + interface IImportTestCasesRequest { - /** GetTestCaseRequest name */ - name?: (string|null); + /** ImportTestCasesRequest parent */ + parent?: (string|null); + + /** ImportTestCasesRequest gcsUri */ + gcsUri?: (string|null); + + /** ImportTestCasesRequest content */ + content?: (Uint8Array|string|null); } - /** Represents a GetTestCaseRequest. */ - class GetTestCaseRequest implements IGetTestCaseRequest { + /** Represents an ImportTestCasesRequest. */ + class ImportTestCasesRequest implements IImportTestCasesRequest { /** - * Constructs a new GetTestCaseRequest. + * Constructs a new ImportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest); - /** GetTestCaseRequest name. */ - public name: string; + /** ImportTestCasesRequest parent. */ + public parent: string; + + /** ImportTestCasesRequest gcsUri. */ + public gcsUri?: (string|null); + + /** ImportTestCasesRequest content. */ + public content?: (Uint8Array|string|null); + + /** ImportTestCasesRequest source. */ + public source?: ("gcsUri"|"content"); /** - * Creates a new GetTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTestCaseRequest instance + * @returns ImportTestCasesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * 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 + * 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.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IGetTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTestCaseRequest 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 GetTestCaseRequest + * @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.GetTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Decodes a GetTestCaseRequest 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 GetTestCaseRequest + * @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.GetTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Verifies a GetTestCaseRequest 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 GetTestCaseRequest 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 GetTestCaseRequest + * @returns ImportTestCasesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; /** - * Creates a plain object from a GetTestCaseRequest message. Also converts values to other types if specified. - * @param message GetTestCaseRequest + * 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.GetTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTestCaseRequest to JSON. + * Converts this ImportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTestCaseRequest + * Gets the default type url for ImportTestCasesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RunTestCaseRequest. */ - interface IRunTestCaseRequest { - - /** RunTestCaseRequest name */ - name?: (string|null); + /** Properties of an ImportTestCasesResponse. */ + interface IImportTestCasesResponse { - /** RunTestCaseRequest environment */ - environment?: (string|null); + /** ImportTestCasesResponse names */ + names?: (string[]|null); } - /** Represents a RunTestCaseRequest. */ - class RunTestCaseRequest implements IRunTestCaseRequest { + /** Represents an ImportTestCasesResponse. */ + class ImportTestCasesResponse implements IImportTestCasesResponse { /** - * Constructs a new RunTestCaseRequest. + * Constructs a new ImportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest); - - /** RunTestCaseRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse); - /** RunTestCaseRequest environment. */ - public environment: string; + /** ImportTestCasesResponse names. */ + public names: string[]; /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseRequest instance + * @returns ImportTestCasesResponse 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.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * 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 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.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, 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 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.IRunTestCaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseRequest 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 RunTestCaseRequest + * @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.RunTestCaseRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Decodes a RunTestCaseRequest 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 RunTestCaseRequest + * @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.RunTestCaseRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; /** - * Verifies a RunTestCaseRequest 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 RunTestCaseRequest 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 RunTestCaseRequest + * @returns ImportTestCasesResponse */ - 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.ImportTestCasesResponse; /** - * Creates a plain object from a RunTestCaseRequest message. Also converts values to other types if specified. - * @param message RunTestCaseRequest + * 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.RunTestCaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseRequest to JSON. + * Converts this ImportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunTestCaseRequest + * Gets the default type url for ImportTestCasesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RunTestCaseResponse. */ - interface IRunTestCaseResponse { + /** Properties of an ImportTestCasesMetadata. */ + interface IImportTestCasesMetadata { - /** RunTestCaseResponse result */ - result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** ImportTestCasesMetadata errors */ + errors?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]|null); } - /** Represents a RunTestCaseResponse. */ - class RunTestCaseResponse implements IRunTestCaseResponse { + /** Represents an ImportTestCasesMetadata. */ + class ImportTestCasesMetadata implements IImportTestCasesMetadata { /** - * Constructs a new RunTestCaseResponse. + * Constructs a new ImportTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata); - /** RunTestCaseResponse result. */ - public result?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null); + /** ImportTestCasesMetadata errors. */ + public errors: google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]; /** - * Creates a new RunTestCaseResponse instance using the specified properties. + * Creates a new ImportTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseResponse instance + * @returns ImportTestCasesMetadata 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.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * 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 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.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, 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 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.IRunTestCaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseResponse 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 RunTestCaseResponse + * @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.RunTestCaseResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Decodes a RunTestCaseResponse 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 RunTestCaseResponse + * @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.RunTestCaseResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; /** - * Verifies a RunTestCaseResponse 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 RunTestCaseResponse 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 RunTestCaseResponse + * @returns ImportTestCasesMetadata */ - 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.ImportTestCasesMetadata; /** - * 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 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.RunTestCaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseResponse to JSON. + * Converts this ImportTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunTestCaseResponse + * Gets the default type url for ImportTestCasesMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RunTestCaseMetadata. */ - interface IRunTestCaseMetadata { + /** Properties of a TestCaseError. */ + interface ITestCaseError { + + /** TestCaseError testCase */ + testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + + /** TestCaseError status */ + status?: (google.rpc.IStatus|null); } - /** Represents a RunTestCaseMetadata. */ - class RunTestCaseMetadata implements IRunTestCaseMetadata { + /** Represents a TestCaseError. */ + class TestCaseError implements ITestCaseError { /** - * Constructs a new RunTestCaseMetadata. + * Constructs a new TestCaseError. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError); + + /** TestCaseError testCase. */ + public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + + /** TestCaseError status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new RunTestCaseMetadata instance using the specified properties. + * Creates a new TestCaseError instance using the specified properties. * @param [properties] Properties to set - * @returns RunTestCaseMetadata instance + * @returns TestCaseError 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.ITestCaseError): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * 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 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.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, 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 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.IRunTestCaseMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RunTestCaseMetadata 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 RunTestCaseMetadata + * @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.RunTestCaseMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Decodes a RunTestCaseMetadata 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 RunTestCaseMetadata + * @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.RunTestCaseMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TestCaseError; /** - * Verifies a RunTestCaseMetadata 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 RunTestCaseMetadata 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 RunTestCaseMetadata + * @returns TestCaseError */ - 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.TestCaseError; /** - * 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 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.RunTestCaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RunTestCaseMetadata to JSON. + * Converts this TestCaseError to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RunTestCaseMetadata + * Gets the default type url for TestCaseError * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchRunTestCasesRequest. */ - interface IBatchRunTestCasesRequest { + /** Properties of an ExportTestCasesRequest. */ + interface IExportTestCasesRequest { - /** BatchRunTestCasesRequest parent */ + /** ExportTestCasesRequest parent */ parent?: (string|null); - /** BatchRunTestCasesRequest environment */ - environment?: (string|null); + /** ExportTestCasesRequest gcsUri */ + gcsUri?: (string|null); - /** BatchRunTestCasesRequest testCases */ - testCases?: (string[]|null); + /** ExportTestCasesRequest dataFormat */ + dataFormat?: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null); + + /** ExportTestCasesRequest filter */ + filter?: (string|null); } - /** Represents a BatchRunTestCasesRequest. */ - class BatchRunTestCasesRequest implements IBatchRunTestCasesRequest { + /** Represents an ExportTestCasesRequest. */ + class ExportTestCasesRequest implements IExportTestCasesRequest { /** - * Constructs a new BatchRunTestCasesRequest. + * Constructs a new ExportTestCasesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest); - /** BatchRunTestCasesRequest parent. */ + /** ExportTestCasesRequest parent. */ public parent: string; - /** BatchRunTestCasesRequest environment. */ - public environment: string; + /** ExportTestCasesRequest gcsUri. */ + public gcsUri?: (string|null); - /** BatchRunTestCasesRequest testCases. */ - public testCases: string[]; + /** ExportTestCasesRequest dataFormat. */ + public dataFormat: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat); + + /** ExportTestCasesRequest filter. */ + public filter: string; + + /** ExportTestCasesRequest destination. */ + public destination?: "gcsUri"; /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. + * Creates a new ExportTestCasesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesRequest instance + * @returns ExportTestCasesRequest 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.IExportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * 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 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.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, 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 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.IBatchRunTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesRequest 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 BatchRunTestCasesRequest + * @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.BatchRunTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Decodes a BatchRunTestCasesRequest 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 BatchRunTestCasesRequest + * @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.BatchRunTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; /** - * Verifies a BatchRunTestCasesRequest 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 BatchRunTestCasesRequest 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 BatchRunTestCasesRequest + * @returns ExportTestCasesRequest */ - 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.ExportTestCasesRequest; /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. - * @param message BatchRunTestCasesRequest + * 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.BatchRunTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesRequest to JSON. + * Converts this ExportTestCasesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchRunTestCasesRequest + * Gets the default type url for ExportTestCasesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchRunTestCasesResponse. */ - interface IBatchRunTestCasesResponse { + namespace ExportTestCasesRequest { - /** BatchRunTestCasesResponse results */ - results?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + BLOB = 1, + JSON = 2 + } } - /** Represents a BatchRunTestCasesResponse. */ - class BatchRunTestCasesResponse implements IBatchRunTestCasesResponse { + /** Properties of an ExportTestCasesResponse. */ + interface IExportTestCasesResponse { + + /** ExportTestCasesResponse gcsUri */ + gcsUri?: (string|null); + + /** ExportTestCasesResponse content */ + content?: (Uint8Array|string|null); + } + + /** Represents an ExportTestCasesResponse. */ + class ExportTestCasesResponse implements IExportTestCasesResponse { /** - * Constructs a new BatchRunTestCasesResponse. + * Constructs a new ExportTestCasesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse); - /** BatchRunTestCasesResponse results. */ - public results: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; + /** ExportTestCasesResponse gcsUri. */ + public gcsUri?: (string|null); + + /** ExportTestCasesResponse content. */ + public content?: (Uint8Array|string|null); + + /** ExportTestCasesResponse destination. */ + public destination?: ("gcsUri"|"content"); /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. + * Creates a new ExportTestCasesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesResponse instance + * @returns ExportTestCasesResponse 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.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * 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 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.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, 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 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.IBatchRunTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesResponse 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 BatchRunTestCasesResponse + * @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.BatchRunTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Decodes a BatchRunTestCasesResponse 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 BatchRunTestCasesResponse + * @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.BatchRunTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; /** - * Verifies a BatchRunTestCasesResponse 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 BatchRunTestCasesResponse 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 BatchRunTestCasesResponse + * @returns ExportTestCasesResponse */ - 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.ExportTestCasesResponse; /** - * Creates a plain object from a BatchRunTestCasesResponse message. Also converts values to other types if specified. - * @param message BatchRunTestCasesResponse + * 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.BatchRunTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesResponse to JSON. + * Converts this ExportTestCasesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchRunTestCasesResponse + * Gets the default type url for ExportTestCasesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchRunTestCasesMetadata. */ - interface IBatchRunTestCasesMetadata { - - /** BatchRunTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3beta1.ITestError[]|null); + /** Properties of an ExportTestCasesMetadata. */ + interface IExportTestCasesMetadata { } - /** Represents a BatchRunTestCasesMetadata. */ - class BatchRunTestCasesMetadata implements IBatchRunTestCasesMetadata { + /** Represents an ExportTestCasesMetadata. */ + class ExportTestCasesMetadata implements IExportTestCasesMetadata { /** - * Constructs a new BatchRunTestCasesMetadata. + * Constructs a new ExportTestCasesMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata); - - /** BatchRunTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3beta1.ITestError[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata); /** - * Creates a new BatchRunTestCasesMetadata instance using the specified properties. + * Creates a new ExportTestCasesMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchRunTestCasesMetadata instance + * @returns ExportTestCasesMetadata 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.IExportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * 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 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.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, 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 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.IBatchRunTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchRunTestCasesMetadata 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 BatchRunTestCasesMetadata + * @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.BatchRunTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Decodes a BatchRunTestCasesMetadata 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 BatchRunTestCasesMetadata + * @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.BatchRunTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata; /** - * Verifies a BatchRunTestCasesMetadata 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 BatchRunTestCasesMetadata 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 BatchRunTestCasesMetadata + * @returns ExportTestCasesMetadata */ - 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.ExportTestCasesMetadata; /** - * 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 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.BatchRunTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchRunTestCasesMetadata to JSON. + * Converts this ExportTestCasesMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchRunTestCasesMetadata + * Gets the default type url for ExportTestCasesMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TestError. */ - interface ITestError { + /** Properties of a ListTestCaseResultsRequest. */ + interface IListTestCaseResultsRequest { - /** TestError testCase */ - testCase?: (string|null); + /** ListTestCaseResultsRequest parent */ + parent?: (string|null); - /** TestError status */ - status?: (google.rpc.IStatus|null); + /** ListTestCaseResultsRequest pageSize */ + pageSize?: (number|null); - /** TestError testTime */ - testTime?: (google.protobuf.ITimestamp|null); + /** ListTestCaseResultsRequest pageToken */ + pageToken?: (string|null); + + /** ListTestCaseResultsRequest filter */ + filter?: (string|null); } - /** Represents a TestError. */ - class TestError implements ITestError { + /** Represents a ListTestCaseResultsRequest. */ + class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { /** - * Constructs a new TestError. + * Constructs a new ListTestCaseResultsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestError); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest); - /** TestError testCase. */ - public testCase: string; + /** ListTestCaseResultsRequest parent. */ + public parent: string; - /** TestError status. */ - public status?: (google.rpc.IStatus|null); + /** ListTestCaseResultsRequest pageSize. */ + public pageSize: number; - /** TestError testTime. */ - public testTime?: (google.protobuf.ITimestamp|null); + /** ListTestCaseResultsRequest pageToken. */ + public pageToken: string; + + /** ListTestCaseResultsRequest filter. */ + public filter: string; /** - * Creates a new TestError instance using the specified properties. + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TestError instance + * @returns ListTestCaseResultsRequest 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.IListTestCaseResultsRequest): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * 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 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.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, 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 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.ITestError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestError 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 TestError + * @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.TestError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Decodes a TestError 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 TestError + * @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.TestError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest; /** - * Verifies a TestError 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 TestError 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 TestError + * @returns ListTestCaseResultsRequest */ - 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.ListTestCaseResultsRequest; /** - * 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 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.TestError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestError to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TestError + * Gets the default type url for ListTestCaseResultsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportTestCasesRequest. */ - interface IImportTestCasesRequest { - - /** ImportTestCasesRequest parent */ - parent?: (string|null); + /** Properties of a ListTestCaseResultsResponse. */ + interface IListTestCaseResultsResponse { - /** ImportTestCasesRequest gcsUri */ - gcsUri?: (string|null); + /** ListTestCaseResultsResponse testCaseResults */ + testCaseResults?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); - /** ImportTestCasesRequest content */ - content?: (Uint8Array|string|null); + /** ListTestCaseResultsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ImportTestCasesRequest. */ - class ImportTestCasesRequest implements IImportTestCasesRequest { + /** Represents a ListTestCaseResultsResponse. */ + class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { /** - * Constructs a new ImportTestCasesRequest. + * Constructs a new ListTestCaseResultsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest); - - /** ImportTestCasesRequest parent. */ - public parent: string; - - /** ImportTestCasesRequest gcsUri. */ - public gcsUri?: (string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse); - /** ImportTestCasesRequest content. */ - public content?: (Uint8Array|string|null); + /** ListTestCaseResultsResponse testCaseResults. */ + public testCaseResults: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; - /** ImportTestCasesRequest source. */ - public source?: ("gcsUri"|"content"); + /** ListTestCaseResultsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ImportTestCasesRequest instance using the specified properties. + * Creates a new ListTestCaseResultsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ImportTestCasesRequest instance + * @returns ListTestCaseResultsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * 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 + * 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.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IImportTestCasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportTestCasesRequest 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 ImportTestCasesRequest + * @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.ImportTestCasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Decodes an ImportTestCasesRequest 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 ImportTestCasesRequest + * @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.ImportTestCasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * Verifies an ImportTestCasesRequest 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 an ImportTestCasesRequest 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 ImportTestCasesRequest + * @returns ListTestCaseResultsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse; /** - * 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 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.ImportTestCasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportTestCasesRequest to JSON. + * Converts this ListTestCaseResultsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportTestCasesRequest + * Gets the default type url for ListTestCaseResultsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportTestCasesResponse. */ - interface IImportTestCasesResponse { + /** Properties of a GetTestCaseResultRequest. */ + interface IGetTestCaseResultRequest { - /** ImportTestCasesResponse names */ - names?: (string[]|null); + /** GetTestCaseResultRequest name */ + name?: (string|null); } - /** Represents an ImportTestCasesResponse. */ - class ImportTestCasesResponse implements IImportTestCasesResponse { + /** Represents a GetTestCaseResultRequest. */ + class GetTestCaseResultRequest implements IGetTestCaseResultRequest { /** - * Constructs a new ImportTestCasesResponse. + * Constructs a new GetTestCaseResultRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest); - /** ImportTestCasesResponse names. */ - public names: string[]; + /** GetTestCaseResultRequest name. */ + public name: string; /** - * Creates a new ImportTestCasesResponse instance using the specified properties. + * Creates a new GetTestCaseResultRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportTestCasesResponse instance + * @returns GetTestCaseResultRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; /** - * 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 + * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. + * @param message GetTestCaseResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. + * @param message GetTestCaseResultRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer. + * Decodes a GetTestCaseResultRequest 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 GetTestCaseResultRequest * @throws {Error} If the payload is not a reader or 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.ImportTestCasesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; /** - * Decodes an ImportTestCasesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportTestCasesResponse + * @returns GetTestCaseResultRequest * @throws {Error} If the payload is not a 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.ImportTestCasesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; /** - * Verifies an ImportTestCasesResponse message. + * Verifies a GetTestCaseResultRequest message. * @param message Plain 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 GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportTestCasesResponse + * @returns GetTestCaseResultRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; /** - * 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 GetTestCaseResultRequest message. Also converts values to other types if specified. + * @param message GetTestCaseResultRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportTestCasesResponse to JSON. + * Converts this GetTestCaseResultRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportTestCasesResponse + * Gets the default type url for GetTestCaseResultRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportTestCasesMetadata. */ - interface IImportTestCasesMetadata { - - /** ImportTestCasesMetadata errors */ - errors?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]|null); + /** TestResult enum. */ + enum TestResult { + TEST_RESULT_UNSPECIFIED = 0, + PASSED = 1, + FAILED = 2 } - /** Represents an ImportTestCasesMetadata. */ - class ImportTestCasesMetadata implements IImportTestCasesMetadata { + /** Represents an Intents */ + class Intents extends $protobuf.rpc.Service { /** - * Constructs a new ImportTestCasesMetadata. - * @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.IImportTestCasesMetadata); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ImportTestCasesMetadata errors. */ - public errors: google.cloud.dialogflow.cx.v3beta1.ITestCaseError[]; + /** + * 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 ImportTestCasesMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportTestCasesMetadata 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.IImportTestCasesMetadata): google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; + public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback): void; /** - * 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 + * Calls ListIntents. + * @param request ListIntentsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): Promise; /** - * 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 + * 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.IImportTestCasesMetadata, 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 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 + * 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.ImportTestCasesMetadata; + public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): 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 + * 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.ImportTestCasesMetadata; + public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback): void; /** - * Verifies an ImportTestCasesMetadata 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 ImportTestCasesMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportTestCasesMetadata + * 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.ImportTestCasesMetadata; + public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback): void; /** - * 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 + * Calls UpdateIntent. + * @param request UpdateIntentRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): Promise; /** - * Converts this ImportTestCasesMetadata 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; /** - * Gets the default type url for ImportTestCasesMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls DeleteIntent. + * @param request DeleteIntentRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; + public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): Promise; + + /** + * Calls ImportIntents. + * @param request ImportIntentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importIntents(request: google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntentsCallback): void; + + /** + * Calls ImportIntents. + * @param request ImportIntentsRequest message or plain object + * @returns Promise + */ + public importIntents(request: google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest): Promise; + + /** + * Calls ExportIntents. + * @param request ExportIntentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportIntents(request: google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntentsCallback): void; + + /** + * Calls ExportIntents. + * @param request ExportIntentsRequest message or plain object + * @returns Promise + */ + public exportIntents(request: google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest): Promise; } - /** Properties of a TestCaseError. */ - interface ITestCaseError { + namespace Intents { - /** TestCaseError testCase */ - testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|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; - /** TestCaseError status */ - status?: (google.rpc.IStatus|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; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents|importIntents}. + * @param error Error, if any + * @param [response] Operation + */ + type ImportIntentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents|exportIntents}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportIntentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Represents a TestCaseError. */ - class TestCaseError implements ITestCaseError { + /** 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 TestCaseError. + * Constructs a new Intent. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent); - /** TestCaseError testCase. */ - public testCase?: (google.cloud.dialogflow.cx.v3beta1.ITestCase|null); + /** Intent name. */ + public name: string; - /** TestCaseError status. */ - public status?: (google.rpc.IStatus|null); + /** 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 TestCaseError instance using the specified properties. + * Creates a new Intent instance using the specified properties. * @param [properties] Properties to set - * @returns TestCaseError instance + * @returns Intent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITestCaseError): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * 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 + * 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.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.ITestCaseError, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TestCaseError 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 TestCaseError + * @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.TestCaseError; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Decodes a TestCaseError 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 TestCaseError + * @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.TestCaseError; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Verifies a TestCaseError 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 TestCaseError 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 TestCaseError + * @returns Intent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TestCaseError; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent; /** - * Creates a plain object from a TestCaseError message. Also converts values to other types if specified. - * @param message TestCaseError + * 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.TestCaseError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TestCaseError to JSON. + * Converts this Intent to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TestCaseError + * Gets the default type url for Intent * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportTestCasesRequest. */ - interface IExportTestCasesRequest { + 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 }; + + /** + * Gets the default type url for TrainingPhrase + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + 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; + + /** + * 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; + + /** + * 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.v3beta1.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.v3beta1.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ExportTestCasesRequest parent */ - parent?: (string|null); + /** + * Converts this Part to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ExportTestCasesRequest gcsUri */ - gcsUri?: (string|null); + /** + * Gets the default type url for Part + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** ExportTestCasesRequest dataFormat */ - dataFormat?: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|null); + /** Properties of a Parameter. */ + interface IParameter { - /** ExportTestCasesRequest filter */ - filter?: (string|null); - } + /** Parameter id */ + id?: (string|null); - /** Represents an ExportTestCasesRequest. */ - class ExportTestCasesRequest implements IExportTestCasesRequest { + /** Parameter entityType */ + entityType?: (string|null); - /** - * Constructs a new ExportTestCasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest); + /** Parameter isList */ + isList?: (boolean|null); - /** ExportTestCasesRequest parent. */ - public parent: string; + /** Parameter redact */ + redact?: (boolean|null); + } - /** ExportTestCasesRequest gcsUri. */ - public gcsUri?: (string|null); + /** Represents a Parameter. */ + class Parameter implements IParameter { - /** ExportTestCasesRequest dataFormat. */ - public dataFormat: (google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat); + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter); - /** ExportTestCasesRequest filter. */ - public filter: string; + /** Parameter id. */ + public id: string; - /** ExportTestCasesRequest destination. */ - public destination?: "gcsUri"; + /** Parameter entityType. */ + public entityType: string; - /** - * 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; + /** Parameter isList. */ + public isList: boolean; - /** - * 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; + /** Parameter redact. */ + public redact: boolean; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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 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 }; + /** + * 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); - /** - * Converts this ExportTestCasesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * 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; - /** - * Gets the default type url for ExportTestCasesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * 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 }; - namespace ExportTestCasesRequest { + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DataFormat enum. */ - enum DataFormat { - DATA_FORMAT_UNSPECIFIED = 0, - BLOB = 1, - JSON = 2 + /** + * Gets the default type url for Parameter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } - /** Properties of an ExportTestCasesResponse. */ - interface IExportTestCasesResponse { - - /** ExportTestCasesResponse gcsUri */ - gcsUri?: (string|null); + /** Properties of a ListIntentsRequest. */ + interface IListIntentsRequest { - /** ExportTestCasesResponse content */ - content?: (Uint8Array|string|null); - } + /** ListIntentsRequest parent */ + parent?: (string|null); - /** Represents an ExportTestCasesResponse. */ - class ExportTestCasesResponse implements IExportTestCasesResponse { + /** ListIntentsRequest languageCode */ + languageCode?: (string|null); - /** - * Constructs a new ExportTestCasesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse); + /** ListIntentsRequest intentView */ + intentView?: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView|null); - /** ExportTestCasesResponse gcsUri. */ - public gcsUri?: (string|null); + /** ListIntentsRequest pageSize */ + pageSize?: (number|null); - /** ExportTestCasesResponse content. */ - public content?: (Uint8Array|string|null); + /** ListIntentsRequest pageToken */ + pageToken?: (string|null); + } - /** ExportTestCasesResponse destination. */ - public destination?: ("gcsUri"|"content"); + /** Represents a ListIntentsRequest. */ + class ListIntentsRequest implements IListIntentsRequest { /** - * Creates a new ExportTestCasesResponse instance using the specified properties. + * Constructs a new ListIntentsRequest. * @param [properties] Properties to set - * @returns ExportTestCasesResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse): google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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 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; - - /** - * 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 }; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest); - /** - * Converts this ExportTestCasesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListIntentsRequest parent. */ + public parent: string; - /** - * Gets the default type url for ExportTestCasesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListIntentsRequest languageCode. */ + public languageCode: string; - /** Properties of an ExportTestCasesMetadata. */ - interface IExportTestCasesMetadata { - } + /** ListIntentsRequest intentView. */ + public intentView: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView); - /** Represents an ExportTestCasesMetadata. */ - class ExportTestCasesMetadata implements IExportTestCasesMetadata { + /** ListIntentsRequest pageSize. */ + public pageSize: number; - /** - * Constructs a new ExportTestCasesMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata); + /** ListIntentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. + * Creates a new ListIntentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTestCasesMetadata instance + * @returns ListIntentsRequest 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.IListIntentsRequest): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * 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 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.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, 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 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.IExportTestCasesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTestCasesMetadata 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 ExportTestCasesMetadata + * @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.ExportTestCasesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Decodes an ExportTestCasesMetadata 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 ExportTestCasesMetadata + * @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.ExportTestCasesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; /** - * Verifies an ExportTestCasesMetadata 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 an ExportTestCasesMetadata 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 ExportTestCasesMetadata + * @returns ListIntentsRequest */ - 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.ListIntentsRequest; /** - * 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 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.ExportTestCasesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTestCasesMetadata to JSON. + * Converts this ListIntentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportTestCasesMetadata + * Gets the default type url for ListIntentsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTestCaseResultsRequest. */ - interface IListTestCaseResultsRequest { - - /** ListTestCaseResultsRequest parent */ - parent?: (string|null); - - /** ListTestCaseResultsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ListIntentsResponse. */ + interface IListIntentsResponse { - /** ListTestCaseResultsRequest pageToken */ - pageToken?: (string|null); + /** ListIntentsResponse intents */ + intents?: (google.cloud.dialogflow.cx.v3beta1.IIntent[]|null); - /** ListTestCaseResultsRequest filter */ - filter?: (string|null); + /** ListIntentsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListTestCaseResultsRequest. */ - class ListTestCaseResultsRequest implements IListTestCaseResultsRequest { + /** Represents a ListIntentsResponse. */ + class ListIntentsResponse implements IListIntentsResponse { /** - * Constructs a new ListTestCaseResultsRequest. + * Constructs a new ListIntentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest); - - /** ListTestCaseResultsRequest parent. */ - public parent: string; - - /** ListTestCaseResultsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse); - /** ListTestCaseResultsRequest pageToken. */ - public pageToken: string; + /** ListIntentsResponse intents. */ + public intents: google.cloud.dialogflow.cx.v3beta1.IIntent[]; - /** ListTestCaseResultsRequest filter. */ - public filter: string; + /** ListIntentsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsRequest instance + * @returns ListIntentsResponse 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.IListIntentsResponse): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * 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 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.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, 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 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.IListTestCaseResultsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsRequest 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 ListTestCaseResultsRequest + * @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.ListTestCaseResultsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Decodes a ListTestCaseResultsRequest 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 ListTestCaseResultsRequest + * @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.ListTestCaseResultsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; /** - * Verifies a ListTestCaseResultsRequest 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 ListTestCaseResultsRequest 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 ListTestCaseResultsRequest + * @returns ListIntentsResponse */ - 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.ListIntentsResponse; /** - * 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 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.ListTestCaseResultsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsRequest to JSON. + * Converts this ListIntentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTestCaseResultsRequest + * Gets the default type url for ListIntentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTestCaseResultsResponse. */ - interface IListTestCaseResultsResponse { + /** Properties of a GetIntentRequest. */ + interface IGetIntentRequest { - /** ListTestCaseResultsResponse testCaseResults */ - testCaseResults?: (google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]|null); + /** GetIntentRequest name */ + name?: (string|null); - /** ListTestCaseResultsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a ListTestCaseResultsResponse. */ - class ListTestCaseResultsResponse implements IListTestCaseResultsResponse { + /** Represents a GetIntentRequest. */ + class GetIntentRequest implements IGetIntentRequest { /** - * Constructs a new ListTestCaseResultsResponse. + * Constructs a new GetIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest); - /** ListTestCaseResultsResponse testCaseResults. */ - public testCaseResults: google.cloud.dialogflow.cx.v3beta1.ITestCaseResult[]; + /** GetIntentRequest name. */ + public name: string; - /** ListTestCaseResultsResponse nextPageToken. */ - public nextPageToken: string; + /** GetIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. + * Creates a new GetIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTestCaseResultsResponse instance + * @returns GetIntentRequest 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.IGetIntentRequest): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * 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 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.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, 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 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.IListTestCaseResultsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTestCaseResultsResponse 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 ListTestCaseResultsResponse + * @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.ListTestCaseResultsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Decodes a ListTestCaseResultsResponse 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 ListTestCaseResultsResponse + * @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.ListTestCaseResultsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; /** - * Verifies a ListTestCaseResultsResponse 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 ListTestCaseResultsResponse 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 ListTestCaseResultsResponse + * @returns GetIntentRequest */ - 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.GetIntentRequest; /** - * 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 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.ListTestCaseResultsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTestCaseResultsResponse to JSON. + * Converts this GetIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTestCaseResultsResponse + * Gets the default type url for GetIntentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTestCaseResultRequest. */ - interface IGetTestCaseResultRequest { + /** Properties of a CreateIntentRequest. */ + interface ICreateIntentRequest { - /** GetTestCaseResultRequest name */ - name?: (string|null); + /** CreateIntentRequest parent */ + parent?: (string|null); + + /** CreateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** CreateIntentRequest languageCode */ + languageCode?: (string|null); } - /** Represents a GetTestCaseResultRequest. */ - class GetTestCaseResultRequest implements IGetTestCaseResultRequest { + /** Represents a CreateIntentRequest. */ + class CreateIntentRequest implements ICreateIntentRequest { /** - * Constructs a new GetTestCaseResultRequest. + * Constructs a new CreateIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest); - /** GetTestCaseResultRequest name. */ - public name: string; + /** CreateIntentRequest parent. */ + public parent: string; + + /** CreateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + + /** CreateIntentRequest languageCode. */ + public languageCode: string; /** - * Creates a new GetTestCaseResultRequest instance using the specified properties. + * Creates a new CreateIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTestCaseResultRequest instance + * @returns CreateIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. - * @param message GetTestCaseResultRequest 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.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. - * @param message GetTestCaseResultRequest 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.IGetTestCaseResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTestCaseResultRequest 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 GetTestCaseResultRequest + * @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.GetTestCaseResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Decodes a GetTestCaseResultRequest 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 GetTestCaseResultRequest + * @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.GetTestCaseResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Verifies a GetTestCaseResultRequest 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 GetTestCaseResultRequest 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 GetTestCaseResultRequest + * @returns CreateIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; /** - * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. - * @param message GetTestCaseResultRequest + * 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.GetTestCaseResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTestCaseResultRequest to JSON. + * Converts this CreateIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTestCaseResultRequest + * Gets the default type url for CreateIntentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** TestResult enum. */ - enum TestResult { - TEST_RESULT_UNSPECIFIED = 0, - PASSED = 1, - FAILED = 2 - } + /** Properties of an UpdateIntentRequest. */ + interface IUpdateIntentRequest { - /** Represents an Intents */ - class Intents extends $protobuf.rpc.Service { + /** UpdateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** - * 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); + /** UpdateIntentRequest languageCode */ + languageCode?: (string|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. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Intents; + /** UpdateIntentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * 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; + /** Represents an UpdateIntentRequest. */ + class UpdateIntentRequest implements IUpdateIntentRequest { /** - * Calls ListIntents. - * @param request ListIntentsRequest message or plain object - * @returns Promise + * Constructs a new UpdateIntentRequest. + * @param [properties] Properties to set */ - public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest); - /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent - */ - public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback): void; + /** UpdateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - /** - * Calls GetIntent. - * @param request GetIntentRequest message or plain object - * @returns Promise - */ - public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): Promise; + /** UpdateIntentRequest languageCode. */ + public languageCode: string; - /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent - */ - public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback): void; + /** UpdateIntentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Calls CreateIntent. - * @param request CreateIntentRequest message or plain object - * @returns Promise + * Creates a new UpdateIntentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIntentRequest instance */ - public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Intent + * 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 updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateIntent. - * @param request UpdateIntentRequest message or plain object - * @returns Promise + * 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 updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, 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 + * 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 UpdateIntentRequest + * @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, callback: google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; /** - * Calls DeleteIntent. - * @param request DeleteIntentRequest message or plain object - * @returns Promise + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIntentRequest + * @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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents|listIntents}. - * @param error Error, if any - * @param [response] ListIntentsResponse + * Verifies an UpdateIntentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents|getIntent}. - * @param error Error, if any - * @param [response] Intent + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIntentRequest */ - type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents|createIntent}. - * @param error Error, if any - * @param [response] Intent + * 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 */ - type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents|updateIntent}. - * @param error Error, if any - * @param [response] Intent + * Converts this UpdateIntentRequest to JSON. + * @returns JSON object */ - type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents|deleteIntent}. - * @param error Error, if any - * @param [response] Empty + * Gets the default type url for UpdateIntentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type DeleteIntentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Intent. */ - interface IIntent { + /** Properties of a DeleteIntentRequest. */ + interface IDeleteIntentRequest { - /** Intent name */ + /** DeleteIntentRequest 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 { + /** Represents a DeleteIntentRequest. */ + class DeleteIntentRequest implements IDeleteIntentRequest { /** - * Constructs a new Intent. + * Constructs a new DeleteIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest); - /** Intent name. */ + /** DeleteIntentRequest 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; - - /** Intent labels. */ - public labels: { [k: string]: string }; - - /** Intent description. */ - public description: string; - /** - * Creates a new Intent instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Intent instance + * @returns DeleteIntentRequest 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.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * 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 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.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, 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 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.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Intent 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 Intent + * @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.Intent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Decodes an Intent 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 Intent + * @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.Intent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; /** - * Verifies an Intent 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 an Intent 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 Intent + * @returns DeleteIntentRequest */ - 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.DeleteIntentRequest; /** - * 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 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.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Intent to JSON. + * Converts this DeleteIntentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Intent + * Gets the default type url for DeleteIntentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Intent { + /** IntentView enum. */ + enum IntentView { + INTENT_VIEW_UNSPECIFIED = 0, + INTENT_VIEW_PARTIAL = 1, + INTENT_VIEW_FULL = 2 + } - /** Properties of a TrainingPhrase. */ - interface ITrainingPhrase { + /** Properties of an ImportIntentsRequest. */ + interface IImportIntentsRequest { - /** TrainingPhrase id */ - id?: (string|null); + /** ImportIntentsRequest parent */ + parent?: (string|null); - /** TrainingPhrase parts */ - parts?: (google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]|null); + /** ImportIntentsRequest intentsUri */ + intentsUri?: (string|null); - /** TrainingPhrase repeatCount */ - repeatCount?: (number|null); - } + /** ImportIntentsRequest intentsContent */ + intentsContent?: (google.cloud.dialogflow.cx.v3beta1.IInlineSource|null); - /** Represents a TrainingPhrase. */ - class TrainingPhrase implements ITrainingPhrase { + /** ImportIntentsRequest mergeOption */ + mergeOption?: (google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption|null); + } - /** - * Constructs a new TrainingPhrase. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase); + /** Represents an ImportIntentsRequest. */ + class ImportIntentsRequest implements IImportIntentsRequest { - /** TrainingPhrase id. */ - public id: string; + /** + * Constructs a new ImportIntentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest); - /** TrainingPhrase parts. */ - public parts: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]; + /** ImportIntentsRequest parent. */ + public parent: string; - /** TrainingPhrase repeatCount. */ - public repeatCount: number; + /** ImportIntentsRequest intentsUri. */ + public intentsUri?: (string|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.v3beta1.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; + /** ImportIntentsRequest intentsContent. */ + public intentsContent?: (google.cloud.dialogflow.cx.v3beta1.IInlineSource|null); - /** - * 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; + /** ImportIntentsRequest mergeOption. */ + public mergeOption: (google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption); - /** - * 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; + /** ImportIntentsRequest intents. */ + public intents?: ("intentsUri"|"intentsContent"); - /** - * 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; + /** + * Creates a new ImportIntentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportIntentsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest): google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest; - /** - * 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; + /** + * Encodes the specified ImportIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.verify|verify} messages. + * @param message ImportIntentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * Encodes the specified ImportIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.verify|verify} messages. + * @param message ImportIntentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * Decodes an ImportIntentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportIntentsRequest + * @throws {Error} If the payload is not a reader or 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.ImportIntentsRequest; - /** - * 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 }; + /** + * Decodes an ImportIntentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportIntentsRequest + * @throws {Error} If the payload is not a 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.ImportIntentsRequest; + + /** + * Verifies an ImportIntentsRequest message. + * @param message 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 TrainingPhrase to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates an ImportIntentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportIntentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest; - /** - * Gets the default type url for TrainingPhrase - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from an ImportIntentsRequest message. Also converts values to other types if specified. + * @param message ImportIntentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - namespace TrainingPhrase { + /** + * Converts this ImportIntentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a Part. */ - interface IPart { + /** + * Gets the default type url for ImportIntentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Part text */ - text?: (string|null); + namespace ImportIntentsRequest { - /** Part parameterId */ - parameterId?: (string|null); - } + /** MergeOption enum. */ + enum MergeOption { + MERGE_OPTION_UNSPECIFIED = 0, + REJECT = 1, + REPLACE = 2, + MERGE = 3, + RENAME = 4, + REPORT_CONFLICT = 5, + KEEP = 6 + } + } - /** Represents a Part. */ - class Part implements IPart { + /** Properties of an ImportIntentsResponse. */ + interface IImportIntentsResponse { - /** - * Constructs a new Part. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart); + /** ImportIntentsResponse intents */ + intents?: (string[]|null); - /** Part text. */ - public text: string; + /** ImportIntentsResponse conflictingResources */ + conflictingResources?: (google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources|null); + } - /** Part parameterId. */ - public parameterId: string; + /** Represents an ImportIntentsResponse. */ + class ImportIntentsResponse implements IImportIntentsResponse { - /** - * 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; + /** + * Constructs a new ImportIntentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse); - /** - * 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; + /** ImportIntentsResponse intents. */ + public intents: string[]; - /** - * 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; + /** ImportIntentsResponse conflictingResources. */ + public conflictingResources?: (google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources|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.v3beta1.Intent.TrainingPhrase.Part; + /** + * Creates a new ImportIntentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportIntentsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse): google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse; - /** - * 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 ImportIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.verify|verify} messages. + * @param message ImportIntentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, 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 ImportIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.verify|verify} messages. + * @param message ImportIntentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, 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 ImportIntentsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportIntentsResponse + * @throws {Error} If the payload is not a reader or 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.ImportIntentsResponse; - /** - * 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 ImportIntentsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportIntentsResponse + * @throws {Error} If the payload is not a 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.ImportIntentsResponse; - /** - * Converts this Part to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies an ImportIntentsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Gets the default type url for Part - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Creates an ImportIntentsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportIntentsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse; - /** Properties of a Parameter. */ - interface IParameter { + /** + * Creates a plain object from an ImportIntentsResponse message. Also converts values to other types if specified. + * @param message ImportIntentsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Parameter id */ - id?: (string|null); + /** + * Converts this ImportIntentsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Parameter entityType */ - entityType?: (string|null); + /** + * Gets the default type url for ImportIntentsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Parameter isList */ - isList?: (boolean|null); + namespace ImportIntentsResponse { - /** Parameter redact */ - redact?: (boolean|null); + /** Properties of a ConflictingResources. */ + interface IConflictingResources { + + /** ConflictingResources intentDisplayNames */ + intentDisplayNames?: (string[]|null); + + /** ConflictingResources entityDisplayNames */ + entityDisplayNames?: (string[]|null); } - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** Represents a ConflictingResources. */ + class ConflictingResources implements IConflictingResources { /** - * Constructs a new Parameter. + * Constructs a new ConflictingResources. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter); - - /** Parameter id. */ - public id: string; - - /** Parameter entityType. */ - public entityType: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources); - /** Parameter isList. */ - public isList: boolean; + /** ConflictingResources intentDisplayNames. */ + public intentDisplayNames: string[]; - /** Parameter redact. */ - public redact: boolean; + /** ConflictingResources entityDisplayNames. */ + public entityDisplayNames: string[]; /** - * Creates a new Parameter instance using the specified properties. + * Creates a new ConflictingResources instance using the specified properties. * @param [properties] Properties to set - * @returns Parameter instance + * @returns ConflictingResources instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources): google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources; /** - * 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 + * Encodes the specified ConflictingResources message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.verify|verify} messages. + * @param message ConflictingResources 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; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources, 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 + * Encodes the specified ConflictingResources message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.verify|verify} messages. + * @param message ConflictingResources 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; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Parameter message from the specified reader or buffer. + * Decodes a ConflictingResources message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Parameter + * @returns ConflictingResources * @throws {Error} If the payload is not a reader or 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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources; /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. + * Decodes a ConflictingResources message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Parameter + * @returns ConflictingResources * @throws {Error} If the payload is not a 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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources; /** - * Verifies a Parameter message. + * Verifies a ConflictingResources message. * @param message Plain 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 ConflictingResources message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Parameter + * @returns ConflictingResources */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources; /** - * 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 ConflictingResources message. Also converts values to other types if specified. + * @param message ConflictingResources * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Parameter to JSON. + * Converts this ConflictingResources to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Parameter + * Gets the default type url for ConflictingResources * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -52328,655 +54656,623 @@ export namespace google { } } - /** Properties of a ListIntentsRequest. */ - interface IListIntentsRequest { - - /** ListIntentsRequest parent */ - parent?: (string|null); - - /** ListIntentsRequest languageCode */ - languageCode?: (string|null); - - /** ListIntentsRequest intentView */ - intentView?: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView|null); - - /** ListIntentsRequest pageSize */ - pageSize?: (number|null); - - /** ListIntentsRequest pageToken */ - pageToken?: (string|null); + /** Properties of an ImportIntentsMetadata. */ + interface IImportIntentsMetadata { } - /** Represents a ListIntentsRequest. */ - class ListIntentsRequest implements IListIntentsRequest { + /** Represents an ImportIntentsMetadata. */ + class ImportIntentsMetadata implements IImportIntentsMetadata { /** - * Constructs a new ListIntentsRequest. + * Constructs a new ImportIntentsMetadata. * @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); - - /** ListIntentsRequest pageSize. */ - public pageSize: number; - - /** ListIntentsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata); /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new ImportIntentsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsRequest instance + * @returns ImportIntentsMetadata 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.IImportIntentsMetadata): google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata; /** - * 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 ImportIntentsMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata.verify|verify} messages. + * @param message ImportIntentsMetadata 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.IImportIntentsMetadata, 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 ImportIntentsMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata.verify|verify} messages. + * @param message ImportIntentsMetadata 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.IImportIntentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes an ImportIntentsMetadata 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 ImportIntentsMetadata * @throws {Error} If the payload is not a reader or 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.ImportIntentsMetadata; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportIntentsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsRequest + * @returns ImportIntentsMetadata * @throws {Error} If the payload is not a 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.ImportIntentsMetadata; /** - * Verifies a ListIntentsRequest message. + * Verifies an ImportIntentsMetadata message. * @param message Plain 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 an ImportIntentsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsRequest + * @returns ImportIntentsMetadata */ - 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.ImportIntentsMetadata; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. - * @param message ListIntentsRequest + * Creates a plain object from an ImportIntentsMetadata message. Also converts values to other types if specified. + * @param message ImportIntentsMetadata * @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.ImportIntentsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this ImportIntentsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListIntentsRequest + * Gets the default type url for ImportIntentsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListIntentsResponse. */ - interface IListIntentsResponse { + /** Properties of an ExportIntentsRequest. */ + interface IExportIntentsRequest { - /** ListIntentsResponse intents */ - intents?: (google.cloud.dialogflow.cx.v3beta1.IIntent[]|null); + /** ExportIntentsRequest parent */ + parent?: (string|null); - /** ListIntentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ExportIntentsRequest intents */ + intents?: (string[]|null); + + /** ExportIntentsRequest intentsUri */ + intentsUri?: (string|null); + + /** ExportIntentsRequest intentsContentInline */ + intentsContentInline?: (boolean|null); + + /** ExportIntentsRequest dataFormat */ + dataFormat?: (google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat|null); } - /** Represents a ListIntentsResponse. */ - class ListIntentsResponse implements IListIntentsResponse { + /** Represents an ExportIntentsRequest. */ + class ExportIntentsRequest implements IExportIntentsRequest { /** - * Constructs a new ListIntentsResponse. + * Constructs a new ExportIntentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest); - /** ListIntentsResponse intents. */ - public intents: google.cloud.dialogflow.cx.v3beta1.IIntent[]; + /** ExportIntentsRequest parent. */ + public parent: string; - /** ListIntentsResponse nextPageToken. */ - public nextPageToken: string; + /** ExportIntentsRequest intents. */ + public intents: string[]; + + /** ExportIntentsRequest intentsUri. */ + public intentsUri?: (string|null); + + /** ExportIntentsRequest intentsContentInline. */ + public intentsContentInline?: (boolean|null); + + /** ExportIntentsRequest dataFormat. */ + public dataFormat: (google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat|keyof typeof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat); + + /** ExportIntentsRequest destination. */ + public destination?: ("intentsUri"|"intentsContentInline"); /** - * Creates a new ListIntentsResponse instance using the specified properties. + * Creates a new ExportIntentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsResponse instance + * @returns ExportIntentsRequest 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.IExportIntentsRequest): google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest; /** - * 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 ExportIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.verify|verify} messages. + * @param message ExportIntentsRequest 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.IExportIntentsRequest, 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 ExportIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.verify|verify} messages. + * @param message ExportIntentsRequest 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.IExportIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes an ExportIntentsRequest 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 ExportIntentsRequest * @throws {Error} If the payload is not a reader or 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.ExportIntentsRequest; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsResponse + * @returns ExportIntentsRequest * @throws {Error} If the payload is not a 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.ExportIntentsRequest; /** - * Verifies a ListIntentsResponse message. + * Verifies an ExportIntentsRequest message. * @param message Plain 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 an ExportIntentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsResponse + * @returns ExportIntentsRequest */ - 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.ExportIntentsRequest; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. - * @param message ListIntentsResponse + * Creates a plain object from an ExportIntentsRequest message. Also converts values to other types if specified. + * @param message ExportIntentsRequest * @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.ExportIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this ExportIntentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListIntentsResponse + * Gets the default type url for ExportIntentsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetIntentRequest. */ - interface IGetIntentRequest { + namespace ExportIntentsRequest { - /** GetIntentRequest name */ - name?: (string|null); + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + BLOB = 1, + JSON = 2, + CSV = 3 + } + } - /** GetIntentRequest languageCode */ - languageCode?: (string|null); + /** Properties of an ExportIntentsResponse. */ + interface IExportIntentsResponse { + + /** ExportIntentsResponse intentsUri */ + intentsUri?: (string|null); + + /** ExportIntentsResponse intentsContent */ + intentsContent?: (google.cloud.dialogflow.cx.v3beta1.IInlineDestination|null); } - /** Represents a GetIntentRequest. */ - class GetIntentRequest implements IGetIntentRequest { + /** Represents an ExportIntentsResponse. */ + class ExportIntentsResponse implements IExportIntentsResponse { /** - * Constructs a new GetIntentRequest. + * Constructs a new ExportIntentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse); - /** GetIntentRequest name. */ - public name: string; + /** ExportIntentsResponse intentsUri. */ + public intentsUri?: (string|null); - /** GetIntentRequest languageCode. */ - public languageCode: string; + /** ExportIntentsResponse intentsContent. */ + public intentsContent?: (google.cloud.dialogflow.cx.v3beta1.IInlineDestination|null); + + /** ExportIntentsResponse intents. */ + public intents?: ("intentsUri"|"intentsContent"); /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new ExportIntentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetIntentRequest instance + * @returns ExportIntentsResponse 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.IExportIntentsResponse): google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse; /** - * 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 ExportIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse.verify|verify} messages. + * @param message ExportIntentsResponse 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.IExportIntentsResponse, 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 ExportIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse.verify|verify} messages. + * @param message ExportIntentsResponse 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.IExportIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes an ExportIntentsResponse 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 ExportIntentsResponse * @throws {Error} If the payload is not a reader or 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.ExportIntentsResponse; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIntentRequest + * @returns ExportIntentsResponse * @throws {Error} If the payload is not a 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.ExportIntentsResponse; /** - * Verifies a GetIntentRequest message. + * Verifies an ExportIntentsResponse message. * @param message Plain 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 an ExportIntentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIntentRequest + * @returns ExportIntentsResponse */ - 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.ExportIntentsResponse; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. - * @param message GetIntentRequest + * Creates a plain object from an ExportIntentsResponse message. Also converts values to other types if specified. + * @param message ExportIntentsResponse * @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.ExportIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIntentRequest to JSON. + * Converts this ExportIntentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetIntentRequest + * Gets the default type url for ExportIntentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateIntentRequest. */ - interface ICreateIntentRequest { - - /** CreateIntentRequest parent */ - parent?: (string|null); - - /** CreateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** CreateIntentRequest languageCode */ - languageCode?: (string|null); + /** Properties of an ExportIntentsMetadata. */ + interface IExportIntentsMetadata { } - /** Represents a CreateIntentRequest. */ - class CreateIntentRequest implements ICreateIntentRequest { + /** Represents an ExportIntentsMetadata. */ + class ExportIntentsMetadata implements IExportIntentsMetadata { /** - * Constructs a new CreateIntentRequest. + * Constructs a new ExportIntentsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest); - - /** CreateIntentRequest parent. */ - public parent: string; - - /** CreateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** CreateIntentRequest languageCode. */ - public languageCode: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata); /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new ExportIntentsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIntentRequest instance + * @returns ExportIntentsMetadata 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.IExportIntentsMetadata): google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata; /** - * 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 ExportIntentsMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata.verify|verify} messages. + * @param message ExportIntentsMetadata 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.IExportIntentsMetadata, 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 ExportIntentsMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata.verify|verify} messages. + * @param message ExportIntentsMetadata 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.IExportIntentsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes an ExportIntentsMetadata 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 ExportIntentsMetadata * @throws {Error} If the payload is not a reader or 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.ExportIntentsMetadata; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIntentRequest + * @returns ExportIntentsMetadata * @throws {Error} If the payload is not a 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.ExportIntentsMetadata; /** - * Verifies a CreateIntentRequest message. + * Verifies an ExportIntentsMetadata message. * @param message Plain 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 an ExportIntentsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateIntentRequest + * @returns ExportIntentsMetadata */ - 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.ExportIntentsMetadata; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. - * @param message CreateIntentRequest + * Creates a plain object from an ExportIntentsMetadata message. Also converts values to other types if specified. + * @param message ExportIntentsMetadata * @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.ExportIntentsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this ExportIntentsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateIntentRequest + * Gets the default type url for ExportIntentsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateIntentRequest. */ - interface IUpdateIntentRequest { - - /** UpdateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** UpdateIntentRequest languageCode */ - languageCode?: (string|null); + /** Properties of an InlineDestination. */ + interface IInlineDestination { - /** UpdateIntentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** InlineDestination content */ + content?: (Uint8Array|string|null); } - /** Represents an UpdateIntentRequest. */ - class UpdateIntentRequest implements IUpdateIntentRequest { + /** Represents an InlineDestination. */ + class InlineDestination implements IInlineDestination { /** - * Constructs a new UpdateIntentRequest. + * Constructs a new InlineDestination. * @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.IInlineDestination); - /** UpdateIntentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** InlineDestination content. */ + public content: (Uint8Array|string); /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new InlineDestination instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIntentRequest instance + * @returns InlineDestination 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.IInlineDestination): google.cloud.dialogflow.cx.v3beta1.InlineDestination; /** - * 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 InlineDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InlineDestination.verify|verify} messages. + * @param message InlineDestination 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.IInlineDestination, 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 InlineDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InlineDestination.verify|verify} messages. + * @param message InlineDestination 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.IInlineDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes an InlineDestination 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 InlineDestination * @throws {Error} If the payload is not a reader or 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.InlineDestination; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an InlineDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIntentRequest + * @returns InlineDestination * @throws {Error} If the payload is not a 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.InlineDestination; /** - * Verifies an UpdateIntentRequest message. + * Verifies an InlineDestination message. * @param message Plain 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 InlineDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIntentRequest + * @returns InlineDestination */ - 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.InlineDestination; /** - * 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 InlineDestination message. Also converts values to other types if specified. + * @param message InlineDestination * @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.InlineDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this InlineDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateIntentRequest + * Gets the default type url for InlineDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteIntentRequest. */ - interface IDeleteIntentRequest { + /** Properties of an InlineSource. */ + interface IInlineSource { - /** DeleteIntentRequest name */ - name?: (string|null); + /** InlineSource content */ + content?: (Uint8Array|string|null); } - /** Represents a DeleteIntentRequest. */ - class DeleteIntentRequest implements IDeleteIntentRequest { + /** Represents an InlineSource. */ + class InlineSource implements IInlineSource { /** - * Constructs a new DeleteIntentRequest. + * Constructs a new InlineSource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IInlineSource); - /** DeleteIntentRequest name. */ - public name: string; + /** InlineSource content. */ + public content: (Uint8Array|string); /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * Creates a new InlineSource instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIntentRequest instance + * @returns InlineSource 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.IInlineSource): google.cloud.dialogflow.cx.v3beta1.InlineSource; /** - * 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 InlineSource message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InlineSource.verify|verify} messages. + * @param message InlineSource 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.IInlineSource, 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 InlineSource message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InlineSource.verify|verify} messages. + * @param message InlineSource 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.IInlineSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes an InlineSource 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 InlineSource * @throws {Error} If the payload is not a reader or 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.InlineSource; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an InlineSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIntentRequest + * @returns InlineSource * @throws {Error} If the payload is not a 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.InlineSource; /** - * Verifies a DeleteIntentRequest message. + * Verifies an InlineSource message. * @param message Plain 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 InlineSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIntentRequest + * @returns InlineSource */ - 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.InlineSource; /** - * 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 InlineSource message. Also converts values to other types if specified. + * @param message InlineSource * @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.InlineSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIntentRequest to JSON. + * Converts this InlineSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteIntentRequest + * Gets the default type url for InlineSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 { @@ -54267,6 +56563,9 @@ export namespace google { /** QueryResult sentimentAnalysisResult */ sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + + /** QueryResult advancedSettings */ + advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); } /** Represents a QueryResult. */ @@ -54326,6 +56625,9 @@ export namespace google { /** QueryResult sentimentAnalysisResult. */ public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + /** QueryResult advancedSettings. */ + public advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + /** QueryResult query. */ public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"); diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.js b/packages/google-cloud-dialogflow-cx/protos/protos.js index fa3e1d9969e..b177efc3469 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.js +++ b/packages/google-cloud-dialogflow-cx/protos/protos.js @@ -82,6 +82,7 @@ * @memberof google.cloud.dialogflow.cx.v3 * @interface IAdvancedSettings * @property {google.cloud.dialogflow.cx.v3.IGcsDestination|null} [audioExportGcsDestination] AdvancedSettings audioExportGcsDestination + * @property {google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings|null} [dtmfSettings] AdvancedSettings dtmfSettings * @property {google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null} [loggingSettings] AdvancedSettings loggingSettings */ @@ -108,6 +109,14 @@ */ AdvancedSettings.prototype.audioExportGcsDestination = null; + /** + * AdvancedSettings dtmfSettings. + * @member {google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings|null|undefined} dtmfSettings + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings + * @instance + */ + AdvancedSettings.prototype.dtmfSettings = null; + /** * AdvancedSettings loggingSettings. * @member {google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null|undefined} loggingSettings @@ -142,6 +151,8 @@ writer = $Writer.create(); if (message.audioExportGcsDestination != null && Object.hasOwnProperty.call(message, "audioExportGcsDestination")) $root.google.cloud.dialogflow.cx.v3.GcsDestination.encode(message.audioExportGcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dtmfSettings != null && Object.hasOwnProperty.call(message, "dtmfSettings")) + $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.encode(message.dtmfSettings, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.loggingSettings != null && Object.hasOwnProperty.call(message, "loggingSettings")) $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.encode(message.loggingSettings, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; @@ -182,6 +193,10 @@ message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3.GcsDestination.decode(reader, reader.uint32()); break; } + case 5: { + message.dtmfSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.decode(reader, reader.uint32()); + break; + } case 6: { message.loggingSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.decode(reader, reader.uint32()); break; @@ -226,6 +241,11 @@ if (error) return "audioExportGcsDestination." + error; } + if (message.dtmfSettings != null && message.hasOwnProperty("dtmfSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.verify(message.dtmfSettings); + if (error) + return "dtmfSettings." + error; + } if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) { var error = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.verify(message.loggingSettings); if (error) @@ -251,6 +271,11 @@ throw TypeError(".google.cloud.dialogflow.cx.v3.AdvancedSettings.audioExportGcsDestination: object expected"); message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3.GcsDestination.fromObject(object.audioExportGcsDestination); } + if (object.dtmfSettings != null) { + if (typeof object.dtmfSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.AdvancedSettings.dtmfSettings: object expected"); + message.dtmfSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.fromObject(object.dtmfSettings); + } if (object.loggingSettings != null) { if (typeof object.loggingSettings !== "object") throw TypeError(".google.cloud.dialogflow.cx.v3.AdvancedSettings.loggingSettings: object expected"); @@ -274,10 +299,13 @@ var object = {}; if (options.defaults) { object.audioExportGcsDestination = null; + object.dtmfSettings = null; object.loggingSettings = null; } if (message.audioExportGcsDestination != null && message.hasOwnProperty("audioExportGcsDestination")) object.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3.GcsDestination.toObject(message.audioExportGcsDestination, options); + if (message.dtmfSettings != null && message.hasOwnProperty("dtmfSettings")) + object.dtmfSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.toObject(message.dtmfSettings, options); if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) object.loggingSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.toObject(message.loggingSettings, options); return object; @@ -309,6 +337,256 @@ return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.AdvancedSettings"; }; + AdvancedSettings.DtmfSettings = (function() { + + /** + * Properties of a DtmfSettings. + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings + * @interface IDtmfSettings + * @property {boolean|null} [enabled] DtmfSettings enabled + * @property {number|null} [maxDigits] DtmfSettings maxDigits + * @property {string|null} [finishDigit] DtmfSettings finishDigit + */ + + /** + * Constructs a new DtmfSettings. + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings + * @classdesc Represents a DtmfSettings. + * @implements IDtmfSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings=} [properties] Properties to set + */ + function DtmfSettings(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]]; + } + + /** + * DtmfSettings enabled. + * @member {boolean} enabled + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @instance + */ + DtmfSettings.prototype.enabled = false; + + /** + * DtmfSettings maxDigits. + * @member {number} maxDigits + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @instance + */ + DtmfSettings.prototype.maxDigits = 0; + + /** + * DtmfSettings finishDigit. + * @member {string} finishDigit + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @instance + */ + DtmfSettings.prototype.finishDigit = ""; + + /** + * Creates a new DtmfSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @static + * @param {google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings} DtmfSettings instance + */ + DtmfSettings.create = function create(properties) { + return new DtmfSettings(properties); + }; + + /** + * Encodes the specified DtmfSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @static + * @param {google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings} message DtmfSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DtmfSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.maxDigits != null && Object.hasOwnProperty.call(message, "maxDigits")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxDigits); + if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.finishDigit); + return writer; + }; + + /** + * Encodes the specified DtmfSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @static + * @param {google.cloud.dialogflow.cx.v3.AdvancedSettings.IDtmfSettings} message DtmfSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DtmfSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DtmfSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @static + * @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.AdvancedSettings.DtmfSettings} DtmfSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DtmfSettings.decode = function decode(reader, length) { + 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.AdvancedSettings.DtmfSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + message.maxDigits = reader.int32(); + break; + } + case 3: { + message.finishDigit = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DtmfSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings} DtmfSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DtmfSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DtmfSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DtmfSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.maxDigits != null && message.hasOwnProperty("maxDigits")) + if (!$util.isInteger(message.maxDigits)) + return "maxDigits: integer expected"; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + if (!$util.isString(message.finishDigit)) + return "finishDigit: string expected"; + return null; + }; + + /** + * Creates a DtmfSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings} DtmfSettings + */ + DtmfSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.maxDigits != null) + message.maxDigits = object.maxDigits | 0; + if (object.finishDigit != null) + message.finishDigit = String(object.finishDigit); + return message; + }; + + /** + * Creates a plain object from a DtmfSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @static + * @param {google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings} message DtmfSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DtmfSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enabled = false; + object.maxDigits = 0; + object.finishDigit = ""; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.maxDigits != null && message.hasOwnProperty("maxDigits")) + object.maxDigits = message.maxDigits; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + object.finishDigit = message.finishDigit; + return object; + }; + + /** + * Converts this DtmfSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @instance + * @returns {Object.} JSON object + */ + DtmfSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DtmfSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DtmfSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings"; + }; + + return DtmfSettings; + })(); + AdvancedSettings.LoggingSettings = (function() { /** @@ -9336,6 +9614,7 @@ * @property {Array.|null} [eventHandlers] Flow eventHandlers * @property {Array.|null} [transitionRouteGroups] Flow transitionRouteGroups * @property {google.cloud.dialogflow.cx.v3.INluSettings|null} [nluSettings] Flow nluSettings + * @property {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null} [advancedSettings] Flow advancedSettings * @property {google.cloud.dialogflow.cx.v3.IKnowledgeConnectorSettings|null} [knowledgeConnectorSettings] Flow knowledgeConnectorSettings */ @@ -9413,6 +9692,14 @@ */ Flow.prototype.nluSettings = null; + /** + * Flow advancedSettings. + * @member {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3.Flow + * @instance + */ + Flow.prototype.advancedSettings = null; + /** * Flow knowledgeConnectorSettings. * @member {google.cloud.dialogflow.cx.v3.IKnowledgeConnectorSettings|null|undefined} knowledgeConnectorSettings @@ -9459,6 +9746,8 @@ $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) $root.google.cloud.dialogflow.cx.v3.NluSettings.encode(message.nluSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) for (var i = 0; i < message.transitionRouteGroups.length; ++i) writer.uint32(/* id 15, wireType 2 =*/122).string(message.transitionRouteGroups[i]); @@ -9532,6 +9821,10 @@ message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); break; } + case 14: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.decode(reader, reader.uint32()); + break; + } case 18: { message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings.decode(reader, reader.uint32()); break; @@ -9610,6 +9903,11 @@ if (error) return "nluSettings." + error; } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) { var error = $root.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings.verify(message.knowledgeConnectorSettings); if (error) @@ -9668,6 +9966,11 @@ throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.nluSettings: object expected"); message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.fromObject(object.nluSettings); } + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.fromObject(object.advancedSettings); + } if (object.knowledgeConnectorSettings != null) { if (typeof object.knowledgeConnectorSettings !== "object") throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.knowledgeConnectorSettings: object expected"); @@ -9699,6 +10002,7 @@ object.displayName = ""; object.description = ""; object.nluSettings = null; + object.advancedSettings = null; object.knowledgeConnectorSettings = null; } if (message.name != null && message.hasOwnProperty("name")) @@ -9719,6 +10023,8 @@ } if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) object.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.toObject(message.nluSettings, options); + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.toObject(message.advancedSettings, options); if (message.transitionRouteGroups && message.transitionRouteGroups.length) { object.transitionRouteGroups = []; for (var j = 0; j < message.transitionRouteGroups.length; ++j) @@ -13734,6 +14040,7 @@ * @property {Array.|null} [transitionRouteGroups] Page transitionRouteGroups * @property {Array.|null} [transitionRoutes] Page transitionRoutes * @property {Array.|null} [eventHandlers] Page eventHandlers + * @property {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null} [advancedSettings] Page advancedSettings * @property {google.cloud.dialogflow.cx.v3.IKnowledgeConnectorSettings|null} [knowledgeConnectorSettings] Page knowledgeConnectorSettings */ @@ -13811,6 +14118,14 @@ */ Page.prototype.eventHandlers = $util.emptyArray; + /** + * Page advancedSettings. + * @member {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3.Page + * @instance + */ + Page.prototype.advancedSettings = null; + /** * Page knowledgeConnectorSettings. * @member {google.cloud.dialogflow.cx.v3.IKnowledgeConnectorSettings|null|undefined} knowledgeConnectorSettings @@ -13860,6 +14175,8 @@ if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) for (var i = 0; i < message.transitionRouteGroups.length; ++i) writer.uint32(/* id 11, wireType 2 =*/90).string(message.transitionRouteGroups[i]); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.knowledgeConnectorSettings != null && Object.hasOwnProperty.call(message, "knowledgeConnectorSettings")) $root.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings.encode(message.knowledgeConnectorSettings, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); return writer; @@ -13930,6 +14247,10 @@ message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); break; } + case 13: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.decode(reader, reader.uint32()); + break; + } case 18: { message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings.decode(reader, reader.uint32()); break; @@ -14010,6 +14331,11 @@ return "eventHandlers." + error; } } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) { var error = $root.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings.verify(message.knowledgeConnectorSettings); if (error) @@ -14071,6 +14397,11 @@ message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandlers[i]); } } + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.fromObject(object.advancedSettings); + } if (object.knowledgeConnectorSettings != null) { if (typeof object.knowledgeConnectorSettings !== "object") throw TypeError(".google.cloud.dialogflow.cx.v3.Page.knowledgeConnectorSettings: object expected"); @@ -14102,6 +14433,7 @@ object.displayName = ""; object.form = null; object.entryFulfillment = null; + object.advancedSettings = null; object.knowledgeConnectorSettings = null; } if (message.name != null && message.hasOwnProperty("name")) @@ -14127,6 +14459,8 @@ for (var j = 0; j < message.transitionRouteGroups.length; ++j) object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.toObject(message.advancedSettings, options); if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) object.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings.toObject(message.knowledgeConnectorSettings, options); return object; @@ -14395,6 +14729,7 @@ * @property {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null} [fillBehavior] Parameter fillBehavior * @property {google.protobuf.IValue|null} [defaultValue] Parameter defaultValue * @property {boolean|null} [redact] Parameter redact + * @property {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null} [advancedSettings] Parameter advancedSettings */ /** @@ -14468,6 +14803,14 @@ */ Parameter.prototype.redact = false; + /** + * Parameter advancedSettings. + * @member {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @instance + */ + Parameter.prototype.advancedSettings = null; + /** * Creates a new Parameter instance using the specified properties. * @function create @@ -14506,6 +14849,8 @@ $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) writer.uint32(/* id 11, wireType 0 =*/88).bool(message.redact); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; @@ -14568,6 +14913,10 @@ message.redact = reader.bool(); break; } + case 12: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -14628,6 +14977,11 @@ if (message.redact != null && message.hasOwnProperty("redact")) if (typeof message.redact !== "boolean") return "redact: boolean expected"; + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } return null; }; @@ -14663,6 +15017,11 @@ } if (object.redact != null) message.redact = Boolean(object.redact); + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.fromObject(object.advancedSettings); + } return message; }; @@ -14687,6 +15046,7 @@ object.fillBehavior = null; object.defaultValue = null; object.redact = false; + object.advancedSettings = null; } if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; @@ -14702,6 +15062,8 @@ object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options); if (message.redact != null && message.hasOwnProperty("redact")) object.redact = message.redact; + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.toObject(message.advancedSettings, options); return object; }; @@ -17812,6 +18174,8 @@ * @property {string|null} [tag] Fulfillment tag * @property {Array.|null} [setParameterActions] Fulfillment setParameterActions * @property {Array.|null} [conditionalCases] Fulfillment conditionalCases + * @property {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null} [advancedSettings] Fulfillment advancedSettings + * @property {boolean|null} [enableGenerativeFallback] Fulfillment enableGenerativeFallback */ /** @@ -17880,6 +18244,22 @@ */ Fulfillment.prototype.conditionalCases = $util.emptyArray; + /** + * Fulfillment advancedSettings. + * @member {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @instance + */ + Fulfillment.prototype.advancedSettings = null; + + /** + * Fulfillment enableGenerativeFallback. + * @member {boolean} enableGenerativeFallback + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @instance + */ + Fulfillment.prototype.enableGenerativeFallback = false; + /** * Creates a new Fulfillment instance using the specified properties. * @function create @@ -17917,8 +18297,12 @@ if (message.conditionalCases != null && message.conditionalCases.length) for (var i = 0; i < message.conditionalCases.length; ++i) $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.encode(message.conditionalCases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.returnPartialResponses != null && Object.hasOwnProperty.call(message, "returnPartialResponses")) writer.uint32(/* id 8, wireType 0 =*/64).bool(message.returnPartialResponses); + if (message.enableGenerativeFallback != null && Object.hasOwnProperty.call(message, "enableGenerativeFallback")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.enableGenerativeFallback); return writer; }; @@ -17983,6 +18367,14 @@ message.conditionalCases.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.decode(reader, reader.uint32())); break; } + case 7: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.decode(reader, reader.uint32()); + break; + } + case 12: { + message.enableGenerativeFallback = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -18054,6 +18446,14 @@ return "conditionalCases." + error; } } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } + if (message.enableGenerativeFallback != null && message.hasOwnProperty("enableGenerativeFallback")) + if (typeof message.enableGenerativeFallback !== "boolean") + return "enableGenerativeFallback: boolean expected"; return null; }; @@ -18105,6 +18505,13 @@ message.conditionalCases[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.fromObject(object.conditionalCases[i]); } } + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.fromObject(object.advancedSettings); + } + if (object.enableGenerativeFallback != null) + message.enableGenerativeFallback = Boolean(object.enableGenerativeFallback); return message; }; @@ -18129,7 +18536,9 @@ if (options.defaults) { object.webhook = ""; object.tag = ""; + object.advancedSettings = null; object.returnPartialResponses = false; + object.enableGenerativeFallback = false; } if (message.messages && message.messages.length) { object.messages = []; @@ -18150,8 +18559,12 @@ for (var j = 0; j < message.conditionalCases.length; ++j) object.conditionalCases[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.toObject(message.conditionalCases[j], options); } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.toObject(message.advancedSettings, options); if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) object.returnPartialResponses = message.returnPartialResponses; + if (message.enableGenerativeFallback != null && message.hasOwnProperty("enableGenerativeFallback")) + object.enableGenerativeFallback = message.enableGenerativeFallback; return object; }; @@ -46059,6 +46472,72 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents|importIntents}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef ImportIntentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ImportIntents. + * @function importIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsRequest} request ImportIntentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.ImportIntentsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.importIntents = function importIntents(request, callback) { + return this.rpcCall(importIntents, $root.google.cloud.dialogflow.cx.v3.ImportIntentsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportIntents" }); + + /** + * Calls ImportIntents. + * @function importIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsRequest} request ImportIntentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents|exportIntents}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef ExportIntentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportIntents. + * @function exportIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsRequest} request ExportIntentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.ExportIntentsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.exportIntents = function exportIntents(request, callback) { + return this.rpcCall(exportIntents, $root.google.cloud.dialogflow.cx.v3.ExportIntentsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportIntents" }); + + /** + * Calls ExportIntents. + * @function exportIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsRequest} request ExportIntentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Intents; })(); @@ -48808,194 +49287,27 @@ return values; })(); - v3.Sessions = (function() { - - /** - * Constructs a new Sessions service. - * @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. - */ - 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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() { + v3.ImportIntentsRequest = (function() { /** - * Properties of a DetectIntentRequest. + * Properties of an ImportIntentsRequest. * @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 IImportIntentsRequest + * @property {string|null} [parent] ImportIntentsRequest parent + * @property {string|null} [intentsUri] ImportIntentsRequest intentsUri + * @property {google.cloud.dialogflow.cx.v3.IInlineSource|null} [intentsContent] ImportIntentsRequest intentsContent + * @property {google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption|null} [mergeOption] ImportIntentsRequest mergeOption */ /** - * Constructs a new DetectIntentRequest. + * Constructs a new ImportIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DetectIntentRequest. - * @implements IDetectIntentRequest + * @classdesc Represents an ImportIntentsRequest. + * @implements IImportIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsRequest=} [properties] Properties to set */ - function DetectIntentRequest(properties) { + function ImportIntentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49003,117 +49315,131 @@ } /** - * DetectIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * ImportIntentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @instance */ - DetectIntentRequest.prototype.session = ""; + ImportIntentsRequest.prototype.parent = ""; /** - * DetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * ImportIntentsRequest intentsUri. + * @member {string|null|undefined} intentsUri + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @instance */ - DetectIntentRequest.prototype.queryParams = null; + ImportIntentsRequest.prototype.intentsUri = null; /** - * DetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * ImportIntentsRequest intentsContent. + * @member {google.cloud.dialogflow.cx.v3.IInlineSource|null|undefined} intentsContent + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @instance */ - DetectIntentRequest.prototype.queryInput = null; + ImportIntentsRequest.prototype.intentsContent = null; /** - * DetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * ImportIntentsRequest mergeOption. + * @member {google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption} mergeOption + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @instance */ - DetectIntentRequest.prototype.outputAudioConfig = null; + ImportIntentsRequest.prototype.mergeOption = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new DetectIntentRequest instance using the specified properties. + * ImportIntentsRequest intents. + * @member {"intentsUri"|"intentsContent"|undefined} intents + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest + * @instance + */ + Object.defineProperty(ImportIntentsRequest.prototype, "intents", { + get: $util.oneOfGetter($oneOfFields = ["intentsUri", "intentsContent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ImportIntentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @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.IImportIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportIntentsRequest} ImportIntentsRequest instance */ - DetectIntentRequest.create = function create(properties) { - return new DetectIntentRequest(properties); + ImportIntentsRequest.create = function create(properties) { + return new ImportIntentsRequest(properties); }; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. + * Encodes the specified ImportIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsRequest} message ImportIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encode = function encode(message, writer) { + ImportIntentsRequest.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.intentsUri != null && Object.hasOwnProperty.call(message, "intentsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.intentsUri); + if (message.intentsContent != null && Object.hasOwnProperty.call(message, "intentsContent")) + $root.google.cloud.dialogflow.cx.v3.InlineSource.encode(message.intentsContent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mergeOption != null && Object.hasOwnProperty.call(message, "mergeOption")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.mergeOption); 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 ImportIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsRequest} message ImportIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer. + * Decodes an ImportIntentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @static * @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.ImportIntentsRequest} ImportIntentsRequest * @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) { + ImportIntentsRequest.decode = function decode(reader, length) { 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.ImportIntentsRequest(); 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.intentsUri = reader.string(); break; } case 3: { - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); + message.intentsContent = $root.google.cloud.dialogflow.cx.v3.InlineSource.decode(reader, reader.uint32()); break; } case 4: { - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); + message.mergeOption = reader.int32(); break; } default: @@ -49125,167 +49451,234 @@ }; /** - * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportIntentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @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.ImportIntentsRequest} ImportIntentsRequest * @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) { + ImportIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentRequest message. + * Verifies an ImportIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @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) { + ImportIntentsRequest.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.intentsUri != null && message.hasOwnProperty("intentsUri")) { + properties.intents = 1; + if (!$util.isString(message.intentsUri)) + return "intentsUri: string expected"; + } + if (message.intentsContent != null && message.hasOwnProperty("intentsContent")) { + if (properties.intents === 1) + return "intents: multiple values"; + properties.intents = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.InlineSource.verify(message.intentsContent); + if (error) + return "intentsContent." + error; + } } + if (message.mergeOption != null && message.hasOwnProperty("mergeOption")) + switch (message.mergeOption) { + default: + return "mergeOption: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } return null; }; /** - * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportIntentsRequest 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.ImportIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportIntentsRequest} ImportIntentsRequest */ - DetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest) + ImportIntentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportIntentsRequest) 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.ImportIntentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.intentsUri != null) + message.intentsUri = String(object.intentsUri); + if (object.intentsContent != null) { + if (typeof object.intentsContent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportIntentsRequest.intentsContent: object expected"); + message.intentsContent = $root.google.cloud.dialogflow.cx.v3.InlineSource.fromObject(object.intentsContent); + } + switch (object.mergeOption) { + default: + if (typeof object.mergeOption === "number") { + message.mergeOption = object.mergeOption; + break; + } + break; + case "MERGE_OPTION_UNSPECIFIED": + case 0: + message.mergeOption = 0; + break; + case "REJECT": + case 1: + message.mergeOption = 1; + break; + case "REPLACE": + case 2: + message.mergeOption = 2; + break; + case "MERGE": + case 3: + message.mergeOption = 3; + break; + case "RENAME": + case 4: + message.mergeOption = 4; + break; + case "REPORT_CONFLICT": + case 5: + message.mergeOption = 5; + break; + case "KEEP": + case 6: + message.mergeOption = 6; + break; } return message; }; /** - * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportIntentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DetectIntentRequest} message DetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3.ImportIntentsRequest} message ImportIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetectIntentRequest.toObject = function toObject(message, options) { + ImportIntentsRequest.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.mergeOption = options.enums === String ? "MERGE_OPTION_UNSPECIFIED" : 0; } - 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.intentsUri != null && message.hasOwnProperty("intentsUri")) { + object.intentsUri = message.intentsUri; + if (options.oneofs) + object.intents = "intentsUri"; + } + if (message.intentsContent != null && message.hasOwnProperty("intentsContent")) { + object.intentsContent = $root.google.cloud.dialogflow.cx.v3.InlineSource.toObject(message.intentsContent, options); + if (options.oneofs) + object.intents = "intentsContent"; + } + if (message.mergeOption != null && message.hasOwnProperty("mergeOption")) + object.mergeOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption[message.mergeOption] === undefined ? message.mergeOption : $root.google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption[message.mergeOption] : message.mergeOption; return object; }; /** - * Converts this DetectIntentRequest to JSON. + * Converts this ImportIntentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @instance * @returns {Object.} JSON object */ - DetectIntentRequest.prototype.toJSON = function toJSON() { + ImportIntentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DetectIntentRequest + * Gets the default type url for ImportIntentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DetectIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportIntentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DetectIntentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ImportIntentsRequest"; }; - return DetectIntentRequest; + /** + * MergeOption enum. + * @name google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption + * @enum {number} + * @property {number} MERGE_OPTION_UNSPECIFIED=0 MERGE_OPTION_UNSPECIFIED value + * @property {number} REJECT=1 REJECT value + * @property {number} REPLACE=2 REPLACE value + * @property {number} MERGE=3 MERGE value + * @property {number} RENAME=4 RENAME value + * @property {number} REPORT_CONFLICT=5 REPORT_CONFLICT value + * @property {number} KEEP=6 KEEP value + */ + ImportIntentsRequest.MergeOption = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MERGE_OPTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "REJECT"] = 1; + values[valuesById[2] = "REPLACE"] = 2; + values[valuesById[3] = "MERGE"] = 3; + values[valuesById[4] = "RENAME"] = 4; + values[valuesById[5] = "REPORT_CONFLICT"] = 5; + values[valuesById[6] = "KEEP"] = 6; + return values; + })(); + + return ImportIntentsRequest; })(); - v3.DetectIntentResponse = (function() { + v3.ImportIntentsResponse = (function() { /** - * Properties of a DetectIntentResponse. + * Properties of an ImportIntentsResponse. * @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 - * @property {google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|null} [responseType] DetectIntentResponse responseType - * @property {boolean|null} [allowCancellation] DetectIntentResponse allowCancellation + * @interface IImportIntentsResponse + * @property {Array.|null} [intents] ImportIntentsResponse intents + * @property {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources|null} [conflictingResources] ImportIntentsResponse conflictingResources */ /** - * Constructs a new DetectIntentResponse. + * Constructs a new ImportIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DetectIntentResponse. - * @implements IDetectIntentResponse + * @classdesc Represents an ImportIntentsResponse. + * @implements IImportIntentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsResponse=} [properties] Properties to set */ - function DetectIntentResponse(properties) { + function ImportIntentsResponse(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49293,145 +49686,92 @@ } /** - * DetectIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.responseId = ""; - - /** - * DetectIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.queryResult = null; - - /** - * DetectIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); - - /** - * DetectIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse - * @instance - */ - DetectIntentResponse.prototype.outputAudioConfig = null; - - /** - * DetectIntentResponse responseType. - * @member {google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType} responseType - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * ImportIntentsResponse intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @instance */ - DetectIntentResponse.prototype.responseType = 0; + ImportIntentsResponse.prototype.intents = $util.emptyArray; /** - * DetectIntentResponse allowCancellation. - * @member {boolean} allowCancellation - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * ImportIntentsResponse conflictingResources. + * @member {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources|null|undefined} conflictingResources + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @instance */ - DetectIntentResponse.prototype.allowCancellation = false; + ImportIntentsResponse.prototype.conflictingResources = null; /** - * Creates a new DetectIntentResponse instance using the specified properties. + * Creates a new ImportIntentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @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.IImportIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportIntentsResponse} ImportIntentsResponse instance */ - DetectIntentResponse.create = function create(properties) { - return new DetectIntentResponse(properties); + ImportIntentsResponse.create = function create(properties) { + return new ImportIntentsResponse(properties); }; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. + * Encodes the specified ImportIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsResponse} message ImportIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encode = function encode(message, writer) { + ImportIntentsResponse.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.responseType != null && Object.hasOwnProperty.call(message, "responseType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.responseType); - if (message.allowCancellation != null && Object.hasOwnProperty.call(message, "allowCancellation")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.allowCancellation); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intents[i]); + if (message.conflictingResources != null && Object.hasOwnProperty.call(message, "conflictingResources")) + $root.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.encode(message.conflictingResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); 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 ImportIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsResponse} message ImportIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + ImportIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer. + * Decodes an ImportIntentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @static * @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.ImportIntentsResponse} ImportIntentsResponse * @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) { + ImportIntentsResponse.decode = function decode(reader, length) { 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.ImportIntentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.responseId = reader.string(); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push(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()); - break; - } - case 6: { - message.responseType = reader.int32(); - break; - } - case 7: { - message.allowCancellation = reader.bool(); + message.conflictingResources = $root.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.decode(reader, reader.uint32()); break; } default: @@ -49443,227 +49783,406 @@ }; /** - * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportIntentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @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.ImportIntentsResponse} ImportIntentsResponse * @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) { + ImportIntentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DetectIntentResponse message. + * Verifies an ImportIntentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @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) { + ImportIntentsResponse.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.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) + if (!$util.isString(message.intents[i])) + return "intents: 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 (message.conflictingResources != null && message.hasOwnProperty("conflictingResources")) { + var error = $root.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.verify(message.conflictingResources); if (error) - return "outputAudioConfig." + error; + return "conflictingResources." + error; } - if (message.responseType != null && message.hasOwnProperty("responseType")) - switch (message.responseType) { - default: - return "responseType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) - if (typeof message.allowCancellation !== "boolean") - return "allowCancellation: boolean expected"; return null; }; /** - * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportIntentsResponse 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.ImportIntentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.ImportIntentsResponse} ImportIntentsResponse */ - DetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse) + ImportIntentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportIntentsResponse) 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 >= 0) - 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.ImportIntentsResponse(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportIntentsResponse.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) + message.intents[i] = String(object.intents[i]); } - switch (object.responseType) { - default: - if (typeof object.responseType === "number") { - message.responseType = object.responseType; - break; - } - break; - case "RESPONSE_TYPE_UNSPECIFIED": - case 0: - message.responseType = 0; - break; - case "PARTIAL": - case 1: - message.responseType = 1; - break; - case "FINAL": - case 2: - message.responseType = 2; - break; + if (object.conflictingResources != null) { + if (typeof object.conflictingResources !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportIntentsResponse.conflictingResources: object expected"); + message.conflictingResources = $root.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.fromObject(object.conflictingResources); } - if (object.allowCancellation != null) - message.allowCancellation = Boolean(object.allowCancellation); return message; }; /** - * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from an ImportIntentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} message DetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.ImportIntentsResponse} message ImportIntentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DetectIntentResponse.toObject = function toObject(message, options) { + ImportIntentsResponse.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.responseType = options.enums === String ? "RESPONSE_TYPE_UNSPECIFIED" : 0; - object.allowCancellation = false; + if (options.arrays || options.defaults) + object.intents = []; + if (options.defaults) + object.conflictingResources = null; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = message.intents[j]; } - 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.responseType != null && message.hasOwnProperty("responseType")) - object.responseType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType[message.responseType] === undefined ? message.responseType : $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType[message.responseType] : message.responseType; - if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) - object.allowCancellation = message.allowCancellation; + if (message.conflictingResources != null && message.hasOwnProperty("conflictingResources")) + object.conflictingResources = $root.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.toObject(message.conflictingResources, options); return object; }; /** - * Converts this DetectIntentResponse to JSON. + * Converts this ImportIntentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @instance * @returns {Object.} JSON object */ - DetectIntentResponse.prototype.toJSON = function toJSON() { + ImportIntentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DetectIntentResponse + * Gets the default type url for ImportIntentsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DetectIntentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportIntentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DetectIntentResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ImportIntentsResponse"; }; - /** - * ResponseType enum. - * @name google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType - * @enum {number} - * @property {number} RESPONSE_TYPE_UNSPECIFIED=0 RESPONSE_TYPE_UNSPECIFIED value - * @property {number} PARTIAL=1 PARTIAL value - * @property {number} FINAL=2 FINAL value - */ - DetectIntentResponse.ResponseType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESPONSE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PARTIAL"] = 1; - values[valuesById[2] = "FINAL"] = 2; - return values; + ImportIntentsResponse.ConflictingResources = (function() { + + /** + * Properties of a ConflictingResources. + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse + * @interface IConflictingResources + * @property {Array.|null} [intentDisplayNames] ConflictingResources intentDisplayNames + * @property {Array.|null} [entityDisplayNames] ConflictingResources entityDisplayNames + */ + + /** + * Constructs a new ConflictingResources. + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse + * @classdesc Represents a ConflictingResources. + * @implements IConflictingResources + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources=} [properties] Properties to set + */ + function ConflictingResources(properties) { + this.intentDisplayNames = []; + this.entityDisplayNames = []; + 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]]; + } + + /** + * ConflictingResources intentDisplayNames. + * @member {Array.} intentDisplayNames + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @instance + */ + ConflictingResources.prototype.intentDisplayNames = $util.emptyArray; + + /** + * ConflictingResources entityDisplayNames. + * @member {Array.} entityDisplayNames + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @instance + */ + ConflictingResources.prototype.entityDisplayNames = $util.emptyArray; + + /** + * Creates a new ConflictingResources instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @static + * @param {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources} ConflictingResources instance + */ + ConflictingResources.create = function create(properties) { + return new ConflictingResources(properties); + }; + + /** + * Encodes the specified ConflictingResources message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @static + * @param {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources} message ConflictingResources message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConflictingResources.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.intentDisplayNames != null && message.intentDisplayNames.length) + for (var i = 0; i < message.intentDisplayNames.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intentDisplayNames[i]); + if (message.entityDisplayNames != null && message.entityDisplayNames.length) + for (var i = 0; i < message.entityDisplayNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityDisplayNames[i]); + return writer; + }; + + /** + * Encodes the specified ConflictingResources message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @static + * @param {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.IConflictingResources} message ConflictingResources message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConflictingResources.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConflictingResources message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @static + * @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.ImportIntentsResponse.ConflictingResources} ConflictingResources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConflictingResources.decode = function decode(reader, length) { + 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.ImportIntentsResponse.ConflictingResources(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.intentDisplayNames && message.intentDisplayNames.length)) + message.intentDisplayNames = []; + message.intentDisplayNames.push(reader.string()); + break; + } + case 2: { + if (!(message.entityDisplayNames && message.entityDisplayNames.length)) + message.entityDisplayNames = []; + message.entityDisplayNames.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConflictingResources message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources} ConflictingResources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConflictingResources.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConflictingResources message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConflictingResources.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.intentDisplayNames != null && message.hasOwnProperty("intentDisplayNames")) { + if (!Array.isArray(message.intentDisplayNames)) + return "intentDisplayNames: array expected"; + for (var i = 0; i < message.intentDisplayNames.length; ++i) + if (!$util.isString(message.intentDisplayNames[i])) + return "intentDisplayNames: string[] expected"; + } + if (message.entityDisplayNames != null && message.hasOwnProperty("entityDisplayNames")) { + if (!Array.isArray(message.entityDisplayNames)) + return "entityDisplayNames: array expected"; + for (var i = 0; i < message.entityDisplayNames.length; ++i) + if (!$util.isString(message.entityDisplayNames[i])) + return "entityDisplayNames: string[] expected"; + } + return null; + }; + + /** + * Creates a ConflictingResources message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources} ConflictingResources + */ + ConflictingResources.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources(); + if (object.intentDisplayNames) { + if (!Array.isArray(object.intentDisplayNames)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.intentDisplayNames: array expected"); + message.intentDisplayNames = []; + for (var i = 0; i < object.intentDisplayNames.length; ++i) + message.intentDisplayNames[i] = String(object.intentDisplayNames[i]); + } + if (object.entityDisplayNames) { + if (!Array.isArray(object.entityDisplayNames)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources.entityDisplayNames: array expected"); + message.entityDisplayNames = []; + for (var i = 0; i < object.entityDisplayNames.length; ++i) + message.entityDisplayNames[i] = String(object.entityDisplayNames[i]); + } + return message; + }; + + /** + * Creates a plain object from a ConflictingResources message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @static + * @param {google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources} message ConflictingResources + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConflictingResources.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.intentDisplayNames = []; + object.entityDisplayNames = []; + } + if (message.intentDisplayNames && message.intentDisplayNames.length) { + object.intentDisplayNames = []; + for (var j = 0; j < message.intentDisplayNames.length; ++j) + object.intentDisplayNames[j] = message.intentDisplayNames[j]; + } + if (message.entityDisplayNames && message.entityDisplayNames.length) { + object.entityDisplayNames = []; + for (var j = 0; j < message.entityDisplayNames.length; ++j) + object.entityDisplayNames[j] = message.entityDisplayNames[j]; + } + return object; + }; + + /** + * Converts this ConflictingResources to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @instance + * @returns {Object.} JSON object + */ + ConflictingResources.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConflictingResources + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConflictingResources.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources"; + }; + + return ConflictingResources; })(); - return DetectIntentResponse; + return ImportIntentsResponse; })(); - v3.StreamingDetectIntentRequest = (function() { + v3.ImportIntentsMetadata = (function() { /** - * Properties of a StreamingDetectIntentRequest. + * Properties of an ImportIntentsMetadata. * @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 - * @property {boolean|null} [enablePartialResponse] StreamingDetectIntentRequest enablePartialResponse - * @property {boolean|null} [enableDebuggingInfo] StreamingDetectIntentRequest enableDebuggingInfo + * @interface IImportIntentsMetadata */ /** - * Constructs a new StreamingDetectIntentRequest. + * Constructs a new ImportIntentsMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StreamingDetectIntentRequest. - * @implements IStreamingDetectIntentRequest + * @classdesc Represents an ImportIntentsMetadata. + * @implements IImportIntentsMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsMetadata=} [properties] Properties to set */ - function StreamingDetectIntentRequest(properties) { + function ImportIntentsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49671,147 +50190,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; - - /** - * StreamingDetectIntentRequest enablePartialResponse. - * @member {boolean} enablePartialResponse - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.enablePartialResponse = false; - - /** - * StreamingDetectIntentRequest enableDebuggingInfo. - * @member {boolean} enableDebuggingInfo - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest - * @instance - */ - StreamingDetectIntentRequest.prototype.enableDebuggingInfo = false; - - /** - * Creates a new StreamingDetectIntentRequest instance using the specified properties. + * Creates a new ImportIntentsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsMetadata * @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.IImportIntentsMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportIntentsMetadata} ImportIntentsMetadata instance */ - StreamingDetectIntentRequest.create = function create(properties) { - return new StreamingDetectIntentRequest(properties); + ImportIntentsMetadata.create = function create(properties) { + return new ImportIntentsMetadata(properties); }; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified ImportIntentsMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsMetadata} message ImportIntentsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encode = function encode(message, writer) { + ImportIntentsMetadata.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.enablePartialResponse != null && Object.hasOwnProperty.call(message, "enablePartialResponse")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enablePartialResponse); - if (message.enableDebuggingInfo != null && Object.hasOwnProperty.call(message, "enableDebuggingInfo")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableDebuggingInfo); 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 ImportIntentsMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportIntentsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportIntentsMetadata} message ImportIntentsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportIntentsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. + * Decodes an ImportIntentsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsMetadata * @static * @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.ImportIntentsMetadata} ImportIntentsMetadata * @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) { + ImportIntentsMetadata.decode = function decode(reader, length) { 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.ImportIntentsMetadata(); 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; - } - case 5: { - message.enablePartialResponse = reader.bool(); - break; - } - case 8: { - message.enableDebuggingInfo = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -49821,199 +50256,114 @@ }; /** - * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportIntentsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsMetadata * @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.ImportIntentsMetadata} ImportIntentsMetadata * @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) { + ImportIntentsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentRequest message. + * Verifies an ImportIntentsMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsMetadata * @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) { + ImportIntentsMetadata.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; - } - if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) - if (typeof message.enablePartialResponse !== "boolean") - return "enablePartialResponse: boolean expected"; - if (message.enableDebuggingInfo != null && message.hasOwnProperty("enableDebuggingInfo")) - if (typeof message.enableDebuggingInfo !== "boolean") - return "enableDebuggingInfo: boolean expected"; return null; }; /** - * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportIntentsMetadata 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.ImportIntentsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ImportIntentsMetadata} ImportIntentsMetadata */ - StreamingDetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest) + ImportIntentsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportIntentsMetadata) 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); - } - if (object.enablePartialResponse != null) - message.enablePartialResponse = Boolean(object.enablePartialResponse); - if (object.enableDebuggingInfo != null) - message.enableDebuggingInfo = Boolean(object.enableDebuggingInfo); - return message; + return new $root.google.cloud.dialogflow.cx.v3.ImportIntentsMetadata(); }; /** - * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportIntentsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} message StreamingDetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3.ImportIntentsMetadata} message ImportIntentsMetadata * @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; - object.enablePartialResponse = false; - object.enableDebuggingInfo = false; - } - 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.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) - object.enablePartialResponse = message.enablePartialResponse; - if (message.enableDebuggingInfo != null && message.hasOwnProperty("enableDebuggingInfo")) - object.enableDebuggingInfo = message.enableDebuggingInfo; - return object; + ImportIntentsMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this StreamingDetectIntentRequest to JSON. + * Converts this ImportIntentsMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsMetadata * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { + ImportIntentsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingDetectIntentRequest + * Gets the default type url for ImportIntentsMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ImportIntentsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingDetectIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportIntentsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ImportIntentsMetadata"; }; - return StreamingDetectIntentRequest; + return ImportIntentsMetadata; })(); - v3.CloudConversationDebuggingInfo = (function() { + v3.ExportIntentsRequest = (function() { /** - * Properties of a CloudConversationDebuggingInfo. + * Properties of an ExportIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICloudConversationDebuggingInfo - * @property {number|null} [audioDataChunks] CloudConversationDebuggingInfo audioDataChunks - * @property {google.protobuf.IDuration|null} [resultEndTimeOffset] CloudConversationDebuggingInfo resultEndTimeOffset - * @property {google.protobuf.IDuration|null} [firstAudioDuration] CloudConversationDebuggingInfo firstAudioDuration - * @property {boolean|null} [singleUtterance] CloudConversationDebuggingInfo singleUtterance - * @property {Array.|null} [speechPartialResultsEndTimes] CloudConversationDebuggingInfo speechPartialResultsEndTimes - * @property {Array.|null} [speechFinalResultsEndTimes] CloudConversationDebuggingInfo speechFinalResultsEndTimes - * @property {number|null} [partialResponses] CloudConversationDebuggingInfo partialResponses - * @property {number|null} [speakerIdPassiveLatencyMsOffset] CloudConversationDebuggingInfo speakerIdPassiveLatencyMsOffset - * @property {boolean|null} [bargeinEventTriggered] CloudConversationDebuggingInfo bargeinEventTriggered - * @property {boolean|null} [speechSingleUtterance] CloudConversationDebuggingInfo speechSingleUtterance - * @property {Array.|null} [dtmfPartialResultsTimes] CloudConversationDebuggingInfo dtmfPartialResultsTimes - * @property {Array.|null} [dtmfFinalResultsTimes] CloudConversationDebuggingInfo dtmfFinalResultsTimes - * @property {google.protobuf.IDuration|null} [singleUtteranceEndTimeOffset] CloudConversationDebuggingInfo singleUtteranceEndTimeOffset - * @property {google.protobuf.IDuration|null} [noSpeechTimeout] CloudConversationDebuggingInfo noSpeechTimeout - * @property {google.protobuf.IDuration|null} [endpointingTimeout] CloudConversationDebuggingInfo endpointingTimeout - * @property {boolean|null} [isInputText] CloudConversationDebuggingInfo isInputText - * @property {google.protobuf.IDuration|null} [clientHalfCloseTimeOffset] CloudConversationDebuggingInfo clientHalfCloseTimeOffset - * @property {google.protobuf.IDuration|null} [clientHalfCloseStreamingTimeOffset] CloudConversationDebuggingInfo clientHalfCloseStreamingTimeOffset + * @interface IExportIntentsRequest + * @property {string|null} [parent] ExportIntentsRequest parent + * @property {Array.|null} [intents] ExportIntentsRequest intents + * @property {string|null} [intentsUri] ExportIntentsRequest intentsUri + * @property {boolean|null} [intentsContentInline] ExportIntentsRequest intentsContentInline + * @property {google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat|null} [dataFormat] ExportIntentsRequest dataFormat */ /** - * Constructs a new CloudConversationDebuggingInfo. + * Constructs a new ExportIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CloudConversationDebuggingInfo. - * @implements ICloudConversationDebuggingInfo + * @classdesc Represents an ExportIntentsRequest. + * @implements IExportIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsRequest=} [properties] Properties to set */ - function CloudConversationDebuggingInfo(properties) { - this.speechPartialResultsEndTimes = []; - this.speechFinalResultsEndTimes = []; - this.dtmfPartialResultsTimes = []; - this.dtmfFinalResultsTimes = []; + function ExportIntentsRequest(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50021,325 +50371,148 @@ } /** - * CloudConversationDebuggingInfo audioDataChunks. - * @member {number} audioDataChunks - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * ExportIntentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @instance */ - CloudConversationDebuggingInfo.prototype.audioDataChunks = 0; + ExportIntentsRequest.prototype.parent = ""; /** - * CloudConversationDebuggingInfo resultEndTimeOffset. - * @member {google.protobuf.IDuration|null|undefined} resultEndTimeOffset - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * ExportIntentsRequest intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @instance */ - CloudConversationDebuggingInfo.prototype.resultEndTimeOffset = null; + ExportIntentsRequest.prototype.intents = $util.emptyArray; /** - * CloudConversationDebuggingInfo firstAudioDuration. - * @member {google.protobuf.IDuration|null|undefined} firstAudioDuration - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * ExportIntentsRequest intentsUri. + * @member {string|null|undefined} intentsUri + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @instance */ - CloudConversationDebuggingInfo.prototype.firstAudioDuration = null; + ExportIntentsRequest.prototype.intentsUri = null; /** - * CloudConversationDebuggingInfo singleUtterance. - * @member {boolean} singleUtterance - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * ExportIntentsRequest intentsContentInline. + * @member {boolean|null|undefined} intentsContentInline + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @instance */ - CloudConversationDebuggingInfo.prototype.singleUtterance = false; + ExportIntentsRequest.prototype.intentsContentInline = null; /** - * CloudConversationDebuggingInfo speechPartialResultsEndTimes. - * @member {Array.} speechPartialResultsEndTimes - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * ExportIntentsRequest dataFormat. + * @member {google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat} dataFormat + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @instance */ - CloudConversationDebuggingInfo.prototype.speechPartialResultsEndTimes = $util.emptyArray; + ExportIntentsRequest.prototype.dataFormat = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CloudConversationDebuggingInfo speechFinalResultsEndTimes. - * @member {Array.} speechFinalResultsEndTimes - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * ExportIntentsRequest destination. + * @member {"intentsUri"|"intentsContentInline"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @instance */ - CloudConversationDebuggingInfo.prototype.speechFinalResultsEndTimes = $util.emptyArray; + Object.defineProperty(ExportIntentsRequest.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["intentsUri", "intentsContentInline"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * CloudConversationDebuggingInfo partialResponses. - * @member {number} partialResponses - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.partialResponses = 0; - - /** - * CloudConversationDebuggingInfo speakerIdPassiveLatencyMsOffset. - * @member {number} speakerIdPassiveLatencyMsOffset - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.speakerIdPassiveLatencyMsOffset = 0; - - /** - * CloudConversationDebuggingInfo bargeinEventTriggered. - * @member {boolean} bargeinEventTriggered - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.bargeinEventTriggered = false; - - /** - * CloudConversationDebuggingInfo speechSingleUtterance. - * @member {boolean} speechSingleUtterance - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.speechSingleUtterance = false; - - /** - * CloudConversationDebuggingInfo dtmfPartialResultsTimes. - * @member {Array.} dtmfPartialResultsTimes - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.dtmfPartialResultsTimes = $util.emptyArray; - - /** - * CloudConversationDebuggingInfo dtmfFinalResultsTimes. - * @member {Array.} dtmfFinalResultsTimes - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.dtmfFinalResultsTimes = $util.emptyArray; - - /** - * CloudConversationDebuggingInfo singleUtteranceEndTimeOffset. - * @member {google.protobuf.IDuration|null|undefined} singleUtteranceEndTimeOffset - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.singleUtteranceEndTimeOffset = null; - - /** - * CloudConversationDebuggingInfo noSpeechTimeout. - * @member {google.protobuf.IDuration|null|undefined} noSpeechTimeout - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.noSpeechTimeout = null; - - /** - * CloudConversationDebuggingInfo endpointingTimeout. - * @member {google.protobuf.IDuration|null|undefined} endpointingTimeout - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.endpointingTimeout = null; - - /** - * CloudConversationDebuggingInfo isInputText. - * @member {boolean} isInputText - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.isInputText = false; - - /** - * CloudConversationDebuggingInfo clientHalfCloseTimeOffset. - * @member {google.protobuf.IDuration|null|undefined} clientHalfCloseTimeOffset - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.clientHalfCloseTimeOffset = null; - - /** - * CloudConversationDebuggingInfo clientHalfCloseStreamingTimeOffset. - * @member {google.protobuf.IDuration|null|undefined} clientHalfCloseStreamingTimeOffset - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo - * @instance - */ - CloudConversationDebuggingInfo.prototype.clientHalfCloseStreamingTimeOffset = null; - - /** - * Creates a new CloudConversationDebuggingInfo instance using the specified properties. + * Creates a new ExportIntentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo} CloudConversationDebuggingInfo instance + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportIntentsRequest} ExportIntentsRequest instance */ - CloudConversationDebuggingInfo.create = function create(properties) { - return new CloudConversationDebuggingInfo(properties); + ExportIntentsRequest.create = function create(properties) { + return new ExportIntentsRequest(properties); }; /** - * Encodes the specified CloudConversationDebuggingInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify|verify} messages. + * Encodes the specified ExportIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo} message CloudConversationDebuggingInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsRequest} message ExportIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CloudConversationDebuggingInfo.encode = function encode(message, writer) { + ExportIntentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audioDataChunks != null && Object.hasOwnProperty.call(message, "audioDataChunks")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioDataChunks); - if (message.resultEndTimeOffset != null && Object.hasOwnProperty.call(message, "resultEndTimeOffset")) - $root.google.protobuf.Duration.encode(message.resultEndTimeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.firstAudioDuration != null && Object.hasOwnProperty.call(message, "firstAudioDuration")) - $root.google.protobuf.Duration.encode(message.firstAudioDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.singleUtterance != null && Object.hasOwnProperty.call(message, "singleUtterance")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.singleUtterance); - if (message.speechPartialResultsEndTimes != null && message.speechPartialResultsEndTimes.length) - for (var i = 0; i < message.speechPartialResultsEndTimes.length; ++i) - $root.google.protobuf.Duration.encode(message.speechPartialResultsEndTimes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.speechFinalResultsEndTimes != null && message.speechFinalResultsEndTimes.length) - for (var i = 0; i < message.speechFinalResultsEndTimes.length; ++i) - $root.google.protobuf.Duration.encode(message.speechFinalResultsEndTimes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.partialResponses != null && Object.hasOwnProperty.call(message, "partialResponses")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.partialResponses); - if (message.speakerIdPassiveLatencyMsOffset != null && Object.hasOwnProperty.call(message, "speakerIdPassiveLatencyMsOffset")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.speakerIdPassiveLatencyMsOffset); - if (message.bargeinEventTriggered != null && Object.hasOwnProperty.call(message, "bargeinEventTriggered")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.bargeinEventTriggered); - if (message.speechSingleUtterance != null && Object.hasOwnProperty.call(message, "speechSingleUtterance")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.speechSingleUtterance); - if (message.dtmfPartialResultsTimes != null && message.dtmfPartialResultsTimes.length) - for (var i = 0; i < message.dtmfPartialResultsTimes.length; ++i) - $root.google.protobuf.Duration.encode(message.dtmfPartialResultsTimes[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.dtmfFinalResultsTimes != null && message.dtmfFinalResultsTimes.length) - for (var i = 0; i < message.dtmfFinalResultsTimes.length; ++i) - $root.google.protobuf.Duration.encode(message.dtmfFinalResultsTimes[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.singleUtteranceEndTimeOffset != null && Object.hasOwnProperty.call(message, "singleUtteranceEndTimeOffset")) - $root.google.protobuf.Duration.encode(message.singleUtteranceEndTimeOffset, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.noSpeechTimeout != null && Object.hasOwnProperty.call(message, "noSpeechTimeout")) - $root.google.protobuf.Duration.encode(message.noSpeechTimeout, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.isInputText != null && Object.hasOwnProperty.call(message, "isInputText")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.isInputText); - if (message.clientHalfCloseTimeOffset != null && Object.hasOwnProperty.call(message, "clientHalfCloseTimeOffset")) - $root.google.protobuf.Duration.encode(message.clientHalfCloseTimeOffset, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.clientHalfCloseStreamingTimeOffset != null && Object.hasOwnProperty.call(message, "clientHalfCloseStreamingTimeOffset")) - $root.google.protobuf.Duration.encode(message.clientHalfCloseStreamingTimeOffset, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.endpointingTimeout != null && Object.hasOwnProperty.call(message, "endpointingTimeout")) - $root.google.protobuf.Duration.encode(message.endpointingTimeout, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.intents[i]); + if (message.intentsUri != null && Object.hasOwnProperty.call(message, "intentsUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.intentsUri); + if (message.intentsContentInline != null && Object.hasOwnProperty.call(message, "intentsContentInline")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.intentsContentInline); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.dataFormat); return writer; }; /** - * Encodes the specified CloudConversationDebuggingInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify|verify} messages. + * Encodes the specified ExportIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo} message CloudConversationDebuggingInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsRequest} message ExportIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CloudConversationDebuggingInfo.encodeDelimited = function encodeDelimited(message, writer) { + ExportIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CloudConversationDebuggingInfo message from the specified reader or buffer. + * Decodes an ExportIntentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @static * @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.CloudConversationDebuggingInfo} CloudConversationDebuggingInfo + * @returns {google.cloud.dialogflow.cx.v3.ExportIntentsRequest} ExportIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CloudConversationDebuggingInfo.decode = function decode(reader, length) { + ExportIntentsRequest.decode = function decode(reader, length) { 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.CloudConversationDebuggingInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportIntentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.audioDataChunks = reader.int32(); + message.parent = reader.string(); break; } case 2: { - message.resultEndTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push(reader.string()); break; } case 3: { - message.firstAudioDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 5: { - message.singleUtterance = reader.bool(); - break; - } - case 6: { - if (!(message.speechPartialResultsEndTimes && message.speechPartialResultsEndTimes.length)) - message.speechPartialResultsEndTimes = []; - message.speechPartialResultsEndTimes.push($root.google.protobuf.Duration.decode(reader, reader.uint32())); - break; - } - case 7: { - if (!(message.speechFinalResultsEndTimes && message.speechFinalResultsEndTimes.length)) - message.speechFinalResultsEndTimes = []; - message.speechFinalResultsEndTimes.push($root.google.protobuf.Duration.decode(reader, reader.uint32())); - break; - } - case 8: { - message.partialResponses = reader.int32(); - break; - } - case 9: { - message.speakerIdPassiveLatencyMsOffset = reader.int32(); - break; - } - case 10: { - message.bargeinEventTriggered = reader.bool(); - break; - } - case 11: { - message.speechSingleUtterance = reader.bool(); - break; - } - case 12: { - if (!(message.dtmfPartialResultsTimes && message.dtmfPartialResultsTimes.length)) - message.dtmfPartialResultsTimes = []; - message.dtmfPartialResultsTimes.push($root.google.protobuf.Duration.decode(reader, reader.uint32())); - break; - } - case 13: { - if (!(message.dtmfFinalResultsTimes && message.dtmfFinalResultsTimes.length)) - message.dtmfFinalResultsTimes = []; - message.dtmfFinalResultsTimes.push($root.google.protobuf.Duration.decode(reader, reader.uint32())); - break; - } - case 14: { - message.singleUtteranceEndTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 15: { - message.noSpeechTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 19: { - message.endpointingTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 16: { - message.isInputText = reader.bool(); + message.intentsUri = reader.string(); break; } - case 17: { - message.clientHalfCloseTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + case 4: { + message.intentsContentInline = reader.bool(); break; } - case 18: { - message.clientHalfCloseStreamingTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + case 5: { + message.dataFormat = reader.int32(); break; } default: @@ -50351,366 +50524,227 @@ }; /** - * Decodes a CloudConversationDebuggingInfo message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo} CloudConversationDebuggingInfo + * @returns {google.cloud.dialogflow.cx.v3.ExportIntentsRequest} ExportIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CloudConversationDebuggingInfo.decodeDelimited = function decodeDelimited(reader) { + ExportIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CloudConversationDebuggingInfo message. + * Verifies an ExportIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CloudConversationDebuggingInfo.verify = function verify(message) { + ExportIntentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audioDataChunks != null && message.hasOwnProperty("audioDataChunks")) - if (!$util.isInteger(message.audioDataChunks)) - return "audioDataChunks: integer expected"; - if (message.resultEndTimeOffset != null && message.hasOwnProperty("resultEndTimeOffset")) { - var error = $root.google.protobuf.Duration.verify(message.resultEndTimeOffset); - if (error) - return "resultEndTimeOffset." + error; - } - if (message.firstAudioDuration != null && message.hasOwnProperty("firstAudioDuration")) { - var error = $root.google.protobuf.Duration.verify(message.firstAudioDuration); - if (error) - return "firstAudioDuration." + error; - } - if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) - if (typeof message.singleUtterance !== "boolean") - return "singleUtterance: boolean expected"; - if (message.speechPartialResultsEndTimes != null && message.hasOwnProperty("speechPartialResultsEndTimes")) { - if (!Array.isArray(message.speechPartialResultsEndTimes)) - return "speechPartialResultsEndTimes: array expected"; - for (var i = 0; i < message.speechPartialResultsEndTimes.length; ++i) { - var error = $root.google.protobuf.Duration.verify(message.speechPartialResultsEndTimes[i]); - if (error) - return "speechPartialResultsEndTimes." + error; - } + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: 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) + if (!$util.isString(message.intents[i])) + return "intents: string[] expected"; } - if (message.speechFinalResultsEndTimes != null && message.hasOwnProperty("speechFinalResultsEndTimes")) { - if (!Array.isArray(message.speechFinalResultsEndTimes)) - return "speechFinalResultsEndTimes: array expected"; - for (var i = 0; i < message.speechFinalResultsEndTimes.length; ++i) { - var error = $root.google.protobuf.Duration.verify(message.speechFinalResultsEndTimes[i]); - if (error) - return "speechFinalResultsEndTimes." + error; - } + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + properties.destination = 1; + if (!$util.isString(message.intentsUri)) + return "intentsUri: string expected"; } - if (message.partialResponses != null && message.hasOwnProperty("partialResponses")) - if (!$util.isInteger(message.partialResponses)) - return "partialResponses: integer expected"; - if (message.speakerIdPassiveLatencyMsOffset != null && message.hasOwnProperty("speakerIdPassiveLatencyMsOffset")) - if (!$util.isInteger(message.speakerIdPassiveLatencyMsOffset)) - return "speakerIdPassiveLatencyMsOffset: integer expected"; - if (message.bargeinEventTriggered != null && message.hasOwnProperty("bargeinEventTriggered")) - if (typeof message.bargeinEventTriggered !== "boolean") - return "bargeinEventTriggered: boolean expected"; - if (message.speechSingleUtterance != null && message.hasOwnProperty("speechSingleUtterance")) - if (typeof message.speechSingleUtterance !== "boolean") - return "speechSingleUtterance: boolean expected"; - if (message.dtmfPartialResultsTimes != null && message.hasOwnProperty("dtmfPartialResultsTimes")) { - if (!Array.isArray(message.dtmfPartialResultsTimes)) - return "dtmfPartialResultsTimes: array expected"; - for (var i = 0; i < message.dtmfPartialResultsTimes.length; ++i) { - var error = $root.google.protobuf.Duration.verify(message.dtmfPartialResultsTimes[i]); - if (error) - return "dtmfPartialResultsTimes." + error; - } + if (message.intentsContentInline != null && message.hasOwnProperty("intentsContentInline")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + if (typeof message.intentsContentInline !== "boolean") + return "intentsContentInline: boolean expected"; } - if (message.dtmfFinalResultsTimes != null && message.hasOwnProperty("dtmfFinalResultsTimes")) { - if (!Array.isArray(message.dtmfFinalResultsTimes)) - return "dtmfFinalResultsTimes: array expected"; - for (var i = 0; i < message.dtmfFinalResultsTimes.length; ++i) { - var error = $root.google.protobuf.Duration.verify(message.dtmfFinalResultsTimes[i]); - if (error) - return "dtmfFinalResultsTimes." + error; + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { + default: + return "dataFormat: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; } - } - if (message.singleUtteranceEndTimeOffset != null && message.hasOwnProperty("singleUtteranceEndTimeOffset")) { - var error = $root.google.protobuf.Duration.verify(message.singleUtteranceEndTimeOffset); - if (error) - return "singleUtteranceEndTimeOffset." + error; - } - if (message.noSpeechTimeout != null && message.hasOwnProperty("noSpeechTimeout")) { - var error = $root.google.protobuf.Duration.verify(message.noSpeechTimeout); - if (error) - return "noSpeechTimeout." + error; - } - if (message.endpointingTimeout != null && message.hasOwnProperty("endpointingTimeout")) { - var error = $root.google.protobuf.Duration.verify(message.endpointingTimeout); - if (error) - return "endpointingTimeout." + error; - } - if (message.isInputText != null && message.hasOwnProperty("isInputText")) - if (typeof message.isInputText !== "boolean") - return "isInputText: boolean expected"; - if (message.clientHalfCloseTimeOffset != null && message.hasOwnProperty("clientHalfCloseTimeOffset")) { - var error = $root.google.protobuf.Duration.verify(message.clientHalfCloseTimeOffset); - if (error) - return "clientHalfCloseTimeOffset." + error; - } - if (message.clientHalfCloseStreamingTimeOffset != null && message.hasOwnProperty("clientHalfCloseStreamingTimeOffset")) { - var error = $root.google.protobuf.Duration.verify(message.clientHalfCloseStreamingTimeOffset); - if (error) - return "clientHalfCloseStreamingTimeOffset." + error; - } return null; }; /** - * Creates a CloudConversationDebuggingInfo message from a plain object. Also converts values to their respective internal types. + * Creates an ExportIntentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo} CloudConversationDebuggingInfo + * @returns {google.cloud.dialogflow.cx.v3.ExportIntentsRequest} ExportIntentsRequest */ - CloudConversationDebuggingInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo) + ExportIntentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportIntentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo(); - if (object.audioDataChunks != null) - message.audioDataChunks = object.audioDataChunks | 0; - if (object.resultEndTimeOffset != null) { - if (typeof object.resultEndTimeOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.resultEndTimeOffset: object expected"); - message.resultEndTimeOffset = $root.google.protobuf.Duration.fromObject(object.resultEndTimeOffset); - } - if (object.firstAudioDuration != null) { - if (typeof object.firstAudioDuration !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.firstAudioDuration: object expected"); - message.firstAudioDuration = $root.google.protobuf.Duration.fromObject(object.firstAudioDuration); - } - if (object.singleUtterance != null) - message.singleUtterance = Boolean(object.singleUtterance); - if (object.speechPartialResultsEndTimes) { - if (!Array.isArray(object.speechPartialResultsEndTimes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.speechPartialResultsEndTimes: array expected"); - message.speechPartialResultsEndTimes = []; - for (var i = 0; i < object.speechPartialResultsEndTimes.length; ++i) { - if (typeof object.speechPartialResultsEndTimes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.speechPartialResultsEndTimes: object expected"); - message.speechPartialResultsEndTimes[i] = $root.google.protobuf.Duration.fromObject(object.speechPartialResultsEndTimes[i]); - } - } - if (object.speechFinalResultsEndTimes) { - if (!Array.isArray(object.speechFinalResultsEndTimes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.speechFinalResultsEndTimes: array expected"); - message.speechFinalResultsEndTimes = []; - for (var i = 0; i < object.speechFinalResultsEndTimes.length; ++i) { - if (typeof object.speechFinalResultsEndTimes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.speechFinalResultsEndTimes: object expected"); - message.speechFinalResultsEndTimes[i] = $root.google.protobuf.Duration.fromObject(object.speechFinalResultsEndTimes[i]); - } - } - if (object.partialResponses != null) - message.partialResponses = object.partialResponses | 0; - if (object.speakerIdPassiveLatencyMsOffset != null) - message.speakerIdPassiveLatencyMsOffset = object.speakerIdPassiveLatencyMsOffset | 0; - if (object.bargeinEventTriggered != null) - message.bargeinEventTriggered = Boolean(object.bargeinEventTriggered); - if (object.speechSingleUtterance != null) - message.speechSingleUtterance = Boolean(object.speechSingleUtterance); - if (object.dtmfPartialResultsTimes) { - if (!Array.isArray(object.dtmfPartialResultsTimes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.dtmfPartialResultsTimes: array expected"); - message.dtmfPartialResultsTimes = []; - for (var i = 0; i < object.dtmfPartialResultsTimes.length; ++i) { - if (typeof object.dtmfPartialResultsTimes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.dtmfPartialResultsTimes: object expected"); - message.dtmfPartialResultsTimes[i] = $root.google.protobuf.Duration.fromObject(object.dtmfPartialResultsTimes[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.ExportIntentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ExportIntentsRequest.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) + message.intents[i] = String(object.intents[i]); } - if (object.dtmfFinalResultsTimes) { - if (!Array.isArray(object.dtmfFinalResultsTimes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.dtmfFinalResultsTimes: array expected"); - message.dtmfFinalResultsTimes = []; - for (var i = 0; i < object.dtmfFinalResultsTimes.length; ++i) { - if (typeof object.dtmfFinalResultsTimes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.dtmfFinalResultsTimes: object expected"); - message.dtmfFinalResultsTimes[i] = $root.google.protobuf.Duration.fromObject(object.dtmfFinalResultsTimes[i]); + if (object.intentsUri != null) + message.intentsUri = String(object.intentsUri); + if (object.intentsContentInline != null) + message.intentsContentInline = Boolean(object.intentsContentInline); + switch (object.dataFormat) { + default: + if (typeof object.dataFormat === "number") { + message.dataFormat = object.dataFormat; + break; } - } - if (object.singleUtteranceEndTimeOffset != null) { - if (typeof object.singleUtteranceEndTimeOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.singleUtteranceEndTimeOffset: object expected"); - message.singleUtteranceEndTimeOffset = $root.google.protobuf.Duration.fromObject(object.singleUtteranceEndTimeOffset); - } - if (object.noSpeechTimeout != null) { - if (typeof object.noSpeechTimeout !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.noSpeechTimeout: object expected"); - message.noSpeechTimeout = $root.google.protobuf.Duration.fromObject(object.noSpeechTimeout); - } - if (object.endpointingTimeout != null) { - if (typeof object.endpointingTimeout !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.endpointingTimeout: object expected"); - message.endpointingTimeout = $root.google.protobuf.Duration.fromObject(object.endpointingTimeout); - } - if (object.isInputText != null) - message.isInputText = Boolean(object.isInputText); - if (object.clientHalfCloseTimeOffset != null) { - if (typeof object.clientHalfCloseTimeOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.clientHalfCloseTimeOffset: object expected"); - message.clientHalfCloseTimeOffset = $root.google.protobuf.Duration.fromObject(object.clientHalfCloseTimeOffset); - } - if (object.clientHalfCloseStreamingTimeOffset != null) { - if (typeof object.clientHalfCloseStreamingTimeOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.clientHalfCloseStreamingTimeOffset: object expected"); - message.clientHalfCloseStreamingTimeOffset = $root.google.protobuf.Duration.fromObject(object.clientHalfCloseStreamingTimeOffset); + break; + 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; + case "CSV": + case 3: + message.dataFormat = 3; + break; } return message; }; /** - * Creates a plain object from a CloudConversationDebuggingInfo message. Also converts values to other types if specified. + * Creates a plain object from an ExportIntentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo} message CloudConversationDebuggingInfo + * @param {google.cloud.dialogflow.cx.v3.ExportIntentsRequest} message ExportIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CloudConversationDebuggingInfo.toObject = function toObject(message, options) { + ExportIntentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.speechPartialResultsEndTimes = []; - object.speechFinalResultsEndTimes = []; - object.dtmfPartialResultsTimes = []; - object.dtmfFinalResultsTimes = []; - } + if (options.arrays || options.defaults) + object.intents = []; if (options.defaults) { - object.audioDataChunks = 0; - object.resultEndTimeOffset = null; - object.firstAudioDuration = null; - object.singleUtterance = false; - object.partialResponses = 0; - object.speakerIdPassiveLatencyMsOffset = 0; - object.bargeinEventTriggered = false; - object.speechSingleUtterance = false; - object.singleUtteranceEndTimeOffset = null; - object.noSpeechTimeout = null; - object.isInputText = false; - object.clientHalfCloseTimeOffset = null; - object.clientHalfCloseStreamingTimeOffset = null; - object.endpointingTimeout = null; - } - if (message.audioDataChunks != null && message.hasOwnProperty("audioDataChunks")) - object.audioDataChunks = message.audioDataChunks; - if (message.resultEndTimeOffset != null && message.hasOwnProperty("resultEndTimeOffset")) - object.resultEndTimeOffset = $root.google.protobuf.Duration.toObject(message.resultEndTimeOffset, options); - if (message.firstAudioDuration != null && message.hasOwnProperty("firstAudioDuration")) - object.firstAudioDuration = $root.google.protobuf.Duration.toObject(message.firstAudioDuration, options); - if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) - object.singleUtterance = message.singleUtterance; - if (message.speechPartialResultsEndTimes && message.speechPartialResultsEndTimes.length) { - object.speechPartialResultsEndTimes = []; - for (var j = 0; j < message.speechPartialResultsEndTimes.length; ++j) - object.speechPartialResultsEndTimes[j] = $root.google.protobuf.Duration.toObject(message.speechPartialResultsEndTimes[j], options); + object.parent = ""; + object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; } - if (message.speechFinalResultsEndTimes && message.speechFinalResultsEndTimes.length) { - object.speechFinalResultsEndTimes = []; - for (var j = 0; j < message.speechFinalResultsEndTimes.length; ++j) - object.speechFinalResultsEndTimes[j] = $root.google.protobuf.Duration.toObject(message.speechFinalResultsEndTimes[j], options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = message.intents[j]; } - if (message.partialResponses != null && message.hasOwnProperty("partialResponses")) - object.partialResponses = message.partialResponses; - if (message.speakerIdPassiveLatencyMsOffset != null && message.hasOwnProperty("speakerIdPassiveLatencyMsOffset")) - object.speakerIdPassiveLatencyMsOffset = message.speakerIdPassiveLatencyMsOffset; - if (message.bargeinEventTriggered != null && message.hasOwnProperty("bargeinEventTriggered")) - object.bargeinEventTriggered = message.bargeinEventTriggered; - if (message.speechSingleUtterance != null && message.hasOwnProperty("speechSingleUtterance")) - object.speechSingleUtterance = message.speechSingleUtterance; - if (message.dtmfPartialResultsTimes && message.dtmfPartialResultsTimes.length) { - object.dtmfPartialResultsTimes = []; - for (var j = 0; j < message.dtmfPartialResultsTimes.length; ++j) - object.dtmfPartialResultsTimes[j] = $root.google.protobuf.Duration.toObject(message.dtmfPartialResultsTimes[j], options); + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + object.intentsUri = message.intentsUri; + if (options.oneofs) + object.destination = "intentsUri"; } - if (message.dtmfFinalResultsTimes && message.dtmfFinalResultsTimes.length) { - object.dtmfFinalResultsTimes = []; - for (var j = 0; j < message.dtmfFinalResultsTimes.length; ++j) - object.dtmfFinalResultsTimes[j] = $root.google.protobuf.Duration.toObject(message.dtmfFinalResultsTimes[j], options); + if (message.intentsContentInline != null && message.hasOwnProperty("intentsContentInline")) { + object.intentsContentInline = message.intentsContentInline; + if (options.oneofs) + object.destination = "intentsContentInline"; } - if (message.singleUtteranceEndTimeOffset != null && message.hasOwnProperty("singleUtteranceEndTimeOffset")) - object.singleUtteranceEndTimeOffset = $root.google.protobuf.Duration.toObject(message.singleUtteranceEndTimeOffset, options); - if (message.noSpeechTimeout != null && message.hasOwnProperty("noSpeechTimeout")) - object.noSpeechTimeout = $root.google.protobuf.Duration.toObject(message.noSpeechTimeout, options); - if (message.isInputText != null && message.hasOwnProperty("isInputText")) - object.isInputText = message.isInputText; - if (message.clientHalfCloseTimeOffset != null && message.hasOwnProperty("clientHalfCloseTimeOffset")) - object.clientHalfCloseTimeOffset = $root.google.protobuf.Duration.toObject(message.clientHalfCloseTimeOffset, options); - if (message.clientHalfCloseStreamingTimeOffset != null && message.hasOwnProperty("clientHalfCloseStreamingTimeOffset")) - object.clientHalfCloseStreamingTimeOffset = $root.google.protobuf.Duration.toObject(message.clientHalfCloseStreamingTimeOffset, options); - if (message.endpointingTimeout != null && message.hasOwnProperty("endpointingTimeout")) - object.endpointingTimeout = $root.google.protobuf.Duration.toObject(message.endpointingTimeout, options); + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat[message.dataFormat] === undefined ? message.dataFormat : $root.google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat[message.dataFormat] : message.dataFormat; return object; }; /** - * Converts this CloudConversationDebuggingInfo to JSON. + * Converts this ExportIntentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @instance * @returns {Object.} JSON object */ - CloudConversationDebuggingInfo.prototype.toJSON = function toJSON() { + ExportIntentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CloudConversationDebuggingInfo + * Gets the default type url for ExportIntentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CloudConversationDebuggingInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportIntentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ExportIntentsRequest"; }; - return CloudConversationDebuggingInfo; + /** + * DataFormat enum. + * @name google.cloud.dialogflow.cx.v3.ExportIntentsRequest.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 + * @property {number} CSV=3 CSV value + */ + ExportIntentsRequest.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; + values[valuesById[3] = "CSV"] = 3; + return values; + })(); + + return ExportIntentsRequest; })(); - v3.StreamingDetectIntentResponse = (function() { + v3.ExportIntentsResponse = (function() { /** - * Properties of a StreamingDetectIntentResponse. + * Properties of an ExportIntentsResponse. * @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 - * @property {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo|null} [debuggingInfo] StreamingDetectIntentResponse debuggingInfo + * @interface IExportIntentsResponse + * @property {string|null} [intentsUri] ExportIntentsResponse intentsUri + * @property {google.cloud.dialogflow.cx.v3.IInlineDestination|null} [intentsContent] ExportIntentsResponse intentsContent */ /** - * Constructs a new StreamingDetectIntentResponse. + * Constructs a new ExportIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StreamingDetectIntentResponse. - * @implements IStreamingDetectIntentResponse + * @classdesc Represents an ExportIntentsResponse. + * @implements IExportIntentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsResponse=} [properties] Properties to set */ - function StreamingDetectIntentResponse(properties) { + function ExportIntentsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -50718,117 +50752,103 @@ } /** - * StreamingDetectIntentResponse recognitionResult. - * @member {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null|undefined} recognitionResult - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse - * @instance - */ - StreamingDetectIntentResponse.prototype.recognitionResult = null; - - /** - * StreamingDetectIntentResponse detectIntentResponse. - * @member {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null|undefined} detectIntentResponse - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * ExportIntentsResponse intentsUri. + * @member {string|null|undefined} intentsUri + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @instance */ - StreamingDetectIntentResponse.prototype.detectIntentResponse = null; + ExportIntentsResponse.prototype.intentsUri = null; /** - * StreamingDetectIntentResponse debuggingInfo. - * @member {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo|null|undefined} debuggingInfo - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * ExportIntentsResponse intentsContent. + * @member {google.cloud.dialogflow.cx.v3.IInlineDestination|null|undefined} intentsContent + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @instance */ - StreamingDetectIntentResponse.prototype.debuggingInfo = null; + ExportIntentsResponse.prototype.intentsContent = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * StreamingDetectIntentResponse response. - * @member {"recognitionResult"|"detectIntentResponse"|undefined} response - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * ExportIntentsResponse intents. + * @member {"intentsUri"|"intentsContent"|undefined} intents + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @instance */ - Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["recognitionResult", "detectIntentResponse"]), + Object.defineProperty(ExportIntentsResponse.prototype, "intents", { + get: $util.oneOfGetter($oneOfFields = ["intentsUri", "intentsContent"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new StreamingDetectIntentResponse instance using the specified properties. + * Creates a new ExportIntentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @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.IExportIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportIntentsResponse} ExportIntentsResponse instance */ - StreamingDetectIntentResponse.create = function create(properties) { - return new StreamingDetectIntentResponse(properties); + ExportIntentsResponse.create = function create(properties) { + return new ExportIntentsResponse(properties); }; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified ExportIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsResponse} message ExportIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encode = function encode(message, writer) { + ExportIntentsResponse.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.debuggingInfo != null && Object.hasOwnProperty.call(message, "debuggingInfo")) - $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.encode(message.debuggingInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.intentsUri != null && Object.hasOwnProperty.call(message, "intentsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intentsUri); + if (message.intentsContent != null && Object.hasOwnProperty.call(message, "intentsContent")) + $root.google.cloud.dialogflow.cx.v3.InlineDestination.encode(message.intentsContent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); 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 ExportIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsResponse} message ExportIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. + * Decodes an ExportIntentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @static * @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.ExportIntentsResponse} ExportIntentsResponse * @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) { + ExportIntentsResponse.decode = function decode(reader, length) { 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.ExportIntentsResponse(); 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.intentsUri = reader.string(); break; } case 2: { - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.decode(reader, reader.uint32()); - break; - } - case 4: { - message.debuggingInfo = $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.decode(reader, reader.uint32()); + message.intentsContent = $root.google.cloud.dialogflow.cx.v3.InlineDestination.decode(reader, reader.uint32()); break; } default: @@ -50840,174 +50860,145 @@ }; /** - * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @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.ExportIntentsResponse} ExportIntentsResponse * @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) { + ExportIntentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingDetectIntentResponse message. + * Verifies an ExportIntentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @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) { + ExportIntentsResponse.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; + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + properties.intents = 1; + if (!$util.isString(message.intentsUri)) + return "intentsUri: string expected"; + } + if (message.intentsContent != null && message.hasOwnProperty("intentsContent")) { + if (properties.intents === 1) + return "intents: multiple values"; + properties.intents = 1; { - var error = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify(message.detectIntentResponse); + var error = $root.google.cloud.dialogflow.cx.v3.InlineDestination.verify(message.intentsContent); if (error) - return "detectIntentResponse." + error; + return "intentsContent." + error; } } - if (message.debuggingInfo != null && message.hasOwnProperty("debuggingInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify(message.debuggingInfo); - if (error) - return "debuggingInfo." + error; - } return null; }; /** - * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportIntentsResponse 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.ExportIntentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportIntentsResponse} ExportIntentsResponse */ - StreamingDetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) + ExportIntentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportIntentsResponse) 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); - } - if (object.debuggingInfo != null) { - if (typeof object.debuggingInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.debuggingInfo: object expected"); - message.debuggingInfo = $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.fromObject(object.debuggingInfo); + var message = new $root.google.cloud.dialogflow.cx.v3.ExportIntentsResponse(); + if (object.intentsUri != null) + message.intentsUri = String(object.intentsUri); + if (object.intentsContent != null) { + if (typeof object.intentsContent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ExportIntentsResponse.intentsContent: object expected"); + message.intentsContent = $root.google.cloud.dialogflow.cx.v3.InlineDestination.fromObject(object.intentsContent); } return message; }; /** - * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExportIntentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} message StreamingDetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.ExportIntentsResponse} message ExportIntentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingDetectIntentResponse.toObject = function toObject(message, options) { + ExportIntentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.debuggingInfo = null; - if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - object.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.toObject(message.recognitionResult, options); + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + object.intentsUri = message.intentsUri; if (options.oneofs) - object.response = "recognitionResult"; + object.intents = "intentsUri"; } - if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.toObject(message.detectIntentResponse, options); + if (message.intentsContent != null && message.hasOwnProperty("intentsContent")) { + object.intentsContent = $root.google.cloud.dialogflow.cx.v3.InlineDestination.toObject(message.intentsContent, options); if (options.oneofs) - object.response = "detectIntentResponse"; + object.intents = "intentsContent"; } - if (message.debuggingInfo != null && message.hasOwnProperty("debuggingInfo")) - object.debuggingInfo = $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.toObject(message.debuggingInfo, options); return object; }; /** - * Converts this StreamingDetectIntentResponse to JSON. + * Converts this ExportIntentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @instance * @returns {Object.} JSON object */ - StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { + ExportIntentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingDetectIntentResponse + * Gets the default type url for ExportIntentsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingDetectIntentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportIntentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ExportIntentsResponse"; }; - return StreamingDetectIntentResponse; + return ExportIntentsResponse; })(); - v3.StreamingRecognitionResult = (function() { + v3.ExportIntentsMetadata = (function() { /** - * Properties of a StreamingRecognitionResult. + * Properties of an ExportIntentsMetadata. * @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 - * @property {string|null} [languageCode] StreamingRecognitionResult languageCode + * @interface IExportIntentsMetadata */ /** - * Constructs a new StreamingRecognitionResult. + * Constructs a new ExportIntentsMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StreamingRecognitionResult. - * @implements IStreamingRecognitionResult + * @classdesc Represents an ExportIntentsMetadata. + * @implements IExportIntentsMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsMetadata=} [properties] Properties to set */ - function StreamingRecognitionResult(properties) { - this.speechWordInfo = []; + function ExportIntentsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51015,178 +51006,63 @@ } /** - * 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 - * @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; - - /** - * StreamingRecognitionResult languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult - * @instance - */ - StreamingRecognitionResult.prototype.languageCode = ""; - - /** - * Creates a new StreamingRecognitionResult instance using the specified properties. + * Creates a new ExportIntentsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsMetadata * @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.IExportIntentsMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportIntentsMetadata} ExportIntentsMetadata instance */ - StreamingRecognitionResult.create = function create(properties) { - return new StreamingRecognitionResult(properties); + ExportIntentsMetadata.create = function create(properties) { + return new ExportIntentsMetadata(properties); }; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified ExportIntentsMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsMetadata} message ExportIntentsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encode = function encode(message, writer) { + ExportIntentsMetadata.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.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.languageCode); 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 ExportIntentsMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportIntentsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportIntentsMetadata} message ExportIntentsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { + ExportIntentsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer. + * Decodes an ExportIntentsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsMetadata * @static * @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.ExportIntentsMetadata} ExportIntentsMetadata * @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) { + ExportIntentsMetadata.decode = function decode(reader, length) { 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.ExportIntentsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - 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.v3.SpeechWordInfo.decode(reader, reader.uint32())); - break; - } - case 8: { - message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 10: { - message.languageCode = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -51196,256 +51072,109 @@ }; /** - * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsMetadata * @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.ExportIntentsMetadata} ExportIntentsMetadata * @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) { + ExportIntentsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingRecognitionResult message. + * Verifies an ExportIntentsMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsMetadata * @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) { + ExportIntentsMetadata.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 (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; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. + * Creates an ExportIntentsMetadata 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.ExportIntentsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3.ExportIntentsMetadata} ExportIntentsMetadata */ - StreamingRecognitionResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult) + ExportIntentsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportIntentsMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); - switch (object.messageType) { - default: - if (typeof object.messageType === "number") { - message.messageType = object.messageType; - break; - } - break; - 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]); - } - } - 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.languageCode != null) - message.languageCode = String(object.languageCode); - return message; + return new $root.google.cloud.dialogflow.cx.v3.ExportIntentsMetadata(); }; /** - * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. + * Creates a plain object from an ExportIntentsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} message StreamingRecognitionResult + * @param {google.cloud.dialogflow.cx.v3.ExportIntentsMetadata} message ExportIntentsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingRecognitionResult.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; - object.languageCode = ""; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType[message.messageType] === undefined ? message.messageType : $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); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; + ExportIntentsMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this StreamingRecognitionResult to JSON. + * Converts this ExportIntentsMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsMetadata * @instance * @returns {Object.} JSON object */ - StreamingRecognitionResult.prototype.toJSON = function toJSON() { + ExportIntentsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StreamingRecognitionResult + * Gets the default type url for ExportIntentsMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.ExportIntentsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StreamingRecognitionResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportIntentsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StreamingRecognitionResult"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ExportIntentsMetadata"; }; - /** - * 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; + return ExportIntentsMetadata; })(); - v3.QueryParameters = (function() { + v3.InlineDestination = (function() { /** - * Properties of a QueryParameters. + * Properties of an InlineDestination. * @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 {string|null} [currentPage] QueryParameters currentPage - * @property {boolean|null} [disableWebhook] QueryParameters disableWebhook - * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment - * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders - * @property {Array.|null} [flowVersions] QueryParameters flowVersions - * @property {string|null} [channel] QueryParameters channel - * @property {google.protobuf.IDuration|null} [sessionTtl] QueryParameters sessionTtl + * @interface IInlineDestination + * @property {Uint8Array|null} [content] InlineDestination content */ /** - * Constructs a new QueryParameters. + * Constructs a new InlineDestination. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a QueryParameters. - * @implements IQueryParameters + * @classdesc Represents an InlineDestination. + * @implements IInlineDestination * @constructor - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IInlineDestination=} [properties] Properties to set */ - function QueryParameters(properties) { - this.sessionEntityTypes = []; - this.webhookHeaders = {}; - this.flowVersions = []; + function InlineDestination(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51453,255 +51182,75 @@ } /** - * QueryParameters timeZone. - * @member {string} timeZone - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.timeZone = ""; - - /** - * QueryParameters geoLocation. - * @member {google.type.ILatLng|null|undefined} geoLocation - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.geoLocation = null; - - /** - * 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 currentPage. - * @member {string} currentPage - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.currentPage = ""; - - /** - * 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; - - /** - * QueryParameters flowVersions. - * @member {Array.} flowVersions - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.flowVersions = $util.emptyArray; - - /** - * QueryParameters channel. - * @member {string} channel - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters - * @instance - */ - QueryParameters.prototype.channel = ""; - - /** - * QueryParameters sessionTtl. - * @member {google.protobuf.IDuration|null|undefined} sessionTtl - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * InlineDestination content. + * @member {Uint8Array} content + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @instance */ - QueryParameters.prototype.sessionTtl = null; + InlineDestination.prototype.content = $util.newBuffer([]); /** - * Creates a new QueryParameters instance using the specified properties. + * Creates a new InlineDestination instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @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.IInlineDestination=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.InlineDestination} InlineDestination instance */ - QueryParameters.create = function create(properties) { - return new QueryParameters(properties); + InlineDestination.create = function create(properties) { + return new InlineDestination(properties); }; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. + * Encodes the specified InlineDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InlineDestination.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IInlineDestination} message InlineDestination message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encode = function encode(message, writer) { + InlineDestination.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.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.currentPage); - 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.flowVersions != null && message.flowVersions.length) - for (var i = 0; i < message.flowVersions.length; ++i) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.flowVersions[i]); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.channel); - if (message.sessionTtl != null && Object.hasOwnProperty.call(message, "sessionTtl")) - $root.google.protobuf.Duration.encode(message.sessionTtl, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.content); 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 InlineDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InlineDestination.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IInlineDestination} message InlineDestination message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { + InlineDestination.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryParameters message from the specified reader or buffer. + * Decodes an InlineDestination message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @static * @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.InlineDestination} InlineDestination * @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) { + InlineDestination.decode = function decode(reader, length) { 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.InlineDestination(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.timeZone = reader.string(); - break; - } - case 2: { - 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 6: { - message.currentPage = reader.string(); - 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; - } - case 14: { - if (!(message.flowVersions && message.flowVersions.length)) - message.flowVersions = []; - message.flowVersions.push(reader.string()); - break; - } - case 15: { - message.channel = reader.string(); - break; - } - case 16: { - message.sessionTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.content = reader.bytes(); break; } default: @@ -51713,282 +51262,131 @@ }; /** - * Decodes a QueryParameters message from the specified reader or buffer, length delimited. + * Decodes an InlineDestination message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @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.InlineDestination} InlineDestination * @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) { + InlineDestination.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryParameters message. + * Verifies an InlineDestination message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @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) { + InlineDestination.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 (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.currentPage != null && message.hasOwnProperty("currentPage")) - if (!$util.isString(message.currentPage)) - return "currentPage: string expected"; - 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.flowVersions != null && message.hasOwnProperty("flowVersions")) { - if (!Array.isArray(message.flowVersions)) - return "flowVersions: array expected"; - for (var i = 0; i < message.flowVersions.length; ++i) - if (!$util.isString(message.flowVersions[i])) - return "flowVersions: string[] expected"; - } - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; - if (message.sessionTtl != null && message.hasOwnProperty("sessionTtl")) { - var error = $root.google.protobuf.Duration.verify(message.sessionTtl); - if (error) - return "sessionTtl." + error; - } + if (message.content != null && message.hasOwnProperty("content")) + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; return null; }; /** - * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. + * Creates an InlineDestination 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.InlineDestination * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.InlineDestination} InlineDestination */ - QueryParameters.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryParameters) + InlineDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.InlineDestination) 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); - } - 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.currentPage != null) - message.currentPage = String(object.currentPage); - 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]]); - } - if (object.flowVersions) { - if (!Array.isArray(object.flowVersions)) - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.flowVersions: array expected"); - message.flowVersions = []; - for (var i = 0; i < object.flowVersions.length; ++i) - message.flowVersions[i] = String(object.flowVersions[i]); - } - if (object.channel != null) - message.channel = String(object.channel); - if (object.sessionTtl != null) { - if (typeof object.sessionTtl !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionTtl: object expected"); - message.sessionTtl = $root.google.protobuf.Duration.fromObject(object.sessionTtl); - } + var message = new $root.google.cloud.dialogflow.cx.v3.InlineDestination(); + 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 >= 0) + message.content = object.content; return message; }; /** - * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. + * Creates a plain object from an InlineDestination message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @static - * @param {google.cloud.dialogflow.cx.v3.QueryParameters} message QueryParameters + * @param {google.cloud.dialogflow.cx.v3.InlineDestination} message InlineDestination * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryParameters.toObject = function toObject(message, options) { + InlineDestination.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sessionEntityTypes = []; - object.flowVersions = []; - } - if (options.objects || options.defaults) - object.webhookHeaders = {}; - if (options.defaults) { - object.timeZone = ""; - object.geoLocation = null; - object.payload = null; - object.parameters = null; - object.currentPage = ""; - object.disableWebhook = false; - object.analyzeQueryTextSentiment = false; - object.channel = ""; - object.sessionTtl = null; - } - 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.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = message.currentPage; - 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.flowVersions && message.flowVersions.length) { - object.flowVersions = []; - for (var j = 0; j < message.flowVersions.length; ++j) - object.flowVersions[j] = message.flowVersions[j]; - } - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; - if (message.sessionTtl != null && message.hasOwnProperty("sessionTtl")) - object.sessionTtl = $root.google.protobuf.Duration.toObject(message.sessionTtl, options); + if (options.defaults) + if (options.bytes === String) + object.content = ""; + else { + object.content = []; + if (options.bytes !== Array) + object.content = $util.newBuffer(object.content); + } + 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; return object; }; /** - * Converts this QueryParameters to JSON. + * Converts this InlineDestination to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @instance * @returns {Object.} JSON object */ - QueryParameters.prototype.toJSON = function toJSON() { + InlineDestination.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryParameters + * Gets the default type url for InlineDestination * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.InlineDestination * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InlineDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.QueryParameters"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.InlineDestination"; }; - return QueryParameters; + return InlineDestination; })(); - v3.QueryInput = (function() { + v3.InlineSource = (function() { /** - * Properties of a QueryInput. + * Properties of an InlineSource. * @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 + * @interface IInlineSource + * @property {Uint8Array|null} [content] InlineSource content */ /** - * Constructs a new QueryInput. + * Constructs a new InlineSource. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a QueryInput. - * @implements IQueryInput + * @classdesc Represents an InlineSource. + * @implements IInlineSource * @constructor - * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IInlineSource=} [properties] Properties to set */ - function QueryInput(properties) { + function InlineSource(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -51996,159 +51394,75 @@ } /** - * QueryInput text. - * @member {google.cloud.dialogflow.cx.v3.ITextInput|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.text = null; - - /** - * QueryInput intent. - * @member {google.cloud.dialogflow.cx.v3.IIntentInput|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.intent = null; - - /** - * QueryInput audio. - * @member {google.cloud.dialogflow.cx.v3.IAudioInput|null|undefined} audio - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.audio = null; - - /** - * QueryInput event. - * @member {google.cloud.dialogflow.cx.v3.IEventInput|null|undefined} event - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.event = null; - - /** - * QueryInput dtmf. - * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.dtmf = null; - - /** - * QueryInput languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.QueryInput - * @instance - */ - QueryInput.prototype.languageCode = ""; - - // 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.v3.QueryInput + * InlineSource content. + * @member {Uint8Array} content + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @instance */ - Object.defineProperty(QueryInput.prototype, "input", { - get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), - set: $util.oneOfSetter($oneOfFields) - }); + InlineSource.prototype.content = $util.newBuffer([]); /** - * Creates a new QueryInput instance using the specified properties. + * Creates a new InlineSource instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput instance + * @param {google.cloud.dialogflow.cx.v3.IInlineSource=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.InlineSource} InlineSource instance */ - QueryInput.create = function create(properties) { - return new QueryInput(properties); + InlineSource.create = function create(properties) { + return new InlineSource(properties); }; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. + * Encodes the specified InlineSource message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InlineSource.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IInlineSource} message InlineSource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryInput.encode = function encode(message, writer) { + InlineSource.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(); + if (message.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.content); return writer; }; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. + * Encodes the specified InlineSource message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InlineSource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IInlineSource} message InlineSource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryInput.encodeDelimited = function encodeDelimited(message, writer) { + InlineSource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryInput message from the specified reader or buffer. + * Decodes an InlineSource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3.InlineSource} InlineSource * @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) { + InlineSource.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.InlineSource(); 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(); + case 1: { + message.content = reader.bytes(); break; } default: @@ -52160,548 +51474,419 @@ }; /** - * Decodes a QueryInput message from the specified reader or buffer, length delimited. + * Decodes an InlineSource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3.InlineSource} InlineSource * @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) { + InlineSource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryInput message. + * Verifies an InlineSource message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @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) { + InlineSource.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"; + if (message.content != null && message.hasOwnProperty("content")) + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; return null; }; /** - * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. + * Creates an InlineSource message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3.InlineSource} InlineSource */ - QueryInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryInput) + InlineSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.InlineSource) 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); + var message = new $root.google.cloud.dialogflow.cx.v3.InlineSource(); + 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 >= 0) + 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 InlineSource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @static - * @param {google.cloud.dialogflow.cx.v3.QueryInput} message QueryInput + * @param {google.cloud.dialogflow.cx.v3.InlineSource} message InlineSource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryInput.toObject = function toObject(message, options) { + InlineSource.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"; - } + if (options.bytes === String) + object.content = ""; + else { + object.content = []; + if (options.bytes !== Array) + object.content = $util.newBuffer(object.content); + } + 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; return object; }; /** - * Converts this QueryInput to JSON. + * Converts this InlineSource to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @instance * @returns {Object.} JSON object */ - QueryInput.prototype.toJSON = function toJSON() { + InlineSource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryInput + * Gets the default type url for InlineSource * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.InlineSource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InlineSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.QueryInput"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.InlineSource"; }; - return QueryInput; + return InlineSource; })(); - v3.QueryResult = (function() { + v3.Sessions = (function() { /** - * Properties of a QueryResult. + * Constructs a new Sessions service. * @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 {google.cloud.dialogflow.cx.v3.IDtmfInput|null} [dtmf] QueryResult dtmf - * @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 + * @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; /** - * Constructs a new QueryResult. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a QueryResult. - * @implements IQueryResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set + * 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. */ - 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) - this[keys[i]] = properties[keys[i]]; - } + Sessions.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * QueryResult text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * 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 */ - QueryResult.prototype.text = null; /** - * QueryResult triggerIntent. - * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * 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 */ - QueryResult.prototype.triggerIntent = 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" }); /** - * QueryResult transcript. - * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * 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 */ - QueryResult.prototype.transcript = null; /** - * QueryResult triggerEvent. - * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * 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 */ - QueryResult.prototype.triggerEvent = null; /** - * QueryResult dtmf. - * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * 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 */ - QueryResult.prototype.dtmf = 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" }); /** - * QueryResult languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * 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 */ - QueryResult.prototype.languageCode = ""; /** - * QueryResult parameters. - * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * 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 */ - QueryResult.prototype.parameters = null; /** - * QueryResult responseMessages. - * @member {Array.} responseMessages - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * 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 */ - QueryResult.prototype.responseMessages = $util.emptyArray; + 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" }); /** - * QueryResult webhookStatuses. - * @member {Array.} webhookStatuses - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * 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 */ - QueryResult.prototype.webhookStatuses = $util.emptyArray; /** - * QueryResult webhookPayloads. - * @member {Array.} webhookPayloads - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * 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 */ - QueryResult.prototype.webhookPayloads = $util.emptyArray; /** - * QueryResult currentPage. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * 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 */ - QueryResult.prototype.currentPage = null; + 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" }); /** - * QueryResult intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * 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 */ - QueryResult.prototype.intent = null; + + return Sessions; + })(); + + v3.DetectIntentRequest = (function() { /** - * QueryResult intentDetectionConfidence. - * @member {number} intentDetectionConfidence - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * 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 */ - QueryResult.prototype.intentDetectionConfidence = 0; /** - * QueryResult match. - * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3.QueryResult - * @instance + * 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 */ - QueryResult.prototype.match = null; + 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]]; + } /** - * QueryResult diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * DetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ - QueryResult.prototype.diagnosticInfo = null; + DetectIntentRequest.prototype.session = ""; /** - * QueryResult sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * DetectIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ - QueryResult.prototype.sentimentAnalysisResult = null; + DetectIntentRequest.prototype.queryParams = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * DetectIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest + * @instance + */ + DetectIntentRequest.prototype.queryInput = null; /** - * QueryResult query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * DetectIntentRequest outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ - Object.defineProperty(QueryResult.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent", "dtmf"]), - set: $util.oneOfSetter($oneOfFields) - }); + DetectIntentRequest.prototype.outputAudioConfig = null; /** - * Creates a new QueryResult instance using the specified properties. + * Creates a new DetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult instance + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest instance */ - QueryResult.create = function create(properties) { - return new QueryResult(properties); + DetectIntentRequest.create = function create(properties) { + return new DetectIntentRequest(properties); }; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.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.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult 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 */ - QueryResult.encode = function encode(message, writer) { + DetectIntentRequest.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(); - if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) - $root.google.cloud.dialogflow.cx.v3.DtmfInput.encode(message.dtmf, writer.uint32(/* id 23, wireType 2 =*/186).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(); + 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 QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.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.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult 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 */ - QueryResult.encodeDelimited = function encodeDelimited(message, writer) { + DetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryResult 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.QueryResult + * @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.QueryResult} QueryResult + * @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 */ - QueryResult.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.QueryResult(); + 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.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 23: { - message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.decode(reader, reader.uint32()); + message.session = reader.string(); break; } case 2: { - message.languageCode = reader.string(); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); break; } case 3: { - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.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()); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; } default: @@ -52713,361 +51898,167 @@ }; /** - * Decodes a QueryResult 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.QueryResult + * @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.QueryResult} QueryResult + * @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 */ - QueryResult.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 QueryResult message. + * Verifies a DetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @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 */ - QueryResult.verify = function verify(message) { + DetectIntentRequest.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.dtmf != null && message.hasOwnProperty("dtmf")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 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"; - 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 (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 "match." + error; + return "queryParams." + error; } - if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) { - var error = $root.google.protobuf.Struct.verify(message.diagnosticInfo); + if (message.queryInput != null && message.hasOwnProperty("queryInput")) { + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); if (error) - return "diagnosticInfo." + error; + return "queryInput." + error; } - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); if (error) - return "sentimentAnalysisResult." + error; + return "outputAudioConfig." + error; } return null; }; /** - * Creates a QueryResult 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.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest */ - QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryResult) + 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.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.dtmf != null) { - if (typeof object.dtmf !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.dtmf: object expected"); - message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.fromObject(object.dtmf); - } - 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); + 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.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.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.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); + 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); } return message; }; /** - * Creates a plain object from a QueryResult 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.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.QueryResult} message QueryResult + * @param {google.cloud.dialogflow.cx.v3.DetectIntentRequest} message DetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryResult.toObject = function toObject(message, options) { + DetectIntentRequest.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.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.dtmf != null && message.hasOwnProperty("dtmf")) { - object.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.toObject(message.dtmf, options); - if (options.oneofs) - object.query = "dtmf"; + 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 QueryResult to JSON. + * Converts this DetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance * @returns {Object.} JSON object */ - QueryResult.prototype.toJSON = function toJSON() { + DetectIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryResult + * Gets the default type url for DetectIntentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DetectIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.QueryResult"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DetectIntentRequest"; }; - return QueryResult; + return DetectIntentRequest; })(); - v3.TextInput = (function() { + v3.DetectIntentResponse = (function() { /** - * Properties of a TextInput. + * Properties of a DetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITextInput - * @property {string|null} [text] TextInput text + * @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 + * @property {google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType|null} [responseType] DetectIntentResponse responseType + * @property {boolean|null} [allowCancellation] DetectIntentResponse allowCancellation */ /** - * Constructs a new TextInput. + * Constructs a new DetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TextInput. - * @implements ITextInput + * @classdesc Represents a DetectIntentResponse. + * @implements IDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set */ - function TextInput(properties) { + function DetectIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53075,75 +52066,145 @@ } /** - * TextInput text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * DetectIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance */ - TextInput.prototype.text = ""; + DetectIntentResponse.prototype.responseId = ""; /** - * Creates a new TextInput instance using the specified properties. + * DetectIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.queryResult = null; + + /** + * DetectIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); + + /** + * DetectIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.outputAudioConfig = null; + + /** + * DetectIntentResponse responseType. + * @member {google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType} responseType + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.responseType = 0; + + /** + * DetectIntentResponse allowCancellation. + * @member {boolean} allowCancellation + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse + * @instance + */ + DetectIntentResponse.prototype.allowCancellation = false; + + /** + * Creates a new DetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @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.IDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse instance */ - TextInput.create = function create(properties) { - return new TextInput(properties); + DetectIntentResponse.create = function create(properties) { + return new DetectIntentResponse(properties); }; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.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.TextInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput 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 */ - TextInput.encode = function encode(message, writer) { + DetectIntentResponse.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.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.responseType != null && Object.hasOwnProperty.call(message, "responseType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.responseType); + if (message.allowCancellation != null && Object.hasOwnProperty.call(message, "allowCancellation")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.allowCancellation); 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 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.TextInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput 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 */ - TextInput.encodeDelimited = function encodeDelimited(message, writer) { + DetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TextInput 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.TextInput + * @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.TextInput} TextInput + * @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 */ - TextInput.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.TextInput(); + 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.text = reader.string(); + message.responseId = 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()); + break; + } + case 6: { + message.responseType = reader.int32(); + break; + } + case 7: { + message.allowCancellation = reader.bool(); break; } default: @@ -53155,122 +52216,227 @@ }; /** - * Decodes a TextInput 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.TextInput + * @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.TextInput} TextInput + * @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 */ - TextInput.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 TextInput message. + * Verifies a DetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @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 */ - TextInput.verify = function verify(message) { + DetectIntentResponse.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.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; + } + if (message.responseType != null && message.hasOwnProperty("responseType")) + switch (message.responseType) { + default: + return "responseType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) + if (typeof message.allowCancellation !== "boolean") + return "allowCancellation: boolean expected"; return null; }; /** - * Creates a TextInput 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.TextInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse */ - TextInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TextInput) + 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.TextInput(); - if (object.text != null) - message.text = String(object.text); + 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 >= 0) + 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); + } + switch (object.responseType) { + default: + if (typeof object.responseType === "number") { + message.responseType = object.responseType; + break; + } + break; + case "RESPONSE_TYPE_UNSPECIFIED": + case 0: + message.responseType = 0; + break; + case "PARTIAL": + case 1: + message.responseType = 1; + break; + case "FINAL": + case 2: + message.responseType = 2; + break; + } + if (object.allowCancellation != null) + message.allowCancellation = Boolean(object.allowCancellation); return message; }; /** - * Creates a plain object from a TextInput 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.TextInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.TextInput} message TextInput + * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} message DetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TextInput.toObject = function toObject(message, options) { + DetectIntentResponse.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; + 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.responseType = options.enums === String ? "RESPONSE_TYPE_UNSPECIFIED" : 0; + object.allowCancellation = false; + } + 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.responseType != null && message.hasOwnProperty("responseType")) + object.responseType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType[message.responseType] === undefined ? message.responseType : $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType[message.responseType] : message.responseType; + if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) + object.allowCancellation = message.allowCancellation; return object; }; /** - * Converts this TextInput to JSON. + * Converts this DetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance * @returns {Object.} JSON object */ - TextInput.prototype.toJSON = function toJSON() { + DetectIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TextInput + * Gets the default type url for DetectIntentResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.TextInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TextInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DetectIntentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.TextInput"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DetectIntentResponse"; }; - return TextInput; + /** + * ResponseType enum. + * @name google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType + * @enum {number} + * @property {number} RESPONSE_TYPE_UNSPECIFIED=0 RESPONSE_TYPE_UNSPECIFIED value + * @property {number} PARTIAL=1 PARTIAL value + * @property {number} FINAL=2 FINAL value + */ + DetectIntentResponse.ResponseType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESPONSE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PARTIAL"] = 1; + values[valuesById[2] = "FINAL"] = 2; + return values; + })(); + + return DetectIntentResponse; })(); - v3.IntentInput = (function() { + v3.StreamingDetectIntentRequest = (function() { /** - * Properties of an IntentInput. + * Properties of a StreamingDetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IIntentInput - * @property {string|null} [intent] IntentInput intent + * @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 + * @property {boolean|null} [enablePartialResponse] StreamingDetectIntentRequest enablePartialResponse + * @property {boolean|null} [enableDebuggingInfo] StreamingDetectIntentRequest enableDebuggingInfo */ /** - * Constructs a new IntentInput. + * Constructs a new StreamingDetectIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an IntentInput. - * @implements IIntentInput + * @classdesc Represents a StreamingDetectIntentRequest. + * @implements IStreamingDetectIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set */ - function IntentInput(properties) { + function StreamingDetectIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53278,75 +52444,145 @@ } /** - * IntentInput intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * StreamingDetectIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance */ - IntentInput.prototype.intent = ""; + StreamingDetectIntentRequest.prototype.session = ""; /** - * Creates a new IntentInput instance using the specified properties. + * 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; + + /** + * StreamingDetectIntentRequest enablePartialResponse. + * @member {boolean} enablePartialResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.enablePartialResponse = false; + + /** + * StreamingDetectIntentRequest enableDebuggingInfo. + * @member {boolean} enableDebuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest + * @instance + */ + StreamingDetectIntentRequest.prototype.enableDebuggingInfo = false; + + /** + * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @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.IStreamingDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance */ - IntentInput.create = function create(properties) { - return new IntentInput(properties); + StreamingDetectIntentRequest.create = function create(properties) { + return new StreamingDetectIntentRequest(properties); }; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.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.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput 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 */ - IntentInput.encode = function encode(message, writer) { + StreamingDetectIntentRequest.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.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.enablePartialResponse != null && Object.hasOwnProperty.call(message, "enablePartialResponse")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enablePartialResponse); + if (message.enableDebuggingInfo != null && Object.hasOwnProperty.call(message, "enableDebuggingInfo")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableDebuggingInfo); 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 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.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput 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 */ - IntentInput.encodeDelimited = function encodeDelimited(message, writer) { + StreamingDetectIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentInput 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.IntentInput + * @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.IntentInput} IntentInput + * @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 */ - IntentInput.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.IntentInput(); + 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.intent = reader.string(); + 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; + } + case 5: { + message.enablePartialResponse = reader.bool(); + break; + } + case 8: { + message.enableDebuggingInfo = reader.bool(); break; } default: @@ -53358,213 +52594,525 @@ }; /** - * Decodes an IntentInput 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.IntentInput + * @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.IntentInput} IntentInput + * @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 */ - IntentInput.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntentInput message. + * Verifies a StreamingDetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @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 */ - IntentInput.verify = function verify(message) { + StreamingDetectIntentRequest.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.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; + } + if (message.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) + if (typeof message.enablePartialResponse !== "boolean") + return "enablePartialResponse: boolean expected"; + if (message.enableDebuggingInfo != null && message.hasOwnProperty("enableDebuggingInfo")) + if (typeof message.enableDebuggingInfo !== "boolean") + return "enableDebuggingInfo: boolean expected"; return null; }; /** - * Creates an IntentInput 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.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest */ - IntentInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentInput) + 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.IntentInput(); - if (object.intent != null) - message.intent = String(object.intent); + 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); + } + if (object.enablePartialResponse != null) + message.enablePartialResponse = Boolean(object.enablePartialResponse); + if (object.enableDebuggingInfo != null) + message.enableDebuggingInfo = Boolean(object.enableDebuggingInfo); return message; }; /** - * Creates a plain object from an IntentInput 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.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IntentInput} message IntentInput + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} message StreamingDetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntentInput.toObject = function toObject(message, options) { + StreamingDetectIntentRequest.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.session = ""; + object.queryParams = null; + object.queryInput = null; + object.outputAudioConfig = null; + object.enablePartialResponse = false; + object.enableDebuggingInfo = false; + } + 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.enablePartialResponse != null && message.hasOwnProperty("enablePartialResponse")) + object.enablePartialResponse = message.enablePartialResponse; + if (message.enableDebuggingInfo != null && message.hasOwnProperty("enableDebuggingInfo")) + object.enableDebuggingInfo = message.enableDebuggingInfo; return object; }; /** - * Converts this IntentInput to JSON. + * Converts this StreamingDetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance * @returns {Object.} JSON object */ - IntentInput.prototype.toJSON = function toJSON() { + StreamingDetectIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IntentInput + * Gets the default type url for StreamingDetectIntentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IntentInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamingDetectIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.IntentInput"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest"; }; - return IntentInput; + return StreamingDetectIntentRequest; })(); - v3.AudioInput = (function() { + v3.CloudConversationDebuggingInfo = (function() { /** - * Properties of an AudioInput. + * Properties of a CloudConversationDebuggingInfo. * @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 ICloudConversationDebuggingInfo + * @property {number|null} [audioDataChunks] CloudConversationDebuggingInfo audioDataChunks + * @property {google.protobuf.IDuration|null} [resultEndTimeOffset] CloudConversationDebuggingInfo resultEndTimeOffset + * @property {google.protobuf.IDuration|null} [firstAudioDuration] CloudConversationDebuggingInfo firstAudioDuration + * @property {boolean|null} [singleUtterance] CloudConversationDebuggingInfo singleUtterance + * @property {Array.|null} [speechPartialResultsEndTimes] CloudConversationDebuggingInfo speechPartialResultsEndTimes + * @property {Array.|null} [speechFinalResultsEndTimes] CloudConversationDebuggingInfo speechFinalResultsEndTimes + * @property {number|null} [partialResponses] CloudConversationDebuggingInfo partialResponses + * @property {number|null} [speakerIdPassiveLatencyMsOffset] CloudConversationDebuggingInfo speakerIdPassiveLatencyMsOffset + * @property {boolean|null} [bargeinEventTriggered] CloudConversationDebuggingInfo bargeinEventTriggered + * @property {boolean|null} [speechSingleUtterance] CloudConversationDebuggingInfo speechSingleUtterance + * @property {Array.|null} [dtmfPartialResultsTimes] CloudConversationDebuggingInfo dtmfPartialResultsTimes + * @property {Array.|null} [dtmfFinalResultsTimes] CloudConversationDebuggingInfo dtmfFinalResultsTimes + * @property {google.protobuf.IDuration|null} [singleUtteranceEndTimeOffset] CloudConversationDebuggingInfo singleUtteranceEndTimeOffset + * @property {google.protobuf.IDuration|null} [noSpeechTimeout] CloudConversationDebuggingInfo noSpeechTimeout + * @property {google.protobuf.IDuration|null} [endpointingTimeout] CloudConversationDebuggingInfo endpointingTimeout + * @property {boolean|null} [isInputText] CloudConversationDebuggingInfo isInputText + * @property {google.protobuf.IDuration|null} [clientHalfCloseTimeOffset] CloudConversationDebuggingInfo clientHalfCloseTimeOffset + * @property {google.protobuf.IDuration|null} [clientHalfCloseStreamingTimeOffset] CloudConversationDebuggingInfo clientHalfCloseStreamingTimeOffset */ /** - * Constructs a new AudioInput. + * Constructs a new CloudConversationDebuggingInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an AudioInput. - * @implements IAudioInput + * @classdesc Represents a CloudConversationDebuggingInfo. + * @implements ICloudConversationDebuggingInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo=} [properties] Properties to set */ - function AudioInput(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) + function CloudConversationDebuggingInfo(properties) { + this.speechPartialResultsEndTimes = []; + this.speechFinalResultsEndTimes = []; + this.dtmfPartialResultsTimes = []; + this.dtmfFinalResultsTimes = []; + 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]]; } /** - * AudioInput config. - * @member {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null|undefined} config - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * CloudConversationDebuggingInfo audioDataChunks. + * @member {number} audioDataChunks + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @instance */ - AudioInput.prototype.config = null; + CloudConversationDebuggingInfo.prototype.audioDataChunks = 0; /** - * AudioInput audio. - * @member {Uint8Array} audio - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * CloudConversationDebuggingInfo resultEndTimeOffset. + * @member {google.protobuf.IDuration|null|undefined} resultEndTimeOffset + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @instance */ - AudioInput.prototype.audio = $util.newBuffer([]); + CloudConversationDebuggingInfo.prototype.resultEndTimeOffset = null; /** - * Creates a new AudioInput instance using the specified properties. + * CloudConversationDebuggingInfo firstAudioDuration. + * @member {google.protobuf.IDuration|null|undefined} firstAudioDuration + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.firstAudioDuration = null; + + /** + * CloudConversationDebuggingInfo singleUtterance. + * @member {boolean} singleUtterance + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.singleUtterance = false; + + /** + * CloudConversationDebuggingInfo speechPartialResultsEndTimes. + * @member {Array.} speechPartialResultsEndTimes + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.speechPartialResultsEndTimes = $util.emptyArray; + + /** + * CloudConversationDebuggingInfo speechFinalResultsEndTimes. + * @member {Array.} speechFinalResultsEndTimes + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.speechFinalResultsEndTimes = $util.emptyArray; + + /** + * CloudConversationDebuggingInfo partialResponses. + * @member {number} partialResponses + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.partialResponses = 0; + + /** + * CloudConversationDebuggingInfo speakerIdPassiveLatencyMsOffset. + * @member {number} speakerIdPassiveLatencyMsOffset + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.speakerIdPassiveLatencyMsOffset = 0; + + /** + * CloudConversationDebuggingInfo bargeinEventTriggered. + * @member {boolean} bargeinEventTriggered + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.bargeinEventTriggered = false; + + /** + * CloudConversationDebuggingInfo speechSingleUtterance. + * @member {boolean} speechSingleUtterance + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.speechSingleUtterance = false; + + /** + * CloudConversationDebuggingInfo dtmfPartialResultsTimes. + * @member {Array.} dtmfPartialResultsTimes + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.dtmfPartialResultsTimes = $util.emptyArray; + + /** + * CloudConversationDebuggingInfo dtmfFinalResultsTimes. + * @member {Array.} dtmfFinalResultsTimes + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.dtmfFinalResultsTimes = $util.emptyArray; + + /** + * CloudConversationDebuggingInfo singleUtteranceEndTimeOffset. + * @member {google.protobuf.IDuration|null|undefined} singleUtteranceEndTimeOffset + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.singleUtteranceEndTimeOffset = null; + + /** + * CloudConversationDebuggingInfo noSpeechTimeout. + * @member {google.protobuf.IDuration|null|undefined} noSpeechTimeout + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.noSpeechTimeout = null; + + /** + * CloudConversationDebuggingInfo endpointingTimeout. + * @member {google.protobuf.IDuration|null|undefined} endpointingTimeout + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.endpointingTimeout = null; + + /** + * CloudConversationDebuggingInfo isInputText. + * @member {boolean} isInputText + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.isInputText = false; + + /** + * CloudConversationDebuggingInfo clientHalfCloseTimeOffset. + * @member {google.protobuf.IDuration|null|undefined} clientHalfCloseTimeOffset + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.clientHalfCloseTimeOffset = null; + + /** + * CloudConversationDebuggingInfo clientHalfCloseStreamingTimeOffset. + * @member {google.protobuf.IDuration|null|undefined} clientHalfCloseStreamingTimeOffset + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo + * @instance + */ + CloudConversationDebuggingInfo.prototype.clientHalfCloseStreamingTimeOffset = null; + + /** + * Creates a new CloudConversationDebuggingInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @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.ICloudConversationDebuggingInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo} CloudConversationDebuggingInfo instance */ - AudioInput.create = function create(properties) { - return new AudioInput(properties); + CloudConversationDebuggingInfo.create = function create(properties) { + return new CloudConversationDebuggingInfo(properties); }; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. + * Encodes the specified CloudConversationDebuggingInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo} message CloudConversationDebuggingInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encode = function encode(message, writer) { + CloudConversationDebuggingInfo.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.audioDataChunks != null && Object.hasOwnProperty.call(message, "audioDataChunks")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.audioDataChunks); + if (message.resultEndTimeOffset != null && Object.hasOwnProperty.call(message, "resultEndTimeOffset")) + $root.google.protobuf.Duration.encode(message.resultEndTimeOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.firstAudioDuration != null && Object.hasOwnProperty.call(message, "firstAudioDuration")) + $root.google.protobuf.Duration.encode(message.firstAudioDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.singleUtterance != null && Object.hasOwnProperty.call(message, "singleUtterance")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.singleUtterance); + if (message.speechPartialResultsEndTimes != null && message.speechPartialResultsEndTimes.length) + for (var i = 0; i < message.speechPartialResultsEndTimes.length; ++i) + $root.google.protobuf.Duration.encode(message.speechPartialResultsEndTimes[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.speechFinalResultsEndTimes != null && message.speechFinalResultsEndTimes.length) + for (var i = 0; i < message.speechFinalResultsEndTimes.length; ++i) + $root.google.protobuf.Duration.encode(message.speechFinalResultsEndTimes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.partialResponses != null && Object.hasOwnProperty.call(message, "partialResponses")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.partialResponses); + if (message.speakerIdPassiveLatencyMsOffset != null && Object.hasOwnProperty.call(message, "speakerIdPassiveLatencyMsOffset")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.speakerIdPassiveLatencyMsOffset); + if (message.bargeinEventTriggered != null && Object.hasOwnProperty.call(message, "bargeinEventTriggered")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.bargeinEventTriggered); + if (message.speechSingleUtterance != null && Object.hasOwnProperty.call(message, "speechSingleUtterance")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.speechSingleUtterance); + if (message.dtmfPartialResultsTimes != null && message.dtmfPartialResultsTimes.length) + for (var i = 0; i < message.dtmfPartialResultsTimes.length; ++i) + $root.google.protobuf.Duration.encode(message.dtmfPartialResultsTimes[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.dtmfFinalResultsTimes != null && message.dtmfFinalResultsTimes.length) + for (var i = 0; i < message.dtmfFinalResultsTimes.length; ++i) + $root.google.protobuf.Duration.encode(message.dtmfFinalResultsTimes[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.singleUtteranceEndTimeOffset != null && Object.hasOwnProperty.call(message, "singleUtteranceEndTimeOffset")) + $root.google.protobuf.Duration.encode(message.singleUtteranceEndTimeOffset, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.noSpeechTimeout != null && Object.hasOwnProperty.call(message, "noSpeechTimeout")) + $root.google.protobuf.Duration.encode(message.noSpeechTimeout, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.isInputText != null && Object.hasOwnProperty.call(message, "isInputText")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.isInputText); + if (message.clientHalfCloseTimeOffset != null && Object.hasOwnProperty.call(message, "clientHalfCloseTimeOffset")) + $root.google.protobuf.Duration.encode(message.clientHalfCloseTimeOffset, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.clientHalfCloseStreamingTimeOffset != null && Object.hasOwnProperty.call(message, "clientHalfCloseStreamingTimeOffset")) + $root.google.protobuf.Duration.encode(message.clientHalfCloseStreamingTimeOffset, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.endpointingTimeout != null && Object.hasOwnProperty.call(message, "endpointingTimeout")) + $root.google.protobuf.Duration.encode(message.endpointingTimeout, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); 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 CloudConversationDebuggingInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo} message CloudConversationDebuggingInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudioInput.encodeDelimited = function encodeDelimited(message, writer) { + CloudConversationDebuggingInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudioInput message from the specified reader or buffer. + * Decodes a CloudConversationDebuggingInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @static * @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.CloudConversationDebuggingInfo} CloudConversationDebuggingInfo * @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) { + CloudConversationDebuggingInfo.decode = function decode(reader, length) { 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.CloudConversationDebuggingInfo(); 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.audioDataChunks = reader.int32(); break; } case 2: { - message.audio = reader.bytes(); + message.resultEndTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 3: { + message.firstAudioDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 5: { + message.singleUtterance = reader.bool(); + break; + } + case 6: { + if (!(message.speechPartialResultsEndTimes && message.speechPartialResultsEndTimes.length)) + message.speechPartialResultsEndTimes = []; + message.speechPartialResultsEndTimes.push($root.google.protobuf.Duration.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.speechFinalResultsEndTimes && message.speechFinalResultsEndTimes.length)) + message.speechFinalResultsEndTimes = []; + message.speechFinalResultsEndTimes.push($root.google.protobuf.Duration.decode(reader, reader.uint32())); + break; + } + case 8: { + message.partialResponses = reader.int32(); + break; + } + case 9: { + message.speakerIdPassiveLatencyMsOffset = reader.int32(); + break; + } + case 10: { + message.bargeinEventTriggered = reader.bool(); + break; + } + case 11: { + message.speechSingleUtterance = reader.bool(); + break; + } + case 12: { + if (!(message.dtmfPartialResultsTimes && message.dtmfPartialResultsTimes.length)) + message.dtmfPartialResultsTimes = []; + message.dtmfPartialResultsTimes.push($root.google.protobuf.Duration.decode(reader, reader.uint32())); + break; + } + case 13: { + if (!(message.dtmfFinalResultsTimes && message.dtmfFinalResultsTimes.length)) + message.dtmfFinalResultsTimes = []; + message.dtmfFinalResultsTimes.push($root.google.protobuf.Duration.decode(reader, reader.uint32())); + break; + } + case 14: { + message.singleUtteranceEndTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 15: { + message.noSpeechTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 19: { + message.endpointingTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 16: { + message.isInputText = reader.bool(); + break; + } + case 17: { + message.clientHalfCloseTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 18: { + message.clientHalfCloseStreamingTimeOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -53576,145 +53124,366 @@ }; /** - * Decodes an AudioInput message from the specified reader or buffer, length delimited. + * Decodes a CloudConversationDebuggingInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @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.CloudConversationDebuggingInfo} CloudConversationDebuggingInfo * @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) { + CloudConversationDebuggingInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudioInput message. + * Verifies a CloudConversationDebuggingInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @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) { + CloudConversationDebuggingInfo.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.audioDataChunks != null && message.hasOwnProperty("audioDataChunks")) + if (!$util.isInteger(message.audioDataChunks)) + return "audioDataChunks: integer expected"; + if (message.resultEndTimeOffset != null && message.hasOwnProperty("resultEndTimeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.resultEndTimeOffset); if (error) - return "config." + error; + return "resultEndTimeOffset." + error; + } + if (message.firstAudioDuration != null && message.hasOwnProperty("firstAudioDuration")) { + var error = $root.google.protobuf.Duration.verify(message.firstAudioDuration); + if (error) + return "firstAudioDuration." + error; + } + if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + if (typeof message.singleUtterance !== "boolean") + return "singleUtterance: boolean expected"; + if (message.speechPartialResultsEndTimes != null && message.hasOwnProperty("speechPartialResultsEndTimes")) { + if (!Array.isArray(message.speechPartialResultsEndTimes)) + return "speechPartialResultsEndTimes: array expected"; + for (var i = 0; i < message.speechPartialResultsEndTimes.length; ++i) { + var error = $root.google.protobuf.Duration.verify(message.speechPartialResultsEndTimes[i]); + if (error) + return "speechPartialResultsEndTimes." + error; + } + } + if (message.speechFinalResultsEndTimes != null && message.hasOwnProperty("speechFinalResultsEndTimes")) { + if (!Array.isArray(message.speechFinalResultsEndTimes)) + return "speechFinalResultsEndTimes: array expected"; + for (var i = 0; i < message.speechFinalResultsEndTimes.length; ++i) { + var error = $root.google.protobuf.Duration.verify(message.speechFinalResultsEndTimes[i]); + if (error) + return "speechFinalResultsEndTimes." + error; + } + } + if (message.partialResponses != null && message.hasOwnProperty("partialResponses")) + if (!$util.isInteger(message.partialResponses)) + return "partialResponses: integer expected"; + if (message.speakerIdPassiveLatencyMsOffset != null && message.hasOwnProperty("speakerIdPassiveLatencyMsOffset")) + if (!$util.isInteger(message.speakerIdPassiveLatencyMsOffset)) + return "speakerIdPassiveLatencyMsOffset: integer expected"; + if (message.bargeinEventTriggered != null && message.hasOwnProperty("bargeinEventTriggered")) + if (typeof message.bargeinEventTriggered !== "boolean") + return "bargeinEventTriggered: boolean expected"; + if (message.speechSingleUtterance != null && message.hasOwnProperty("speechSingleUtterance")) + if (typeof message.speechSingleUtterance !== "boolean") + return "speechSingleUtterance: boolean expected"; + if (message.dtmfPartialResultsTimes != null && message.hasOwnProperty("dtmfPartialResultsTimes")) { + if (!Array.isArray(message.dtmfPartialResultsTimes)) + return "dtmfPartialResultsTimes: array expected"; + for (var i = 0; i < message.dtmfPartialResultsTimes.length; ++i) { + var error = $root.google.protobuf.Duration.verify(message.dtmfPartialResultsTimes[i]); + if (error) + return "dtmfPartialResultsTimes." + error; + } + } + if (message.dtmfFinalResultsTimes != null && message.hasOwnProperty("dtmfFinalResultsTimes")) { + if (!Array.isArray(message.dtmfFinalResultsTimes)) + return "dtmfFinalResultsTimes: array expected"; + for (var i = 0; i < message.dtmfFinalResultsTimes.length; ++i) { + var error = $root.google.protobuf.Duration.verify(message.dtmfFinalResultsTimes[i]); + if (error) + return "dtmfFinalResultsTimes." + error; + } + } + if (message.singleUtteranceEndTimeOffset != null && message.hasOwnProperty("singleUtteranceEndTimeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.singleUtteranceEndTimeOffset); + if (error) + return "singleUtteranceEndTimeOffset." + error; + } + if (message.noSpeechTimeout != null && message.hasOwnProperty("noSpeechTimeout")) { + var error = $root.google.protobuf.Duration.verify(message.noSpeechTimeout); + if (error) + return "noSpeechTimeout." + error; + } + if (message.endpointingTimeout != null && message.hasOwnProperty("endpointingTimeout")) { + var error = $root.google.protobuf.Duration.verify(message.endpointingTimeout); + if (error) + return "endpointingTimeout." + error; + } + if (message.isInputText != null && message.hasOwnProperty("isInputText")) + if (typeof message.isInputText !== "boolean") + return "isInputText: boolean expected"; + if (message.clientHalfCloseTimeOffset != null && message.hasOwnProperty("clientHalfCloseTimeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.clientHalfCloseTimeOffset); + if (error) + return "clientHalfCloseTimeOffset." + error; + } + if (message.clientHalfCloseStreamingTimeOffset != null && message.hasOwnProperty("clientHalfCloseStreamingTimeOffset")) { + var error = $root.google.protobuf.Duration.verify(message.clientHalfCloseStreamingTimeOffset); + if (error) + return "clientHalfCloseStreamingTimeOffset." + 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 an AudioInput message from a plain object. Also converts values to their respective internal types. + * Creates a CloudConversationDebuggingInfo 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.CloudConversationDebuggingInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo} CloudConversationDebuggingInfo */ - AudioInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.AudioInput) + CloudConversationDebuggingInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo) 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.CloudConversationDebuggingInfo(); + if (object.audioDataChunks != null) + message.audioDataChunks = object.audioDataChunks | 0; + if (object.resultEndTimeOffset != null) { + if (typeof object.resultEndTimeOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.resultEndTimeOffset: object expected"); + message.resultEndTimeOffset = $root.google.protobuf.Duration.fromObject(object.resultEndTimeOffset); + } + if (object.firstAudioDuration != null) { + if (typeof object.firstAudioDuration !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.firstAudioDuration: object expected"); + message.firstAudioDuration = $root.google.protobuf.Duration.fromObject(object.firstAudioDuration); + } + if (object.singleUtterance != null) + message.singleUtterance = Boolean(object.singleUtterance); + if (object.speechPartialResultsEndTimes) { + if (!Array.isArray(object.speechPartialResultsEndTimes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.speechPartialResultsEndTimes: array expected"); + message.speechPartialResultsEndTimes = []; + for (var i = 0; i < object.speechPartialResultsEndTimes.length; ++i) { + if (typeof object.speechPartialResultsEndTimes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.speechPartialResultsEndTimes: object expected"); + message.speechPartialResultsEndTimes[i] = $root.google.protobuf.Duration.fromObject(object.speechPartialResultsEndTimes[i]); + } + } + if (object.speechFinalResultsEndTimes) { + if (!Array.isArray(object.speechFinalResultsEndTimes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.speechFinalResultsEndTimes: array expected"); + message.speechFinalResultsEndTimes = []; + for (var i = 0; i < object.speechFinalResultsEndTimes.length; ++i) { + if (typeof object.speechFinalResultsEndTimes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.speechFinalResultsEndTimes: object expected"); + message.speechFinalResultsEndTimes[i] = $root.google.protobuf.Duration.fromObject(object.speechFinalResultsEndTimes[i]); + } + } + if (object.partialResponses != null) + message.partialResponses = object.partialResponses | 0; + if (object.speakerIdPassiveLatencyMsOffset != null) + message.speakerIdPassiveLatencyMsOffset = object.speakerIdPassiveLatencyMsOffset | 0; + if (object.bargeinEventTriggered != null) + message.bargeinEventTriggered = Boolean(object.bargeinEventTriggered); + if (object.speechSingleUtterance != null) + message.speechSingleUtterance = Boolean(object.speechSingleUtterance); + if (object.dtmfPartialResultsTimes) { + if (!Array.isArray(object.dtmfPartialResultsTimes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.dtmfPartialResultsTimes: array expected"); + message.dtmfPartialResultsTimes = []; + for (var i = 0; i < object.dtmfPartialResultsTimes.length; ++i) { + if (typeof object.dtmfPartialResultsTimes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.dtmfPartialResultsTimes: object expected"); + message.dtmfPartialResultsTimes[i] = $root.google.protobuf.Duration.fromObject(object.dtmfPartialResultsTimes[i]); + } + } + if (object.dtmfFinalResultsTimes) { + if (!Array.isArray(object.dtmfFinalResultsTimes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.dtmfFinalResultsTimes: array expected"); + message.dtmfFinalResultsTimes = []; + for (var i = 0; i < object.dtmfFinalResultsTimes.length; ++i) { + if (typeof object.dtmfFinalResultsTimes[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.dtmfFinalResultsTimes: object expected"); + message.dtmfFinalResultsTimes[i] = $root.google.protobuf.Duration.fromObject(object.dtmfFinalResultsTimes[i]); + } + } + if (object.singleUtteranceEndTimeOffset != null) { + if (typeof object.singleUtteranceEndTimeOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.singleUtteranceEndTimeOffset: object expected"); + message.singleUtteranceEndTimeOffset = $root.google.protobuf.Duration.fromObject(object.singleUtteranceEndTimeOffset); + } + if (object.noSpeechTimeout != null) { + if (typeof object.noSpeechTimeout !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.noSpeechTimeout: object expected"); + message.noSpeechTimeout = $root.google.protobuf.Duration.fromObject(object.noSpeechTimeout); + } + if (object.endpointingTimeout != null) { + if (typeof object.endpointingTimeout !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.endpointingTimeout: object expected"); + message.endpointingTimeout = $root.google.protobuf.Duration.fromObject(object.endpointingTimeout); + } + if (object.isInputText != null) + message.isInputText = Boolean(object.isInputText); + if (object.clientHalfCloseTimeOffset != null) { + if (typeof object.clientHalfCloseTimeOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.clientHalfCloseTimeOffset: object expected"); + message.clientHalfCloseTimeOffset = $root.google.protobuf.Duration.fromObject(object.clientHalfCloseTimeOffset); + } + if (object.clientHalfCloseStreamingTimeOffset != null) { + if (typeof object.clientHalfCloseStreamingTimeOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.clientHalfCloseStreamingTimeOffset: object expected"); + message.clientHalfCloseStreamingTimeOffset = $root.google.protobuf.Duration.fromObject(object.clientHalfCloseStreamingTimeOffset); } - 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 >= 0) - message.audio = object.audio; return message; }; /** - * Creates a plain object from an AudioInput message. Also converts values to other types if specified. + * Creates a plain object from a CloudConversationDebuggingInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @static - * @param {google.cloud.dialogflow.cx.v3.AudioInput} message AudioInput + * @param {google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo} message CloudConversationDebuggingInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudioInput.toObject = function toObject(message, options) { + CloudConversationDebuggingInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.speechPartialResultsEndTimes = []; + object.speechFinalResultsEndTimes = []; + object.dtmfPartialResultsTimes = []; + object.dtmfFinalResultsTimes = []; + } 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.audioDataChunks = 0; + object.resultEndTimeOffset = null; + object.firstAudioDuration = null; + object.singleUtterance = false; + object.partialResponses = 0; + object.speakerIdPassiveLatencyMsOffset = 0; + object.bargeinEventTriggered = false; + object.speechSingleUtterance = false; + object.singleUtteranceEndTimeOffset = null; + object.noSpeechTimeout = null; + object.isInputText = false; + object.clientHalfCloseTimeOffset = null; + object.clientHalfCloseStreamingTimeOffset = null; + object.endpointingTimeout = null; } - 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.audioDataChunks != null && message.hasOwnProperty("audioDataChunks")) + object.audioDataChunks = message.audioDataChunks; + if (message.resultEndTimeOffset != null && message.hasOwnProperty("resultEndTimeOffset")) + object.resultEndTimeOffset = $root.google.protobuf.Duration.toObject(message.resultEndTimeOffset, options); + if (message.firstAudioDuration != null && message.hasOwnProperty("firstAudioDuration")) + object.firstAudioDuration = $root.google.protobuf.Duration.toObject(message.firstAudioDuration, options); + if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + object.singleUtterance = message.singleUtterance; + if (message.speechPartialResultsEndTimes && message.speechPartialResultsEndTimes.length) { + object.speechPartialResultsEndTimes = []; + for (var j = 0; j < message.speechPartialResultsEndTimes.length; ++j) + object.speechPartialResultsEndTimes[j] = $root.google.protobuf.Duration.toObject(message.speechPartialResultsEndTimes[j], options); + } + if (message.speechFinalResultsEndTimes && message.speechFinalResultsEndTimes.length) { + object.speechFinalResultsEndTimes = []; + for (var j = 0; j < message.speechFinalResultsEndTimes.length; ++j) + object.speechFinalResultsEndTimes[j] = $root.google.protobuf.Duration.toObject(message.speechFinalResultsEndTimes[j], options); + } + if (message.partialResponses != null && message.hasOwnProperty("partialResponses")) + object.partialResponses = message.partialResponses; + if (message.speakerIdPassiveLatencyMsOffset != null && message.hasOwnProperty("speakerIdPassiveLatencyMsOffset")) + object.speakerIdPassiveLatencyMsOffset = message.speakerIdPassiveLatencyMsOffset; + if (message.bargeinEventTriggered != null && message.hasOwnProperty("bargeinEventTriggered")) + object.bargeinEventTriggered = message.bargeinEventTriggered; + if (message.speechSingleUtterance != null && message.hasOwnProperty("speechSingleUtterance")) + object.speechSingleUtterance = message.speechSingleUtterance; + if (message.dtmfPartialResultsTimes && message.dtmfPartialResultsTimes.length) { + object.dtmfPartialResultsTimes = []; + for (var j = 0; j < message.dtmfPartialResultsTimes.length; ++j) + object.dtmfPartialResultsTimes[j] = $root.google.protobuf.Duration.toObject(message.dtmfPartialResultsTimes[j], options); + } + if (message.dtmfFinalResultsTimes && message.dtmfFinalResultsTimes.length) { + object.dtmfFinalResultsTimes = []; + for (var j = 0; j < message.dtmfFinalResultsTimes.length; ++j) + object.dtmfFinalResultsTimes[j] = $root.google.protobuf.Duration.toObject(message.dtmfFinalResultsTimes[j], options); + } + if (message.singleUtteranceEndTimeOffset != null && message.hasOwnProperty("singleUtteranceEndTimeOffset")) + object.singleUtteranceEndTimeOffset = $root.google.protobuf.Duration.toObject(message.singleUtteranceEndTimeOffset, options); + if (message.noSpeechTimeout != null && message.hasOwnProperty("noSpeechTimeout")) + object.noSpeechTimeout = $root.google.protobuf.Duration.toObject(message.noSpeechTimeout, options); + if (message.isInputText != null && message.hasOwnProperty("isInputText")) + object.isInputText = message.isInputText; + if (message.clientHalfCloseTimeOffset != null && message.hasOwnProperty("clientHalfCloseTimeOffset")) + object.clientHalfCloseTimeOffset = $root.google.protobuf.Duration.toObject(message.clientHalfCloseTimeOffset, options); + if (message.clientHalfCloseStreamingTimeOffset != null && message.hasOwnProperty("clientHalfCloseStreamingTimeOffset")) + object.clientHalfCloseStreamingTimeOffset = $root.google.protobuf.Duration.toObject(message.clientHalfCloseStreamingTimeOffset, options); + if (message.endpointingTimeout != null && message.hasOwnProperty("endpointingTimeout")) + object.endpointingTimeout = $root.google.protobuf.Duration.toObject(message.endpointingTimeout, options); return object; }; /** - * Converts this AudioInput to JSON. + * Converts this CloudConversationDebuggingInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @instance * @returns {Object.} JSON object */ - AudioInput.prototype.toJSON = function toJSON() { + CloudConversationDebuggingInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudioInput + * Gets the default type url for CloudConversationDebuggingInfo * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudioInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CloudConversationDebuggingInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.AudioInput"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo"; }; - return AudioInput; + return CloudConversationDebuggingInfo; })(); - v3.EventInput = (function() { + v3.StreamingDetectIntentResponse = (function() { /** - * Properties of an EventInput. + * Properties of a StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IEventInput - * @property {string|null} [event] EventInput event + * @interface IStreamingDetectIntentResponse + * @property {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult + * @property {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse + * @property {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo|null} [debuggingInfo] StreamingDetectIntentResponse debuggingInfo */ /** - * Constructs a new EventInput. + * Constructs a new StreamingDetectIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an EventInput. - * @implements IEventInput + * @classdesc Represents a StreamingDetectIntentResponse. + * @implements IStreamingDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set */ - function EventInput(properties) { + function StreamingDetectIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -53722,75 +53491,117 @@ } /** - * EventInput event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * StreamingDetectIntentResponse recognitionResult. + * @member {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null|undefined} recognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance */ - EventInput.prototype.event = ""; + StreamingDetectIntentResponse.prototype.recognitionResult = null; /** - * Creates a new EventInput instance using the specified properties. + * StreamingDetectIntentResponse detectIntentResponse. + * @member {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null|undefined} detectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @instance + */ + StreamingDetectIntentResponse.prototype.detectIntentResponse = null; + + /** + * StreamingDetectIntentResponse debuggingInfo. + * @member {google.cloud.dialogflow.cx.v3.ICloudConversationDebuggingInfo|null|undefined} debuggingInfo + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse + * @instance + */ + StreamingDetectIntentResponse.prototype.debuggingInfo = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * StreamingDetectIntentResponse response. + * @member {"recognitionResult"|"detectIntentResponse"|undefined} response + * @memberof google.cloud.dialogflow.cx.v3.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.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @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.IStreamingDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance */ - EventInput.create = function create(properties) { - return new EventInput(properties); + StreamingDetectIntentResponse.create = function create(properties) { + return new StreamingDetectIntentResponse(properties); }; /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.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.EventInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput 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 */ - EventInput.encode = function encode(message, writer) { + StreamingDetectIntentResponse.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.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.debuggingInfo != null && Object.hasOwnProperty.call(message, "debuggingInfo")) + $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.encode(message.debuggingInfo, writer.uint32(/* id 4, wireType 2 =*/34).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 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.EventInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput 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 */ - EventInput.encodeDelimited = function encodeDelimited(message, writer) { + StreamingDetectIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventInput 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.EventInput + * @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.EventInput} EventInput + * @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 */ - EventInput.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.EventInput(); + 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.event = reader.string(); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.decode(reader, reader.uint32()); + break; + } + case 2: { + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.decode(reader, reader.uint32()); + break; + } + case 4: { + message.debuggingInfo = $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.decode(reader, reader.uint32()); break; } default: @@ -53802,123 +53613,174 @@ }; /** - * Decodes an EventInput 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.EventInput + * @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.EventInput} EventInput + * @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 */ - EventInput.decodeDelimited = function decodeDelimited(reader) { + StreamingDetectIntentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventInput message. + * Verifies a StreamingDetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @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 */ - EventInput.verify = function verify(message) { + StreamingDetectIntentResponse.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"; + 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.debuggingInfo != null && message.hasOwnProperty("debuggingInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.verify(message.debuggingInfo); + if (error) + return "debuggingInfo." + error; + } return null; }; /** - * Creates an EventInput 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.EventInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse */ - EventInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.EventInput) + 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.EventInput(); - if (object.event != null) - message.event = String(object.event); + 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); + } + if (object.debuggingInfo != null) { + if (typeof object.debuggingInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.debuggingInfo: object expected"); + message.debuggingInfo = $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.fromObject(object.debuggingInfo); + } return message; }; /** - * Creates a plain object from an EventInput 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.EventInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.EventInput} message EventInput + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} message StreamingDetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventInput.toObject = function toObject(message, options) { + StreamingDetectIntentResponse.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; + object.debuggingInfo = 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.debuggingInfo != null && message.hasOwnProperty("debuggingInfo")) + object.debuggingInfo = $root.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo.toObject(message.debuggingInfo, options); return object; }; /** - * Converts this EventInput to JSON. + * Converts this StreamingDetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance * @returns {Object.} JSON object */ - EventInput.prototype.toJSON = function toJSON() { + StreamingDetectIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EventInput + * Gets the default type url for StreamingDetectIntentResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.EventInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EventInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamingDetectIntentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EventInput"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse"; }; - return EventInput; + return StreamingDetectIntentResponse; })(); - v3.DtmfInput = (function() { + v3.StreamingRecognitionResult = (function() { /** - * Properties of a DtmfInput. + * Properties of a StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDtmfInput - * @property {string|null} [digits] DtmfInput digits - * @property {string|null} [finishDigit] DtmfInput finishDigit + * @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 + * @property {string|null} [languageCode] StreamingRecognitionResult languageCode */ /** - * Constructs a new DtmfInput. + * Constructs a new StreamingRecognitionResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DtmfInput. - * @implements IDtmfInput + * @classdesc Represents a StreamingRecognitionResult. + * @implements IStreamingRecognitionResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set */ - function DtmfInput(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) @@ -53926,230 +53788,437 @@ } /** - * DtmfInput digits. - * @member {string} digits - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * StreamingRecognitionResult messageType. + * @member {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType} messageType + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ - DtmfInput.prototype.digits = ""; + StreamingRecognitionResult.prototype.messageType = 0; /** - * DtmfInput finishDigit. - * @member {string} finishDigit - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * StreamingRecognitionResult transcript. + * @member {string} transcript + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ - DtmfInput.prototype.finishDigit = ""; + StreamingRecognitionResult.prototype.transcript = ""; /** - * Creates a new DtmfInput instance using the specified properties. + * 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 + * @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; + + /** + * StreamingRecognitionResult languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult + * @instance + */ + StreamingRecognitionResult.prototype.languageCode = ""; + + /** + * Creates a new StreamingRecognitionResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @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.IStreamingRecognitionResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult instance */ - DtmfInput.create = function create(properties) { - return new DtmfInput(properties); + StreamingRecognitionResult.create = function create(properties) { + return new StreamingRecognitionResult(properties); }; /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.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.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput 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 */ - DtmfInput.encode = function encode(message, writer) { + StreamingRecognitionResult.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.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.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.languageCode); 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 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.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput 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 */ - DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { + StreamingRecognitionResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DtmfInput 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.DtmfInput + * @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.DtmfInput} DtmfInput + * @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 */ - DtmfInput.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.DtmfInput(); + 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.digits = reader.string(); + message.messageType = reader.int32(); break; } case 2: { - message.finishDigit = reader.string(); + message.transcript = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DtmfInput message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput - * @static + 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()); + break; + } + case 10: { + message.languageCode = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.DtmfInput} DtmfInput + * @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 */ - DtmfInput.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 DtmfInput message. + * Verifies a StreamingRecognitionResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @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 */ - DtmfInput.verify = function verify(message) { + StreamingRecognitionResult.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.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.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) { + var error = $root.google.protobuf.Duration.verify(message.speechEndOffset); + if (error) + return "speechEndOffset." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a DtmfInput 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.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult */ - DtmfInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DtmfInput) + 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.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.StreamingRecognitionResult(); + switch (object.messageType) { + default: + if (typeof object.messageType === "number") { + message.messageType = object.messageType; + break; + } + break; + 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]); + } + } + 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.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a DtmfInput 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.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3.DtmfInput} message DtmfInput + * @param {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} message StreamingRecognitionResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DtmfInput.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.digits = ""; - object.finishDigit = ""; + object.messageType = options.enums === String ? "MESSAGE_TYPE_UNSPECIFIED" : 0; + object.transcript = ""; + object.isFinal = false; + object.confidence = 0; + object.stability = 0; + object.speechEndOffset = null; + object.languageCode = ""; } - if (message.digits != null && message.hasOwnProperty("digits")) - object.digits = message.digits; - if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) - object.finishDigit = message.finishDigit; + if (message.messageType != null && message.hasOwnProperty("messageType")) + object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType[message.messageType] === undefined ? message.messageType : $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); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this DtmfInput to JSON. + * Converts this StreamingRecognitionResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance * @returns {Object.} JSON object */ - DtmfInput.prototype.toJSON = function toJSON() { + StreamingRecognitionResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DtmfInput + * Gets the default type url for StreamingRecognitionResult * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DtmfInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StreamingRecognitionResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DtmfInput"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StreamingRecognitionResult"; }; - return DtmfInput; + /** + * 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.Match = (function() { + v3.QueryParameters = (function() { /** - * Properties of a Match. + * Properties of a QueryParameters. * @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 + * @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 {string|null} [currentPage] QueryParameters currentPage + * @property {boolean|null} [disableWebhook] QueryParameters disableWebhook + * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment + * @property {Object.|null} [webhookHeaders] QueryParameters webhookHeaders + * @property {Array.|null} [flowVersions] QueryParameters flowVersions + * @property {string|null} [channel] QueryParameters channel + * @property {google.protobuf.IDuration|null} [sessionTtl] QueryParameters sessionTtl */ /** - * Constructs a new Match. + * Constructs a new QueryParameters. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Match. - * @implements IMatch + * @classdesc Represents a QueryParameters. + * @implements IQueryParameters * @constructor - * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set */ - function Match(properties) { + function QueryParameters(properties) { + this.sessionEntityTypes = []; + this.webhookHeaders = {}; + this.flowVersions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54157,145 +54226,255 @@ } /** - * Match intent. - * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3.Match + * QueryParameters timeZone. + * @member {string} timeZone + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - Match.prototype.intent = null; + QueryParameters.prototype.timeZone = ""; /** - * Match event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3.Match + * QueryParameters geoLocation. + * @member {google.type.ILatLng|null|undefined} geoLocation + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - Match.prototype.event = ""; + QueryParameters.prototype.geoLocation = null; /** - * Match parameters. + * 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.Match + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - Match.prototype.parameters = null; + QueryParameters.prototype.parameters = null; /** - * Match resolvedInput. - * @member {string} resolvedInput - * @memberof google.cloud.dialogflow.cx.v3.Match + * QueryParameters currentPage. + * @member {string} currentPage + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - Match.prototype.resolvedInput = ""; + QueryParameters.prototype.currentPage = ""; /** - * Match matchType. - * @member {google.cloud.dialogflow.cx.v3.Match.MatchType} matchType - * @memberof google.cloud.dialogflow.cx.v3.Match + * QueryParameters disableWebhook. + * @member {boolean} disableWebhook + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - Match.prototype.matchType = 0; + QueryParameters.prototype.disableWebhook = false; /** - * Match confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.Match + * QueryParameters analyzeQueryTextSentiment. + * @member {boolean} analyzeQueryTextSentiment + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ - Match.prototype.confidence = 0; + QueryParameters.prototype.analyzeQueryTextSentiment = false; /** - * Creates a new Match instance using the specified properties. + * QueryParameters webhookHeaders. + * @member {Object.} webhookHeaders + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.webhookHeaders = $util.emptyObject; + + /** + * QueryParameters flowVersions. + * @member {Array.} flowVersions + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.flowVersions = $util.emptyArray; + + /** + * QueryParameters channel. + * @member {string} channel + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.channel = ""; + + /** + * QueryParameters sessionTtl. + * @member {google.protobuf.IDuration|null|undefined} sessionTtl + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters + * @instance + */ + QueryParameters.prototype.sessionTtl = null; + + /** + * Creates a new QueryParameters instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @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.IQueryParameters=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters instance */ - Match.create = function create(properties) { - return new Match(properties); + QueryParameters.create = function create(properties) { + return new QueryParameters(properties); }; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.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.Match + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match 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 */ - Match.encode = function encode(message, writer) { + QueryParameters.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.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 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); + $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.currentPage); + 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.flowVersions != null && message.flowVersions.length) + for (var i = 0; i < message.flowVersions.length; ++i) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.flowVersions[i]); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.channel); + if (message.sessionTtl != null && Object.hasOwnProperty.call(message, "sessionTtl")) + $root.google.protobuf.Duration.encode(message.sessionTtl, writer.uint32(/* id 16, wireType 2 =*/130).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 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.Match + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match 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 */ - Match.encodeDelimited = function encodeDelimited(message, writer) { + QueryParameters.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Match 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.Match + * @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.Match} Match + * @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 */ - Match.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.Match(); + 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.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); - break; - } - case 6: { - message.event = reader.string(); + message.timeZone = reader.string(); break; } case 2: { - message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.geoLocation = $root.google.type.LatLng.decode(reader, reader.uint32()); break; } case 3: { - message.resolvedInput = reader.string(); + 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.matchType = reader.int32(); + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } case 5: { - message.confidence = reader.float(); + message.parameters = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 6: { + message.currentPage = reader.string(); + 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; + } + case 14: { + if (!(message.flowVersions && message.flowVersions.length)) + message.flowVersions = []; + message.flowVersions.push(reader.string()); + break; + } + case 15: { + message.channel = reader.string(); + break; + } + case 16: { + message.sessionTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } default: @@ -54307,244 +54486,282 @@ }; /** - * Decodes a Match 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.Match + * @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.Match} Match + * @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 */ - Match.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 Match message. + * Verifies a QueryParameters message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Match + * @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 */ - Match.verify = function verify(message) { + QueryParameters.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.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 "intent." + 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.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; - } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + if (!$util.isString(message.currentPage)) + return "currentPage: string expected"; + 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.flowVersions != null && message.hasOwnProperty("flowVersions")) { + if (!Array.isArray(message.flowVersions)) + return "flowVersions: array expected"; + for (var i = 0; i < message.flowVersions.length; ++i) + if (!$util.isString(message.flowVersions[i])) + return "flowVersions: string[] expected"; + } + if (message.channel != null && message.hasOwnProperty("channel")) + if (!$util.isString(message.channel)) + return "channel: string expected"; + if (message.sessionTtl != null && message.hasOwnProperty("sessionTtl")) { + var error = $root.google.protobuf.Duration.verify(message.sessionTtl); + if (error) + return "sessionTtl." + error; + } return null; }; /** - * Creates a Match 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.Match + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters */ - Match.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Match) + 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.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.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.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"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.parameters: object expected"); message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); } - if (object.resolvedInput != null) - message.resolvedInput = String(object.resolvedInput); - switch (object.matchType) { - default: - if (typeof object.matchType === "number") { - message.matchType = object.matchType; - break; - } - break; - 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.currentPage != null) + message.currentPage = String(object.currentPage); + 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]]); + } + if (object.flowVersions) { + if (!Array.isArray(object.flowVersions)) + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.flowVersions: array expected"); + message.flowVersions = []; + for (var i = 0; i < object.flowVersions.length; ++i) + message.flowVersions[i] = String(object.flowVersions[i]); + } + if (object.channel != null) + message.channel = String(object.channel); + if (object.sessionTtl != null) { + if (typeof object.sessionTtl !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionTtl: object expected"); + message.sessionTtl = $root.google.protobuf.Duration.fromObject(object.sessionTtl); } - 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 QueryParameters message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3.Match} message Match + * @param {google.cloud.dialogflow.cx.v3.QueryParameters} message QueryParameters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Match.toObject = function toObject(message, options) { + QueryParameters.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.sessionEntityTypes = []; + object.flowVersions = []; + } + if (options.objects || options.defaults) + object.webhookHeaders = {}; if (options.defaults) { - object.intent = null; + object.timeZone = ""; + object.geoLocation = null; + object.payload = null; object.parameters = null; - object.resolvedInput = ""; - object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; - object.confidence = 0; - object.event = ""; + object.currentPage = ""; + object.disableWebhook = false; + object.analyzeQueryTextSentiment = false; + object.channel = ""; + object.sessionTtl = null; } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + 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.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] === undefined ? message.matchType : $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.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = message.currentPage; + 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.flowVersions && message.flowVersions.length) { + object.flowVersions = []; + for (var j = 0; j < message.flowVersions.length; ++j) + object.flowVersions[j] = message.flowVersions[j]; + } + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = message.channel; + if (message.sessionTtl != null && message.hasOwnProperty("sessionTtl")) + object.sessionTtl = $root.google.protobuf.Duration.toObject(message.sessionTtl, options); return object; }; /** - * Converts this Match to JSON. + * Converts this QueryParameters to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance * @returns {Object.} JSON object */ - Match.prototype.toJSON = function toJSON() { + QueryParameters.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Match + * Gets the default type url for QueryParameters * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Match + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Match.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryParameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Match"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.QueryParameters"; }; - /** - * 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 QueryParameters; })(); - v3.MatchIntentRequest = (function() { + v3.QueryInput = (function() { /** - * Properties of a MatchIntentRequest. + * Properties of a QueryInput. * @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 - * @property {boolean|null} [persistParameterChanges] MatchIntentRequest persistParameterChanges + * @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 */ /** - * Constructs a new MatchIntentRequest. + * Constructs a new QueryInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a MatchIntentRequest. - * @implements IMatchIntentRequest + * @classdesc Represents a QueryInput. + * @implements IQueryInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set */ - function MatchIntentRequest(properties) { + function QueryInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54552,117 +54769,159 @@ } /** - * MatchIntentRequest session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * QueryInput text. + * @member {google.cloud.dialogflow.cx.v3.ITextInput|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ - MatchIntentRequest.prototype.session = ""; + QueryInput.prototype.text = null; /** - * MatchIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * QueryInput intent. + * @member {google.cloud.dialogflow.cx.v3.IIntentInput|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ - MatchIntentRequest.prototype.queryParams = null; + QueryInput.prototype.intent = null; /** - * MatchIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * QueryInput audio. + * @member {google.cloud.dialogflow.cx.v3.IAudioInput|null|undefined} audio + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ - MatchIntentRequest.prototype.queryInput = null; + QueryInput.prototype.audio = null; /** - * MatchIntentRequest persistParameterChanges. - * @member {boolean} persistParameterChanges - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * QueryInput event. + * @member {google.cloud.dialogflow.cx.v3.IEventInput|null|undefined} event + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ - MatchIntentRequest.prototype.persistParameterChanges = false; + QueryInput.prototype.event = null; /** - * Creates a new MatchIntentRequest instance using the specified properties. + * QueryInput dtmf. + * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf + * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @instance + */ + QueryInput.prototype.dtmf = null; + + /** + * QueryInput languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.QueryInput + * @instance + */ + QueryInput.prototype.languageCode = ""; + + // 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.v3.QueryInput + * @instance + */ + Object.defineProperty(QueryInput.prototype, "input", { + get: $util.oneOfGetter($oneOfFields = ["text", "intent", "audio", "event", "dtmf"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QueryInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @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.IQueryInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput instance */ - MatchIntentRequest.create = function create(properties) { - return new MatchIntentRequest(properties); + QueryInput.create = function create(properties) { + return new QueryInput(properties); }; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.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.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest 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 */ - MatchIntentRequest.encode = function encode(message, writer) { + QueryInput.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.persistParameterChanges != null && Object.hasOwnProperty.call(message, "persistParameterChanges")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.persistParameterChanges); + 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 MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.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.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest 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 */ - MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MatchIntentRequest 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.MatchIntentRequest + * @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.MatchIntentRequest} MatchIntentRequest + * @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 */ - MatchIntentRequest.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.MatchIntentRequest(); + 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.session = reader.string(); - break; - } case 2: { - message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); + message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.decode(reader, reader.uint32()); break; } case 3: { - message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); + message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.decode(reader, reader.uint32()); break; } case 5: { - message.persistParameterChanges = reader.bool(); + 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: @@ -54674,163 +54933,240 @@ }; /** - * Decodes a MatchIntentRequest 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.MatchIntentRequest + * @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.MatchIntentRequest} MatchIntentRequest + * @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 */ - MatchIntentRequest.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 MatchIntentRequest message. + * Verifies a QueryInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @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 */ - MatchIntentRequest.verify = function verify(message) { + QueryInput.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; + 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.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); - if (error) - return "queryInput." + 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.persistParameterChanges != null && message.hasOwnProperty("persistParameterChanges")) - if (typeof message.persistParameterChanges !== "boolean") - return "persistParameterChanges: boolean expected"; - return null; - }; - - /** - * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + 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 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.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput */ - MatchIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest) + 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.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.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.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.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.persistParameterChanges != null) - message.persistParameterChanges = Boolean(object.persistParameterChanges); + 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 MatchIntentRequest 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.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3.MatchIntentRequest} message MatchIntentRequest + * @param {google.cloud.dialogflow.cx.v3.QueryInput} message QueryInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MatchIntentRequest.toObject = function toObject(message, options) { + QueryInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.session = ""; - object.queryParams = null; - object.queryInput = null; - object.persistParameterChanges = false; + 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"; } - 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.persistParameterChanges != null && message.hasOwnProperty("persistParameterChanges")) - object.persistParameterChanges = message.persistParameterChanges; return object; }; /** - * Converts this MatchIntentRequest to JSON. + * Converts this QueryInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance * @returns {Object.} JSON object */ - MatchIntentRequest.prototype.toJSON = function toJSON() { + QueryInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MatchIntentRequest + * Gets the default type url for QueryInput * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MatchIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.MatchIntentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.QueryInput"; }; - return MatchIntentRequest; + return QueryInput; })(); - v3.MatchIntentResponse = (function() { + v3.QueryResult = (function() { /** - * Properties of a MatchIntentResponse. + * Properties of a QueryResult. * @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 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 {google.cloud.dialogflow.cx.v3.IDtmfInput|null} [dtmf] QueryResult dtmf + * @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 + * @property {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null} [advancedSettings] QueryResult advancedSettings */ /** - * Constructs a new MatchIntentResponse. + * Constructs a new QueryResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a MatchIntentResponse. - * @implements IMatchIntentResponse + * @classdesc Represents a QueryResult. + * @implements IQueryResult * @constructor - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set */ - function MatchIntentResponse(properties) { - this.matches = []; + 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) @@ -54838,135 +55174,247 @@ } /** - * MatchIntentResponse text. + * QueryResult text. * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - MatchIntentResponse.prototype.text = null; + QueryResult.prototype.text = null; /** - * MatchIntentResponse triggerIntent. + * QueryResult triggerIntent. * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - MatchIntentResponse.prototype.triggerIntent = null; + QueryResult.prototype.triggerIntent = null; /** - * MatchIntentResponse transcript. + * QueryResult transcript. * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - MatchIntentResponse.prototype.transcript = null; + QueryResult.prototype.transcript = null; /** - * MatchIntentResponse triggerEvent. + * QueryResult triggerEvent. * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - MatchIntentResponse.prototype.triggerEvent = null; + QueryResult.prototype.triggerEvent = null; /** - * MatchIntentResponse matches. - * @member {Array.} matches - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * QueryResult dtmf. + * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - MatchIntentResponse.prototype.matches = $util.emptyArray; + QueryResult.prototype.dtmf = null; /** - * MatchIntentResponse currentPage. + * 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.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - MatchIntentResponse.prototype.currentPage = null; + 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; + + /** + * QueryResult advancedSettings. + * @member {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3.QueryResult + * @instance + */ + QueryResult.prototype.advancedSettings = 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 + * QueryResult query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmf"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ - Object.defineProperty(MatchIntentResponse.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), + Object.defineProperty(QueryResult.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent", "dtmf"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new MatchIntentResponse instance using the specified properties. + * Creates a new QueryResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @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.IQueryResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult instance */ - MatchIntentResponse.create = function create(properties) { - return new MatchIntentResponse(properties); + QueryResult.create = function create(properties) { + return new QueryResult(properties); }; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.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.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse 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 */ - MatchIntentResponse.encode = function encode(message, 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 2, wireType 2 =*/18).string(message.triggerIntent); + writer.uint32(/* id 11, wireType 2 =*/90).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(); + 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 6, wireType 2 =*/50).string(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(); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) + $root.google.cloud.dialogflow.cx.v3.DtmfInput.encode(message.dtmf, writer.uint32(/* id 23, wireType 2 =*/186).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 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.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse 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 */ - MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + QueryResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MatchIntentResponse 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.MatchIntentResponse + * @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.MatchIntentResponse} MatchIntentResponse + * @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 */ - MatchIntentResponse.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.MatchIntentResponse(); + 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) { @@ -54974,28 +55422,76 @@ message.text = reader.string(); break; } - case 2: { + case 11: { message.triggerIntent = reader.string(); break; } - case 3: { + case 12: { message.transcript = reader.string(); break; } - case 6: { + case 14: { message.triggerEvent = reader.string(); break; } + case 23: { + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.decode(reader, reader.uint32()); + 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.matches && message.matches.length)) - message.matches = []; - message.matches.push($root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32())); + if (!(message.responseMessages && message.responseMessages.length)) + message.responseMessages = []; + message.responseMessages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); break; } - case 5: { + 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; + } + case 21: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -55005,30 +55501,30 @@ }; /** - * Decodes a MatchIntentResponse 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.MatchIntentResponse + * @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.MatchIntentResponse} MatchIntentResponse + * @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 */ - MatchIntentResponse.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 MatchIntentResponse message. + * Verifies a QueryResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @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 */ - MatchIntentResponse.verify = function verify(message) { + QueryResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -55058,13 +55554,49 @@ 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 (message.dtmf != null && message.hasOwnProperty("dtmf")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.DtmfInput.verify(message.dtmf); if (error) - return "matches." + error; + return "dtmf." + error; + } + } + 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")) { @@ -55072,21 +55604,49 @@ 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.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } return null; }; /** - * Creates a MatchIntentResponse 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.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult */ - MatchIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse) + 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.MatchIntentResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); if (object.text != null) message.text = String(object.text); if (object.triggerIntent != null) @@ -55095,46 +55655,139 @@ 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.dtmf != null) { + if (typeof object.dtmf !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.dtmf: object expected"); + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.fromObject(object.dtmf); + } + 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.MatchIntentResponse.currentPage: object expected"); + 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); + } + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.fromObject(object.advancedSettings); + } return message; }; /** - * Creates a plain object from a MatchIntentResponse 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.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} message MatchIntentResponse + * @param {google.cloud.dialogflow.cx.v3.QueryResult} message QueryResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MatchIntentResponse.toObject = function toObject(message, options) { + QueryResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.matches = []; - if (options.defaults) + 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; + object.advancedSettings = 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.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) @@ -55145,70 +55798,77 @@ 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.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.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.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.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.toObject(message.advancedSettings, options); + if (message.dtmf != null && message.hasOwnProperty("dtmf")) { + object.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.toObject(message.dtmf, options); + if (options.oneofs) + object.query = "dtmf"; + } return object; }; /** - * Converts this MatchIntentResponse to JSON. + * Converts this QueryResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance * @returns {Object.} JSON object */ - MatchIntentResponse.prototype.toJSON = function toJSON() { + QueryResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MatchIntentResponse + * Gets the default type url for QueryResult * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MatchIntentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.MatchIntentResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.QueryResult"; }; - return MatchIntentResponse; + return QueryResult; })(); - v3.FulfillIntentRequest = (function() { + v3.TextInput = (function() { /** - * Properties of a FulfillIntentRequest. + * Properties of a TextInput. * @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 ITextInput + * @property {string|null} [text] TextInput text */ /** - * Constructs a new FulfillIntentRequest. + * Constructs a new TextInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a FulfillIntentRequest. - * @implements IFulfillIntentRequest + * @classdesc Represents a TextInput. + * @implements ITextInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set */ - function FulfillIntentRequest(properties) { + function TextInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55216,103 +55876,75 @@ } /** - * FulfillIntentRequest matchIntentRequest. - * @member {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null|undefined} matchIntentRequest - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest - * @instance - */ - FulfillIntentRequest.prototype.matchIntentRequest = null; - - /** - * FulfillIntentRequest match. - * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest - * @instance - */ - FulfillIntentRequest.prototype.match = null; - - /** - * FulfillIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * TextInput text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @instance */ - FulfillIntentRequest.prototype.outputAudioConfig = null; + TextInput.prototype.text = ""; /** - * Creates a new FulfillIntentRequest instance using the specified properties. + * Creates a new TextInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @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.ITextInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput instance */ - FulfillIntentRequest.create = function create(properties) { - return new FulfillIntentRequest(properties); + TextInput.create = function create(properties) { + return new TextInput(properties); }; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.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.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest 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 */ - FulfillIntentRequest.encode = function encode(message, writer) { + TextInput.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.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); 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 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.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest 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 */ - FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + TextInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentRequest 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.FulfillIntentRequest + * @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.FulfillIntentRequest} FulfillIntentRequest + * @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 */ - FulfillIntentRequest.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.FulfillIntentRequest(); + 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: { - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.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.text = reader.string(); break; } default: @@ -55324,157 +55956,122 @@ }; /** - * Decodes a FulfillIntentRequest 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.FulfillIntentRequest + * @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.FulfillIntentRequest} FulfillIntentRequest + * @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 */ - FulfillIntentRequest.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 FulfillIntentRequest message. + * Verifies a TextInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @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 */ - FulfillIntentRequest.verify = function verify(message) { + TextInput.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; - } - 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.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; return null; }; /** - * Creates a FulfillIntentRequest 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.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput */ - FulfillIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest) + 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.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); - } - 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); - } + 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 FulfillIntentRequest 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.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} message FulfillIntentRequest + * @param {google.cloud.dialogflow.cx.v3.TextInput} message TextInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentRequest.toObject = function toObject(message, options) { + TextInput.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); + if (options.defaults) + object.text = ""; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; return object; }; /** - * Converts this FulfillIntentRequest to JSON. + * Converts this TextInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @instance * @returns {Object.} JSON object */ - FulfillIntentRequest.prototype.toJSON = function toJSON() { + TextInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FulfillIntentRequest + * Gets the default type url for TextInput * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FulfillIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TextInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.FulfillIntentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.TextInput"; }; - return FulfillIntentRequest; + return TextInput; })(); - v3.FulfillIntentResponse = (function() { + v3.IntentInput = (function() { /** - * Properties of a FulfillIntentResponse. + * Properties of an IntentInput. * @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 IIntentInput + * @property {string|null} [intent] IntentInput intent */ /** - * Constructs a new FulfillIntentResponse. + * Constructs a new IntentInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a FulfillIntentResponse. - * @implements IFulfillIntentResponse + * @classdesc Represents an IntentInput. + * @implements IIntentInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set */ - function FulfillIntentResponse(properties) { + function IntentInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55482,117 +56079,75 @@ } /** - * FulfillIntentResponse responseId. - * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse - * @instance - */ - FulfillIntentResponse.prototype.responseId = ""; - - /** - * FulfillIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse - * @instance - */ - FulfillIntentResponse.prototype.queryResult = null; - - /** - * FulfillIntentResponse outputAudio. - * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse - * @instance - */ - FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); - - /** - * FulfillIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * IntentInput intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @instance */ - FulfillIntentResponse.prototype.outputAudioConfig = null; + IntentInput.prototype.intent = ""; /** - * Creates a new FulfillIntentResponse instance using the specified properties. + * Creates a new IntentInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @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.IIntentInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput instance */ - FulfillIntentResponse.create = function create(properties) { - return new FulfillIntentResponse(properties); + IntentInput.create = function create(properties) { + return new IntentInput(properties); }; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.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.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse 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 */ - FulfillIntentResponse.encode = function encode(message, writer) { + IntentInput.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.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); 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 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.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse 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 */ - FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { + IntentInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillIntentResponse 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.FulfillIntentResponse + * @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.FulfillIntentResponse} FulfillIntentResponse + * @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 */ - FulfillIntentResponse.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.FulfillIntentResponse(); + 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.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()); + message.intent = reader.string(); break; } default: @@ -55604,167 +56159,123 @@ }; /** - * Decodes a FulfillIntentResponse 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.FulfillIntentResponse + * @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.FulfillIntentResponse} FulfillIntentResponse + * @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 */ - FulfillIntentResponse.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 FulfillIntentResponse message. + * Verifies an IntentInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @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 */ - FulfillIntentResponse.verify = function verify(message) { + IntentInput.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; - } + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; return null; }; /** - * Creates a FulfillIntentResponse 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.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput */ - FulfillIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse) + 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.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 >= 0) - 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); - } + 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 FulfillIntentResponse 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.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} message FulfillIntentResponse + * @param {google.cloud.dialogflow.cx.v3.IntentInput} message IntentInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillIntentResponse.toObject = function toObject(message, options) { + IntentInput.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); + if (options.defaults) + object.intent = ""; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; return object; }; /** - * Converts this FulfillIntentResponse to JSON. + * Converts this IntentInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @instance * @returns {Object.} JSON object */ - FulfillIntentResponse.prototype.toJSON = function toJSON() { + IntentInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FulfillIntentResponse + * Gets the default type url for IntentInput * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FulfillIntentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + IntentInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.FulfillIntentResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.IntentInput"; }; - return FulfillIntentResponse; + return IntentInput; })(); - v3.SentimentAnalysisResult = (function() { + v3.AudioInput = (function() { /** - * Properties of a SentimentAnalysisResult. + * Properties of an AudioInput. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISentimentAnalysisResult - * @property {number|null} [score] SentimentAnalysisResult score - * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + * @interface IAudioInput + * @property {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null} [config] AudioInput config + * @property {Uint8Array|null} [audio] AudioInput audio */ /** - * Constructs a new SentimentAnalysisResult. + * Constructs a new AudioInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SentimentAnalysisResult. - * @implements ISentimentAnalysisResult + * @classdesc Represents an AudioInput. + * @implements IAudioInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set */ - function SentimentAnalysisResult(properties) { + function AudioInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -55772,89 +56283,89 @@ } /** - * SentimentAnalysisResult score. - * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * AudioInput config. + * @member {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null|undefined} config + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance */ - SentimentAnalysisResult.prototype.score = 0; + AudioInput.prototype.config = null; /** - * SentimentAnalysisResult magnitude. - * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * AudioInput audio. + * @member {Uint8Array} audio + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance */ - SentimentAnalysisResult.prototype.magnitude = 0; + AudioInput.prototype.audio = $util.newBuffer([]); /** - * Creates a new SentimentAnalysisResult instance using the specified properties. + * Creates a new AudioInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @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.IAudioInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput instance */ - SentimentAnalysisResult.create = function create(properties) { - return new SentimentAnalysisResult(properties); + AudioInput.create = function create(properties) { + return new AudioInput(properties); }; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.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.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult 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 */ - SentimentAnalysisResult.encode = function encode(message, writer) { + AudioInput.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.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 SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.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.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult 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 */ - SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { + AudioInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SentimentAnalysisResult 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.SentimentAnalysisResult + * @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.SentimentAnalysisResult} SentimentAnalysisResult + * @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 */ - SentimentAnalysisResult.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.SentimentAnalysisResult(); + 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.score = reader.float(); + message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.decode(reader, reader.uint32()); break; } case 2: { - message.magnitude = reader.float(); + message.audio = reader.bytes(); break; } default: @@ -55866,334 +56377,145 @@ }; /** - * Decodes a SentimentAnalysisResult 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.SentimentAnalysisResult + * @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.SentimentAnalysisResult} SentimentAnalysisResult + * @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 */ - SentimentAnalysisResult.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 SentimentAnalysisResult message. + * Verifies an AudioInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @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 */ - SentimentAnalysisResult.verify = function verify(message) { + AudioInput.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.config != null && message.hasOwnProperty("config")) { + var error = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.verify(message.config); + if (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 SentimentAnalysisResult 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.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput */ - SentimentAnalysisResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult) + 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.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.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 >= 0) + message.audio = object.audio; return message; }; /** - * Creates a plain object from a SentimentAnalysisResult 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.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} message SentimentAnalysisResult + * @param {google.cloud.dialogflow.cx.v3.AudioInput} message AudioInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SentimentAnalysisResult.toObject = function toObject(message, options) { + AudioInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.score = 0; - object.magnitude = 0; + object.config = null; + if (options.bytes === String) + object.audio = ""; + else { + object.audio = []; + if (options.bytes !== Array) + object.audio = $util.newBuffer(object.audio); + } } - 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 (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 SentimentAnalysisResult to JSON. + * Converts this AudioInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance * @returns {Object.} JSON object */ - SentimentAnalysisResult.prototype.toJSON = function toJSON() { + AudioInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SentimentAnalysisResult + * Gets the default type url for AudioInput * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SentimentAnalysisResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudioInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SentimentAnalysisResult"; - }; - - return SentimentAnalysisResult; - })(); - - v3.SessionEntityTypes = (function() { - - /** - * 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); + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.AudioInput"; }; - /** - * 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 - */ - - return SessionEntityTypes; + return AudioInput; })(); - v3.SessionEntityType = (function() { + v3.EventInput = (function() { /** - * Properties of a SessionEntityType. + * Properties of an EventInput. * @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 + * @interface IEventInput + * @property {string|null} [event] EventInput event */ /** - * Constructs a new SessionEntityType. + * Constructs a new EventInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SessionEntityType. - * @implements ISessionEntityType + * @classdesc Represents an EventInput. + * @implements IEventInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set */ - function SessionEntityType(properties) { - this.entities = []; + function EventInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56201,106 +56523,75 @@ } /** - * SessionEntityType name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType - * @instance - */ - SessionEntityType.prototype.name = ""; - - /** - * SessionEntityType entityOverrideMode. - * @member {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode} entityOverrideMode - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType - * @instance - */ - SessionEntityType.prototype.entityOverrideMode = 0; - - /** - * SessionEntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * EventInput event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @instance */ - SessionEntityType.prototype.entities = $util.emptyArray; + EventInput.prototype.event = ""; /** - * Creates a new SessionEntityType instance using the specified properties. + * Creates a new EventInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @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.IEventInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput instance */ - SessionEntityType.create = function create(properties) { - return new SessionEntityType(properties); + EventInput.create = function create(properties) { + return new EventInput(properties); }; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.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.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType 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 */ - SessionEntityType.encode = function encode(message, writer) { + EventInput.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.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.event); 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 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.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType 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 */ - SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { + EventInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SessionEntityType 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.SessionEntityType + * @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.SessionEntityType} SessionEntityType + * @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 */ - SessionEntityType.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.SessionEntityType(); + 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.name = reader.string(); - break; - } - 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())); + message.event = reader.string(); break; } default: @@ -56312,199 +56603,123 @@ }; /** - * Decodes a SessionEntityType 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.SessionEntityType + * @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.SessionEntityType} SessionEntityType + * @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 */ - SessionEntityType.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 SessionEntityType message. + * Verifies an EventInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @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 */ - SessionEntityType.verify = function verify(message) { + EventInput.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.v3.EntityType.Entity.verify(message.entities[i]); - if (error) - return "entities." + error; - } - } + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; return 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput */ - SessionEntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionEntityType) + 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.SessionEntityType(); - if (object.name != null) - message.name = String(object.name); - switch (object.entityOverrideMode) { - default: - if (typeof object.entityOverrideMode === "number") { - message.entityOverrideMode = object.entityOverrideMode; - break; - } - break; - 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]); - } - } + 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 a SessionEntityType 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.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} message SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.EventInput} message EventInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionEntityType.toObject = function toObject(message, options) { + EventInput.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] === undefined ? message.entityOverrideMode : $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 (options.defaults) + object.event = ""; + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; return object; }; /** - * Converts this SessionEntityType to JSON. + * Converts this EventInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @instance * @returns {Object.} JSON object */ - SessionEntityType.prototype.toJSON = function toJSON() { + EventInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SessionEntityType + * Gets the default type url for EventInput * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SessionEntityType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EventInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SessionEntityType"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EventInput"; }; - /** - * 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 EventInput; })(); - v3.ListSessionEntityTypesRequest = (function() { + v3.DtmfInput = (function() { /** - * Properties of a ListSessionEntityTypesRequest. + * Properties of a DtmfInput. * @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 IDtmfInput + * @property {string|null} [digits] DtmfInput digits + * @property {string|null} [finishDigit] DtmfInput finishDigit */ /** - * Constructs a new ListSessionEntityTypesRequest. + * Constructs a new DtmfInput. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSessionEntityTypesRequest. - * @implements IListSessionEntityTypesRequest + * @classdesc Represents a DtmfInput. + * @implements IDtmfInput * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set */ - function ListSessionEntityTypesRequest(properties) { + function DtmfInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56512,103 +56727,89 @@ } /** - * ListSessionEntityTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest - * @instance - */ - ListSessionEntityTypesRequest.prototype.parent = ""; - - /** - * ListSessionEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * DtmfInput digits. + * @member {string} digits + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance */ - ListSessionEntityTypesRequest.prototype.pageSize = 0; + DtmfInput.prototype.digits = ""; /** - * ListSessionEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * DtmfInput finishDigit. + * @member {string} finishDigit + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance */ - ListSessionEntityTypesRequest.prototype.pageToken = ""; + DtmfInput.prototype.finishDigit = ""; /** - * Creates a new ListSessionEntityTypesRequest instance using the specified properties. + * Creates a new DtmfInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @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.IDtmfInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput instance */ - ListSessionEntityTypesRequest.create = function create(properties) { - return new ListSessionEntityTypesRequest(properties); + DtmfInput.create = function create(properties) { + return new DtmfInput(properties); }; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.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.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest 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 */ - ListSessionEntityTypesRequest.encode = function encode(message, writer) { + DtmfInput.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.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 ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.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.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest 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 */ - ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + DtmfInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSessionEntityTypesRequest 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.ListSessionEntityTypesRequest + * @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.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @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 */ - ListSessionEntityTypesRequest.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.ListSessionEntityTypesRequest(); + 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.parent = reader.string(); + message.digits = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.finishDigit = reader.string(); break; } default: @@ -56620,141 +56821,136 @@ }; /** - * Decodes a ListSessionEntityTypesRequest 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.ListSessionEntityTypesRequest + * @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.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @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 */ - ListSessionEntityTypesRequest.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 ListSessionEntityTypesRequest message. + * Verifies a DtmfInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @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 */ - ListSessionEntityTypesRequest.verify = function verify(message) { + DtmfInput.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.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 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput */ - ListSessionEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest) + 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.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.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 ListSessionEntityTypesRequest 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.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3.DtmfInput} message DtmfInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSessionEntityTypesRequest.toObject = function toObject(message, options) { + DtmfInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.digits = ""; + object.finishDigit = ""; } - 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.digits != null && message.hasOwnProperty("digits")) + object.digits = message.digits; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + object.finishDigit = message.finishDigit; return object; }; /** - * Converts this ListSessionEntityTypesRequest to JSON. + * Converts this DtmfInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance * @returns {Object.} JSON object */ - ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { + DtmfInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSessionEntityTypesRequest + * Gets the default type url for DtmfInput * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSessionEntityTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DtmfInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DtmfInput"; }; - return ListSessionEntityTypesRequest; + return DtmfInput; })(); - v3.ListSessionEntityTypesResponse = (function() { + v3.Match = (function() { /** - * Properties of a ListSessionEntityTypesResponse. + * Properties of a Match. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSessionEntityTypesResponse - * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes - * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken + * @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 ListSessionEntityTypesResponse. + * Constructs a new Match. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSessionEntityTypesResponse. - * @implements IListSessionEntityTypesResponse + * @classdesc Represents a Match. + * @implements IMatch * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set */ - function ListSessionEntityTypesResponse(properties) { - this.sessionEntityTypes = []; + function Match(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56762,92 +56958,145 @@ } /** - * ListSessionEntityTypesResponse sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * Match intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; + Match.prototype.intent = null; /** - * ListSessionEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * Match event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ - ListSessionEntityTypesResponse.prototype.nextPageToken = ""; + Match.prototype.event = ""; /** - * Creates a new ListSessionEntityTypesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance + * Match parameters. + * @member {google.protobuf.IStruct|null|undefined} parameters + * @memberof google.cloud.dialogflow.cx.v3.Match + * @instance */ - ListSessionEntityTypesResponse.create = function create(properties) { - return new ListSessionEntityTypesResponse(properties); - }; + Match.prototype.parameters = null; /** - * 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.ListSessionEntityTypesResponse - * @static - * @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 + * Match resolvedInput. + * @member {string} resolvedInput + * @memberof google.cloud.dialogflow.cx.v3.Match + * @instance */ - ListSessionEntityTypesResponse.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); + Match.prototype.resolvedInput = ""; + + /** + * Match matchType. + * @member {google.cloud.dialogflow.cx.v3.Match.MatchType} matchType + * @memberof google.cloud.dialogflow.cx.v3.Match + * @instance + */ + Match.prototype.matchType = 0; + + /** + * Match confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.Match + * @instance + */ + Match.prototype.confidence = 0; + + /** + * Creates a new Match instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Match + * @static + * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Match} Match instance + */ + Match.create = function create(properties) { + return new Match(properties); + }; + + /** + * 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.Match + * @static + * @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 + */ + 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.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 ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.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.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse 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 */ - ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Match.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSessionEntityTypesResponse 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.ListSessionEntityTypesResponse + * @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.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @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 */ - ListSessionEntityTypesResponse.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.ListSessionEntityTypesResponse(); + 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: { - if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) - message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + break; + } + case 6: { + message.event = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + 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: @@ -56859,148 +57108,244 @@ }; /** - * Decodes a ListSessionEntityTypesResponse 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.ListSessionEntityTypesResponse + * @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.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @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 */ - ListSessionEntityTypesResponse.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 ListSessionEntityTypesResponse message. + * Verifies a Match message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @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 */ - ListSessionEntityTypesResponse.verify = function verify(message) { + Match.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.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (error) + return "intent." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + 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; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; return 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.Match} Match */ - ListSessionEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) + 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.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]); + 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.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.resolvedInput != null) + message.resolvedInput = String(object.resolvedInput); + switch (object.matchType) { + default: + if (typeof object.matchType === "number") { + message.matchType = object.matchType; + break; } + break; + 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.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.confidence != null) + message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a ListSessionEntityTypesResponse 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.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.Match} message Match * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSessionEntityTypesResponse.toObject = function toObject(message, options) { + Match.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 (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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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] === undefined ? message.matchType : $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 ListSessionEntityTypesResponse to JSON. + * Converts this Match to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance * @returns {Object.} JSON object */ - ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { + Match.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSessionEntityTypesResponse + * Gets the default type url for Match * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSessionEntityTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Match.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Match"; }; - return ListSessionEntityTypesResponse; + /** + * 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.GetSessionEntityTypeRequest = (function() { + v3.MatchIntentRequest = (function() { /** - * Properties of a GetSessionEntityTypeRequest. + * Properties of a MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetSessionEntityTypeRequest - * @property {string|null} [name] GetSessionEntityTypeRequest name + * @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 + * @property {boolean|null} [persistParameterChanges] MatchIntentRequest persistParameterChanges */ /** - * Constructs a new GetSessionEntityTypeRequest. + * Constructs a new MatchIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetSessionEntityTypeRequest. - * @implements IGetSessionEntityTypeRequest + * @classdesc Represents a MatchIntentRequest. + * @implements IMatchIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set */ - function GetSessionEntityTypeRequest(properties) { + function MatchIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57008,75 +57353,117 @@ } /** - * GetSessionEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * MatchIntentRequest session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ - GetSessionEntityTypeRequest.prototype.name = ""; + MatchIntentRequest.prototype.session = ""; /** - * Creates a new GetSessionEntityTypeRequest instance using the specified properties. + * MatchIntentRequest queryParams. + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @instance + */ + MatchIntentRequest.prototype.queryParams = null; + + /** + * MatchIntentRequest queryInput. + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @instance + */ + MatchIntentRequest.prototype.queryInput = null; + + /** + * MatchIntentRequest persistParameterChanges. + * @member {boolean} persistParameterChanges + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest + * @instance + */ + MatchIntentRequest.prototype.persistParameterChanges = false; + + /** + * Creates a new MatchIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @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.IMatchIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest instance */ - GetSessionEntityTypeRequest.create = function create(properties) { - return new GetSessionEntityTypeRequest(properties); + MatchIntentRequest.create = function create(properties) { + return new MatchIntentRequest(properties); }; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.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.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest 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 */ - GetSessionEntityTypeRequest.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.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.persistParameterChanges != null && Object.hasOwnProperty.call(message, "persistParameterChanges")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.persistParameterChanges); 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 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.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest 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 */ - GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + MatchIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetSessionEntityTypeRequest 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.GetSessionEntityTypeRequest + * @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.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @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 */ - GetSessionEntityTypeRequest.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.GetSessionEntityTypeRequest(); + 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.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 5: { + message.persistParameterChanges = reader.bool(); break; } default: @@ -57088,123 +57475,163 @@ }; /** - * Decodes a GetSessionEntityTypeRequest 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.GetSessionEntityTypeRequest + * @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.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @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 */ - GetSessionEntityTypeRequest.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 GetSessionEntityTypeRequest message. + * Verifies a MatchIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @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 */ - GetSessionEntityTypeRequest.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.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.persistParameterChanges != null && message.hasOwnProperty("persistParameterChanges")) + if (typeof message.persistParameterChanges !== "boolean") + return "persistParameterChanges: boolean expected"; return 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest */ - GetSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest) + 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.GetSessionEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); + 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.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.persistParameterChanges != null) + message.persistParameterChanges = Boolean(object.persistParameterChanges); return message; }; /** - * Creates a plain object from a GetSessionEntityTypeRequest 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.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.MatchIntentRequest} message MatchIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetSessionEntityTypeRequest.toObject = function toObject(message, options) { + MatchIntentRequest.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.session = ""; + object.queryParams = null; + object.queryInput = null; + object.persistParameterChanges = false; + } + 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.persistParameterChanges != null && message.hasOwnProperty("persistParameterChanges")) + object.persistParameterChanges = message.persistParameterChanges; return object; }; /** - * Converts this GetSessionEntityTypeRequest to JSON. + * Converts this MatchIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance * @returns {Object.} JSON object */ - GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + MatchIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetSessionEntityTypeRequest + * Gets the default type url for MatchIntentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetSessionEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MatchIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.MatchIntentRequest"; }; - return GetSessionEntityTypeRequest; + return MatchIntentRequest; })(); - v3.CreateSessionEntityTypeRequest = (function() { + v3.MatchIntentResponse = (function() { /** - * Properties of a CreateSessionEntityTypeRequest. + * Properties of a MatchIntentResponse. * @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 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 CreateSessionEntityTypeRequest. + * Constructs a new MatchIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateSessionEntityTypeRequest. - * @implements ICreateSessionEntityTypeRequest + * @classdesc Represents a MatchIntentResponse. + * @implements IMatchIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set */ - function CreateSessionEntityTypeRequest(properties) { + function MatchIntentResponse(properties) { + this.matches = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57212,89 +57639,162 @@ } /** - * CreateSessionEntityTypeRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * MatchIntentResponse text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - CreateSessionEntityTypeRequest.prototype.parent = ""; + MatchIntentResponse.prototype.text = null; /** - * CreateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * MatchIntentResponse triggerIntent. + * @member {string|null|undefined} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ - CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; + MatchIntentResponse.prototype.triggerIntent = null; /** - * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. + * MatchIntentResponse transcript. + * @member {string|null|undefined} transcript + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.transcript = null; + + /** + * MatchIntentResponse triggerEvent. + * @member {string|null|undefined} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse + * @instance + */ + MatchIntentResponse.prototype.triggerEvent = null; + + /** + * 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.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @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.IMatchIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse instance */ - CreateSessionEntityTypeRequest.create = function create(properties) { - return new CreateSessionEntityTypeRequest(properties); + MatchIntentResponse.create = function create(properties) { + return new MatchIntentResponse(properties); }; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.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.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest 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 */ - CreateSessionEntityTypeRequest.encode = function encode(message, writer) { + MatchIntentResponse.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.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 CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.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.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest 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 */ - CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + MatchIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSessionEntityTypeRequest 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.CreateSessionEntityTypeRequest + * @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.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @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 */ - CreateSessionEntityTypeRequest.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.CreateSessionEntityTypeRequest(); + 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: { - message.parent = reader.string(); + message.text = reader.string(); break; } case 2: { - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); + 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: @@ -57306,137 +57806,210 @@ }; /** - * Decodes a CreateSessionEntityTypeRequest 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.CreateSessionEntityTypeRequest + * @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.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @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 */ - CreateSessionEntityTypeRequest.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 CreateSessionEntityTypeRequest message. + * Verifies a MatchIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @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 */ - CreateSessionEntityTypeRequest.verify = function verify(message) { + MatchIntentResponse.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); + 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 "sessionEntityType." + error; + return "currentPage." + error; } return 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse */ - CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest) + 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.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.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); } return message; }; /** - * Creates a plain object from a CreateSessionEntityTypeRequest 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.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} message MatchIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { + MatchIntentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.sessionEntityType = null; + 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.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; }; /** - * Converts this CreateSessionEntityTypeRequest to JSON. + * Converts this MatchIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance * @returns {Object.} JSON object */ - CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + MatchIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateSessionEntityTypeRequest + * Gets the default type url for MatchIntentResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateSessionEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MatchIntentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.MatchIntentResponse"; }; - return CreateSessionEntityTypeRequest; + return MatchIntentResponse; })(); - v3.UpdateSessionEntityTypeRequest = (function() { + v3.FulfillIntentRequest = (function() { /** - * Properties of an UpdateSessionEntityTypeRequest. + * Properties of a FulfillIntentRequest. * @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 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 UpdateSessionEntityTypeRequest. + * Constructs a new FulfillIntentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateSessionEntityTypeRequest. - * @implements IUpdateSessionEntityTypeRequest + * @classdesc Represents a FulfillIntentRequest. + * @implements IFulfillIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set */ - function UpdateSessionEntityTypeRequest(properties) { + function FulfillIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57444,89 +58017,103 @@ } /** - * UpdateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * FulfillIntentRequest matchIntentRequest. + * @member {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null|undefined} matchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance */ - UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; + FulfillIntentRequest.prototype.matchIntentRequest = null; /** - * UpdateSessionEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * FulfillIntentRequest match. + * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance */ - UpdateSessionEntityTypeRequest.prototype.updateMask = null; + FulfillIntentRequest.prototype.match = null; /** - * Creates a new UpdateSessionEntityTypeRequest 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.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @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.IFulfillIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest instance */ - UpdateSessionEntityTypeRequest.create = function create(properties) { - return new UpdateSessionEntityTypeRequest(properties); + FulfillIntentRequest.create = function create(properties) { + return new FulfillIntentRequest(properties); }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.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.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest 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 */ - UpdateSessionEntityTypeRequest.encode = function encode(message, writer) { + FulfillIntentRequest.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.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 UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.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.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest 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 */ - UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + FulfillIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSessionEntityTypeRequest 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.UpdateSessionEntityTypeRequest + * @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.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @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 */ - UpdateSessionEntityTypeRequest.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.UpdateSessionEntityTypeRequest(); + 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.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.decode(reader, reader.uint32()); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.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: @@ -57538,141 +58125,157 @@ }; /** - * Decodes an UpdateSessionEntityTypeRequest 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.UpdateSessionEntityTypeRequest + * @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.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @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 */ - UpdateSessionEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + FulfillIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateSessionEntityTypeRequest message. + * Verifies a FulfillIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @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 */ - UpdateSessionEntityTypeRequest.verify = function verify(message) { + FulfillIntentRequest.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 (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { + var error = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify(message.matchIntentRequest); if (error) - return "sessionEntityType." + error; + return "matchIntentRequest." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.match != null && message.hasOwnProperty("match")) { + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); if (error) - return "updateMask." + 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 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest */ - UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest) + 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.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); + 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.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.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); + } + 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); } return message; }; /** - * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} message FulfillIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { + FulfillIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.sessionEntityType = null; - object.updateMask = null; + object.matchIntentRequest = null; + object.match = null; + object.outputAudioConfig = 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 (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 UpdateSessionEntityTypeRequest to JSON. + * Converts this FulfillIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance * @returns {Object.} JSON object */ - UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + FulfillIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateSessionEntityTypeRequest + * Gets the default type url for FulfillIntentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateSessionEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FulfillIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.FulfillIntentRequest"; }; - return UpdateSessionEntityTypeRequest; + return FulfillIntentRequest; })(); - v3.DeleteSessionEntityTypeRequest = (function() { + v3.FulfillIntentResponse = (function() { /** - * Properties of a DeleteSessionEntityTypeRequest. + * Properties of a FulfillIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteSessionEntityTypeRequest - * @property {string|null} [name] DeleteSessionEntityTypeRequest name + * @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 */ /** - * Constructs a new DeleteSessionEntityTypeRequest. + * Constructs a new FulfillIntentResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteSessionEntityTypeRequest. - * @implements IDeleteSessionEntityTypeRequest + * @classdesc Represents a FulfillIntentResponse. + * @implements IFulfillIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set */ - function DeleteSessionEntityTypeRequest(properties) { + function FulfillIntentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -57680,75 +58283,117 @@ } /** - * DeleteSessionEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * FulfillIntentResponse responseId. + * @member {string} responseId + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @instance */ - DeleteSessionEntityTypeRequest.prototype.name = ""; + FulfillIntentResponse.prototype.responseId = ""; /** - * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. + * FulfillIntentResponse queryResult. + * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.queryResult = null; + + /** + * FulfillIntentResponse outputAudio. + * @member {Uint8Array} outputAudio + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); + + /** + * FulfillIntentResponse outputAudioConfig. + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse + * @instance + */ + FulfillIntentResponse.prototype.outputAudioConfig = null; + + /** + * Creates a new FulfillIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @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.IFulfillIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse instance */ - DeleteSessionEntityTypeRequest.create = function create(properties) { - return new DeleteSessionEntityTypeRequest(properties); + FulfillIntentResponse.create = function create(properties) { + return new FulfillIntentResponse(properties); }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * 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.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @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 */ - DeleteSessionEntityTypeRequest.encode = function encode(message, writer) { + FulfillIntentResponse.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.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; }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. + * 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.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @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 */ - DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + FulfillIntentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. + * Decodes a FulfillIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @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.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @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 */ - DeleteSessionEntityTypeRequest.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.v3.DeleteSessionEntityTypeRequest(); + 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.name = reader.string(); + 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: @@ -57760,325 +58405,596 @@ }; /** - * Decodes a DeleteSessionEntityTypeRequest 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.v3.DeleteSessionEntityTypeRequest + * @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.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @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 */ - DeleteSessionEntityTypeRequest.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 DeleteSessionEntityTypeRequest message. + * Verifies a FulfillIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @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 */ - DeleteSessionEntityTypeRequest.verify = function verify(message) { + FulfillIntentResponse.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.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 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse */ - DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest) + 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.DeleteSessionEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); + 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 >= 0) + 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; }; /** - * Creates a plain object from a DeleteSessionEntityTypeRequest 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.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} message FulfillIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSessionEntityTypeRequest.toObject = function toObject(message, options) { + FulfillIntentResponse.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.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; }; /** - * Converts this DeleteSessionEntityTypeRequest to JSON. + * Converts this FulfillIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @instance * @returns {Object.} JSON object */ - DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { + FulfillIntentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteSessionEntityTypeRequest + * Gets the default type url for FulfillIntentResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteSessionEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FulfillIntentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.FulfillIntentResponse"; }; - return DeleteSessionEntityTypeRequest; + return FulfillIntentResponse; })(); - v3.TransitionRouteGroups = (function() { + v3.SentimentAnalysisResult = (function() { /** - * Constructs a new TransitionRouteGroups service. + * Properties of a SentimentAnalysisResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionRouteGroups + * @interface ISentimentAnalysisResult + * @property {number|null} [score] SentimentAnalysisResult score + * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + */ + + /** + * Constructs a new SentimentAnalysisResult. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a SentimentAnalysisResult. + * @implements ISentimentAnalysisResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3.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]]; + } + + /** + * SentimentAnalysisResult score. + * @member {number} score + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.score = 0; + + /** + * SentimentAnalysisResult magnitude. + * @member {number} magnitude + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.magnitude = 0; + + /** + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult instance + */ + SentimentAnalysisResult.create = function create(properties) { + return new SentimentAnalysisResult(properties); + }; + + /** + * 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.SentimentAnalysisResult + * @static + * @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 + */ + 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; + }; + + /** + * 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.SentimentAnalysisResult + * @static + * @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 + */ + SentimentAnalysisResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @function decode + * @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.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.v3.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; + } + } + return message; + }; + + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.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.v3.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.v3.SentimentAnalysisResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult + */ + 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.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 SentimentAnalysisResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.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; + }; + + /** + * Converts this SentimentAnalysisResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @instance + * @returns {Object.} JSON object + */ + SentimentAnalysisResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SentimentAnalysisResult + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SentimentAnalysisResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SentimentAnalysisResult"; + }; + + return SentimentAnalysisResult; + })(); + + v3.SessionEntityTypes = (function() { + + /** + * 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 TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { + function SessionEntityTypes(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; + (SessionEntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SessionEntityTypes; /** - * Creates new TransitionRouteGroups service using the specified rpc implementation. + * Creates new SessionEntityTypes service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * @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 {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. + * @returns {SessionEntityTypes} RPC service. Useful where requests and/or responses are streamed. */ - TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { + SessionEntityTypes.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.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.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse */ /** - * Calls ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @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.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(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(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 ListTransitionRouteGroups. - * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls ListSessionEntityTypes. + * @function listSessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @returns {Promise} Promise + * @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.TransitionRouteGroups|getTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef GetTransitionRouteGroupCallback + * 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.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType */ /** - * Calls GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @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.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(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(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 GetTransitionRouteGroup. - * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls GetSessionEntityType. + * @function getSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @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.TransitionRouteGroups|createTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef CreateTransitionRouteGroupCallback + * 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.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType */ /** - * Calls CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @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.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(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(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 CreateTransitionRouteGroup. - * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls CreateSessionEntityType. + * @function createSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @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.TransitionRouteGroups|updateTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef UpdateTransitionRouteGroupCallback + * 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.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType */ /** - * Calls UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @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.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(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(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 UpdateTransitionRouteGroup. - * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls UpdateSessionEntityType. + * @function updateSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @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.TransitionRouteGroups|deleteTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups - * @typedef DeleteTransitionRouteGroupCallback + * 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 DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @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.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(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(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 DeleteTransitionRouteGroup. - * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups + * Calls DeleteSessionEntityType. + * @function deleteSessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object * @returns {Promise} Promise * @variation 2 */ - return TransitionRouteGroups; + return SessionEntityTypes; })(); - v3.TransitionRouteGroup = (function() { + v3.SessionEntityType = (function() { /** - * Properties of a TransitionRouteGroup. + * Properties of a SessionEntityType. * @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 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 TransitionRouteGroup. + * Constructs a new SessionEntityType. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionRouteGroup. - * @implements ITransitionRouteGroup + * @classdesc Represents a SessionEntityType. + * @implements ISessionEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set */ - function TransitionRouteGroup(properties) { - this.transitionRoutes = []; + function SessionEntityType(properties) { + this.entities = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58086,91 +59002,91 @@ } /** - * TransitionRouteGroup name. + * SessionEntityType name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ - TransitionRouteGroup.prototype.name = ""; + SessionEntityType.prototype.name = ""; /** - * TransitionRouteGroup displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * SessionEntityType entityOverrideMode. + * @member {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode} entityOverrideMode + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ - TransitionRouteGroup.prototype.displayName = ""; + SessionEntityType.prototype.entityOverrideMode = 0; /** - * TransitionRouteGroup transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * SessionEntityType entities. + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ - TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; + SessionEntityType.prototype.entities = $util.emptyArray; /** - * Creates a new TransitionRouteGroup instance using the specified properties. + * Creates a new SessionEntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @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.ISessionEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType instance */ - TransitionRouteGroup.create = function create(properties) { - return new TransitionRouteGroup(properties); + SessionEntityType.create = function create(properties) { + return new SessionEntityType(properties); }; /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.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.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup 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 */ - TransitionRouteGroup.encode = function encode(message, writer) { + SessionEntityType.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(); + 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 TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.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.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup 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 */ - TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { + SessionEntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRouteGroup 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.TransitionRouteGroup + * @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.TransitionRouteGroup} TransitionRouteGroup + * @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 */ - TransitionRouteGroup.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.TransitionRouteGroup(); + 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) { @@ -58178,14 +59094,14 @@ message.name = reader.string(); break; } - case 2: { - message.displayName = reader.string(); + case 3: { + message.entityOverrideMode = reader.int32(); 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())); + 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: @@ -58197,160 +59113,199 @@ }; /** - * Decodes a TransitionRouteGroup 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.TransitionRouteGroup + * @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.TransitionRouteGroup} TransitionRouteGroup + * @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 */ - TransitionRouteGroup.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 TransitionRouteGroup message. + * Verifies a SessionEntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @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 */ - TransitionRouteGroup.verify = function verify(message) { + 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.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 (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 "transitionRoutes." + error; + return "entities." + error; } } return null; }; /** - * Creates a TransitionRouteGroup 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.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType */ - TransitionRouteGroup.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup) + 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.TransitionRouteGroup(); + var message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); 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]); + switch (object.entityOverrideMode) { + default: + if (typeof object.entityOverrideMode === "number") { + message.entityOverrideMode = object.entityOverrideMode; + break; + } + break; + 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]); } } return message; }; /** - * Creates a plain object from a TransitionRouteGroup 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.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} message TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} message SessionEntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRouteGroup.toObject = function toObject(message, options) { + SessionEntityType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.transitionRoutes = []; + object.entities = []; if (options.defaults) { object.name = ""; - object.displayName = ""; + object.entityOverrideMode = options.enums === String ? "ENTITY_OVERRIDE_MODE_UNSPECIFIED" : 0; } 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.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) + object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] === undefined ? message.entityOverrideMode : $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; }; /** - * Converts this TransitionRouteGroup to JSON. + * Converts this SessionEntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance * @returns {Object.} JSON object */ - TransitionRouteGroup.prototype.toJSON = function toJSON() { + SessionEntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TransitionRouteGroup + * Gets the default type url for SessionEntityType * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TransitionRouteGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SessionEntityType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.TransitionRouteGroup"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SessionEntityType"; }; - return TransitionRouteGroup; + /** + * 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; })(); - v3.ListTransitionRouteGroupsRequest = (function() { + v3.ListSessionEntityTypesRequest = (function() { /** - * Properties of a ListTransitionRouteGroupsRequest. + * Properties of a ListSessionEntityTypesRequest. * @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 IListSessionEntityTypesRequest + * @property {string|null} [parent] ListSessionEntityTypesRequest parent + * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListSessionEntityTypesRequest pageToken */ /** - * Constructs a new ListTransitionRouteGroupsRequest. + * Constructs a new ListSessionEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTransitionRouteGroupsRequest. - * @implements IListTransitionRouteGroupsRequest + * @classdesc Represents a ListSessionEntityTypesRequest. + * @implements IListSessionEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set */ - function ListTransitionRouteGroupsRequest(properties) { + function ListSessionEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58358,59 +59313,51 @@ } /** - * ListTransitionRouteGroupsRequest parent. + * ListSessionEntityTypesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance */ - ListTransitionRouteGroupsRequest.prototype.parent = ""; + ListSessionEntityTypesRequest.prototype.parent = ""; /** - * ListTransitionRouteGroupsRequest pageSize. + * ListSessionEntityTypesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance */ - ListTransitionRouteGroupsRequest.prototype.pageSize = 0; + ListSessionEntityTypesRequest.prototype.pageSize = 0; /** - * ListTransitionRouteGroupsRequest pageToken. + * ListSessionEntityTypesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest - * @instance - */ - ListTransitionRouteGroupsRequest.prototype.pageToken = ""; - - /** - * ListTransitionRouteGroupsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance */ - ListTransitionRouteGroupsRequest.prototype.languageCode = ""; + ListSessionEntityTypesRequest.prototype.pageToken = ""; /** - * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @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.IListSessionEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance */ - ListTransitionRouteGroupsRequest.create = function create(properties) { - return new ListTransitionRouteGroupsRequest(properties); + ListSessionEntityTypesRequest.create = function create(properties) { + return new ListSessionEntityTypesRequest(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * 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.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @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 */ - ListTransitionRouteGroupsRequest.encode = function encode(message, writer) { + ListSessionEntityTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -58419,39 +59366,37 @@ 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 ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. + * 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.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @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 */ - ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSessionEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @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.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @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 */ - ListTransitionRouteGroupsRequest.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.v3.ListTransitionRouteGroupsRequest(); + 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) { @@ -58467,10 +59412,6 @@ message.pageToken = reader.string(); break; } - case 4: { - message.languageCode = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -58480,30 +59421,30 @@ }; /** - * Decodes a ListTransitionRouteGroupsRequest 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.v3.ListTransitionRouteGroupsRequest + * @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.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @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 */ - ListTransitionRouteGroupsRequest.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 ListTransitionRouteGroupsRequest message. + * Verifies a ListSessionEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @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 */ - ListTransitionRouteGroupsRequest.verify = function verify(message) { + ListSessionEntityTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -58515,45 +59456,40 @@ 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 ListTransitionRouteGroupsRequest 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.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest */ - ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest) + 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.ListTransitionRouteGroupsRequest(); + 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); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a ListTransitionRouteGroupsRequest 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.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTransitionRouteGroupsRequest.toObject = function toObject(message, options) { + ListSessionEntityTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -58561,7 +59497,6 @@ object.parent = ""; object.pageSize = 0; object.pageToken = ""; - object.languageCode = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -58569,60 +59504,58 @@ 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 ListTransitionRouteGroupsRequest to JSON. + * Converts this ListSessionEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance * @returns {Object.} JSON object */ - ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { + ListSessionEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTransitionRouteGroupsRequest + * Gets the default type url for ListSessionEntityTypesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTransitionRouteGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSessionEntityTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest"; }; - return ListTransitionRouteGroupsRequest; + return ListSessionEntityTypesRequest; })(); - v3.ListTransitionRouteGroupsResponse = (function() { + v3.ListSessionEntityTypesResponse = (function() { /** - * Properties of a ListTransitionRouteGroupsResponse. + * Properties of a ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListTransitionRouteGroupsResponse - * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups - * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken + * @interface IListSessionEntityTypesResponse + * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes + * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken */ /** - * Constructs a new ListTransitionRouteGroupsResponse. + * Constructs a new ListSessionEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListTransitionRouteGroupsResponse. - * @implements IListTransitionRouteGroupsResponse + * @classdesc Represents a ListSessionEntityTypesResponse. + * @implements IListSessionEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set */ - function ListTransitionRouteGroupsResponse(properties) { - this.transitionRouteGroups = []; + function ListSessionEntityTypesResponse(properties) { + this.sessionEntityTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58630,88 +59563,88 @@ } /** - * ListTransitionRouteGroupsResponse transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * ListSessionEntityTypesResponse sessionEntityTypes. + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance */ - ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; + ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; /** - * ListTransitionRouteGroupsResponse nextPageToken. + * ListSessionEntityTypesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance */ - ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; + ListSessionEntityTypesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. + * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @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.IListSessionEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance */ - ListTransitionRouteGroupsResponse.create = function create(properties) { - return new ListTransitionRouteGroupsResponse(properties); + ListSessionEntityTypesResponse.create = function create(properties) { + return new ListSessionEntityTypesResponse(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.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.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse 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 */ - ListTransitionRouteGroupsResponse.encode = function encode(message, writer) { + ListSessionEntityTypesResponse.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.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 ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.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.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse 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 */ - ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListSessionEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTransitionRouteGroupsResponse 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.ListTransitionRouteGroupsResponse + * @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.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @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 */ - ListTransitionRouteGroupsResponse.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.ListTransitionRouteGroupsResponse(); + 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.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.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: { @@ -58727,39 +59660,39 @@ }; /** - * Decodes a ListTransitionRouteGroupsResponse 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.ListTransitionRouteGroupsResponse + * @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.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @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 */ - ListTransitionRouteGroupsResponse.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 ListTransitionRouteGroupsResponse message. + * Verifies a ListSessionEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @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 */ - ListTransitionRouteGroupsResponse.verify = function verify(message) { + ListSessionEntityTypesResponse.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 (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 "transitionRouteGroups." + error; + return "sessionEntityTypes." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -58769,25 +59702,25 @@ }; /** - * Creates a ListTransitionRouteGroupsResponse 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.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse */ - ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) + 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.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]); + 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) @@ -58796,26 +59729,26 @@ }; /** - * Creates a plain object from a ListTransitionRouteGroupsResponse 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.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTransitionRouteGroupsResponse.toObject = function toObject(message, options) { + ListSessionEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.transitionRouteGroups = []; + object.sessionEntityTypes = []; 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.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; @@ -58823,53 +59756,52 @@ }; /** - * Converts this ListTransitionRouteGroupsResponse to JSON. + * Converts this ListSessionEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance * @returns {Object.} JSON object */ - ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { + ListSessionEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTransitionRouteGroupsResponse + * Gets the default type url for ListSessionEntityTypesResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTransitionRouteGroupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSessionEntityTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse"; }; - return ListTransitionRouteGroupsResponse; + return ListSessionEntityTypesResponse; })(); - v3.GetTransitionRouteGroupRequest = (function() { + v3.GetSessionEntityTypeRequest = (function() { /** - * Properties of a GetTransitionRouteGroupRequest. + * Properties of a GetSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetTransitionRouteGroupRequest - * @property {string|null} [name] GetTransitionRouteGroupRequest name - * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode + * @interface IGetSessionEntityTypeRequest + * @property {string|null} [name] GetSessionEntityTypeRequest name */ /** - * Constructs a new GetTransitionRouteGroupRequest. + * Constructs a new GetSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetTransitionRouteGroupRequest. - * @implements IGetTransitionRouteGroupRequest + * @classdesc Represents a GetSessionEntityTypeRequest. + * @implements IGetSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set */ - function GetTransitionRouteGroupRequest(properties) { + function GetSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -58877,80 +59809,70 @@ } /** - * GetTransitionRouteGroupRequest name. + * GetSessionEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest - * @instance - */ - GetTransitionRouteGroupRequest.prototype.name = ""; - - /** - * GetTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @instance */ - GetTransitionRouteGroupRequest.prototype.languageCode = ""; + GetSessionEntityTypeRequest.prototype.name = ""; /** - * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. + * Creates a new GetSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @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.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance */ - GetTransitionRouteGroupRequest.create = function create(properties) { - return new GetTransitionRouteGroupRequest(properties); + GetSessionEntityTypeRequest.create = function create(properties) { + return new GetSessionEntityTypeRequest(properties); }; /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. + * 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.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @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 */ - GetTransitionRouteGroupRequest.encode = function encode(message, 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); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); 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 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.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @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 */ - GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @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.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @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 */ - GetTransitionRouteGroupRequest.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.v3.GetTransitionRouteGroupRequest(); + 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) { @@ -58958,10 +59880,6 @@ message.name = reader.string(); break; } - case 2: { - message.languageCode = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -58971,133 +59889,123 @@ }; /** - * Decodes a GetTransitionRouteGroupRequest 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.v3.GetTransitionRouteGroupRequest + * @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.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @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 */ - GetTransitionRouteGroupRequest.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 GetTransitionRouteGroupRequest message. + * Verifies a GetSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @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 */ - GetTransitionRouteGroupRequest.verify = function verify(message) { + 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"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a GetTransitionRouteGroupRequest 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.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest */ - GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest) + 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.GetTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); 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 GetTransitionRouteGroupRequest 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.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { + GetSessionEntityTypeRequest.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 GetTransitionRouteGroupRequest to JSON. + * Converts this GetSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + GetSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTransitionRouteGroupRequest + * Gets the default type url for GetSessionEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTransitionRouteGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSessionEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest"; }; - return GetTransitionRouteGroupRequest; + return GetSessionEntityTypeRequest; })(); - v3.CreateTransitionRouteGroupRequest = (function() { + v3.CreateSessionEntityTypeRequest = (function() { /** - * Properties of a CreateTransitionRouteGroupRequest. + * Properties of a CreateSessionEntityTypeRequest. * @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 ICreateSessionEntityTypeRequest + * @property {string|null} [parent] CreateSessionEntityTypeRequest parent + * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType */ /** - * Constructs a new CreateTransitionRouteGroupRequest. + * Constructs a new CreateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateTransitionRouteGroupRequest. - * @implements ICreateTransitionRouteGroupRequest + * @classdesc Represents a CreateSessionEntityTypeRequest. + * @implements ICreateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set */ - function CreateTransitionRouteGroupRequest(properties) { + function CreateSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59105,90 +60013,80 @@ } /** - * CreateTransitionRouteGroupRequest parent. + * CreateSessionEntityTypeRequest 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.CreateSessionEntityTypeRequest * @instance */ - CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; + CreateSessionEntityTypeRequest.prototype.parent = ""; /** - * CreateTransitionRouteGroupRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * CreateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @instance */ - CreateTransitionRouteGroupRequest.prototype.languageCode = ""; + CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; /** - * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @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.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance */ - CreateTransitionRouteGroupRequest.create = function create(properties) { - return new CreateTransitionRouteGroupRequest(properties); + CreateSessionEntityTypeRequest.create = function create(properties) { + return new CreateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. + * 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.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @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 */ - CreateTransitionRouteGroupRequest.encode = function encode(message, 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.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.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; }; /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. + * 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.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @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 */ - CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @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.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @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 */ - CreateTransitionRouteGroupRequest.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.v3.CreateTransitionRouteGroupRequest(); + 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) { @@ -59197,11 +60095,7 @@ break; } case 2: { - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); - break; - } - case 3: { - message.languageCode = reader.string(); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); break; } default: @@ -59213,146 +60107,137 @@ }; /** - * Decodes a CreateTransitionRouteGroupRequest 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.v3.CreateTransitionRouteGroupRequest + * @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.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @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 */ - CreateTransitionRouteGroupRequest.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 CreateTransitionRouteGroupRequest message. + * Verifies a CreateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @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 */ - CreateTransitionRouteGroupRequest.verify = function verify(message) { + 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.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); + if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); if (error) - return "transitionRouteGroup." + error; + return "sessionEntityType." + 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 CreateSessionEntityTypeRequest 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.CreateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest */ - CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest) + 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.CreateTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); 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.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); } - 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 CreateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTransitionRouteGroupRequest.toObject = function toObject(message, options) { + CreateSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.transitionRouteGroup = null; - object.languageCode = ""; + object.sessionEntityType = 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.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); return object; }; /** - * Converts this CreateTransitionRouteGroupRequest to JSON. + * Converts this CreateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + CreateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateTransitionRouteGroupRequest + * Gets the default type url for CreateSessionEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateTransitionRouteGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateSessionEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest"; }; - return CreateTransitionRouteGroupRequest; + return CreateSessionEntityTypeRequest; })(); - v3.UpdateTransitionRouteGroupRequest = (function() { + v3.UpdateSessionEntityTypeRequest = (function() { /** - * Properties of an UpdateTransitionRouteGroupRequest. + * Properties of an UpdateSessionEntityTypeRequest. * @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 IUpdateSessionEntityTypeRequest + * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask */ /** - * Constructs a new UpdateTransitionRouteGroupRequest. + * Constructs a new UpdateSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateTransitionRouteGroupRequest. - * @implements IUpdateTransitionRouteGroupRequest + * @classdesc Represents an UpdateSessionEntityTypeRequest. + * @implements IUpdateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set */ - function UpdateTransitionRouteGroupRequest(properties) { + function UpdateSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59360,105 +60245,91 @@ } /** - * UpdateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * UpdateSessionEntityTypeRequest sessionEntityType. + * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance */ - UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; + UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; /** - * UpdateTransitionRouteGroupRequest updateMask. + * UpdateSessionEntityTypeRequest 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 + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance */ - UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; + UpdateSessionEntityTypeRequest.prototype.updateMask = null; /** - * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. + * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @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.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance */ - UpdateTransitionRouteGroupRequest.create = function create(properties) { - return new UpdateTransitionRouteGroupRequest(properties); + UpdateSessionEntityTypeRequest.create = function create(properties) { + return new UpdateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.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.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest 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 */ - UpdateTransitionRouteGroupRequest.encode = function encode(message, writer) { + UpdateSessionEntityTypeRequest.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.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.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); 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 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.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest 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 */ - UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateTransitionRouteGroupRequest 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.UpdateTransitionRouteGroupRequest + * @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.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @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 */ - UpdateTransitionRouteGroupRequest.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.UpdateTransitionRouteGroupRequest(); + 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: { - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); + 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()); break; } - case 3: { - message.languageCode = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -59468,150 +60339,141 @@ }; /** - * Decodes an UpdateTransitionRouteGroupRequest 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.UpdateTransitionRouteGroupRequest + * @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.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @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 */ - UpdateTransitionRouteGroupRequest.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 UpdateTransitionRouteGroupRequest message. + * Verifies an UpdateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @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 */ - UpdateTransitionRouteGroupRequest.verify = function verify(message) { + UpdateSessionEntityTypeRequest.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 (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); if (error) - return "transitionRouteGroup." + 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.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates an UpdateTransitionRouteGroupRequest 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.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest */ - UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest) + 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.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); + 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.UpdateTransitionRouteGroupRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.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 an UpdateTransitionRouteGroupRequest 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.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { + UpdateSessionEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.transitionRouteGroup = null; + object.sessionEntityType = 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.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 (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; return object; }; /** - * Converts this UpdateTransitionRouteGroupRequest to JSON. + * Converts this UpdateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + UpdateSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateTransitionRouteGroupRequest + * Gets the default type url for UpdateSessionEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateTransitionRouteGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateSessionEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest"; }; - return UpdateTransitionRouteGroupRequest; + return UpdateSessionEntityTypeRequest; })(); - v3.DeleteTransitionRouteGroupRequest = (function() { + v3.DeleteSessionEntityTypeRequest = (function() { /** - * Properties of a DeleteTransitionRouteGroupRequest. + * Properties of a DeleteSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteTransitionRouteGroupRequest - * @property {string|null} [name] DeleteTransitionRouteGroupRequest name - * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force + * @interface IDeleteSessionEntityTypeRequest + * @property {string|null} [name] DeleteSessionEntityTypeRequest name */ /** - * Constructs a new DeleteTransitionRouteGroupRequest. + * Constructs a new DeleteSessionEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteTransitionRouteGroupRequest. - * @implements IDeleteTransitionRouteGroupRequest + * @classdesc Represents a DeleteSessionEntityTypeRequest. + * @implements IDeleteSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set */ - function DeleteTransitionRouteGroupRequest(properties) { + function DeleteSessionEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59619,80 +60481,70 @@ } /** - * DeleteTransitionRouteGroupRequest name. + * DeleteSessionEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest - * @instance - */ - DeleteTransitionRouteGroupRequest.prototype.name = ""; - - /** - * DeleteTransitionRouteGroupRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @instance */ - DeleteTransitionRouteGroupRequest.prototype.force = false; + DeleteSessionEntityTypeRequest.prototype.name = ""; /** - * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. + * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @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.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance */ - DeleteTransitionRouteGroupRequest.create = function create(properties) { - return new DeleteTransitionRouteGroupRequest(properties); + DeleteSessionEntityTypeRequest.create = function create(properties) { + return new DeleteSessionEntityTypeRequest(properties); }; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * 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.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode + * @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 */ - DeleteTransitionRouteGroupRequest.encode = function encode(message, 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); - 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.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * 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.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode + * @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 */ - DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSessionEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. + * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @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.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @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 */ - DeleteTransitionRouteGroupRequest.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.v3.DeleteTransitionRouteGroupRequest(); + 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) { @@ -59700,10 +60552,6 @@ message.name = reader.string(); break; } - case 2: { - message.force = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -59713,336 +60561,325 @@ }; /** - * Decodes a DeleteTransitionRouteGroupRequest 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.v3.DeleteTransitionRouteGroupRequest + * @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.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @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 */ - DeleteTransitionRouteGroupRequest.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 DeleteTransitionRouteGroupRequest message. + * Verifies a DeleteSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @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 */ - DeleteTransitionRouteGroupRequest.verify = function verify(message) { + 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"; - 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 DeleteSessionEntityTypeRequest 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.DeleteSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest */ - DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest) + 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.DeleteTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); 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 DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { + DeleteSessionEntityTypeRequest.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 DeleteSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ - DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { + DeleteSessionEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteTransitionRouteGroupRequest + * Gets the default type url for DeleteSessionEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteTransitionRouteGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteSessionEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest"; }; - return DeleteTransitionRouteGroupRequest; + return DeleteSessionEntityTypeRequest; })(); - v3.Webhooks = (function() { + v3.TransitionRouteGroups = (function() { /** - * Constructs a new Webhooks service. + * Constructs a new TransitionRouteGroups service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Webhooks + * @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 Webhooks(rpcImpl, requestDelimited, responseDelimited) { + function TransitionRouteGroups(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (Webhooks.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Webhooks; + (TransitionRouteGroups.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TransitionRouteGroups; /** - * Creates new Webhooks service using the specified rpc implementation. + * Creates new TransitionRouteGroups service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @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 {Webhooks} RPC service. Useful where requests and/or responses are streamed. + * @returns {TransitionRouteGroups} RPC service. Useful where requests and/or responses are streamed. */ - Webhooks.create = function create(rpcImpl, requestDelimited, responseDelimited) { + TransitionRouteGroups.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|listWebhooks}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef ListWebhooksCallback + * 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.ListWebhooksResponse} [response] ListWebhooksResponse + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse */ /** - * Calls ListWebhooks. - * @function listWebhooks - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} request ListWebhooksRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback} callback Node-style callback called with the error, if any, and ListWebhooksResponse + * @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(Webhooks.prototype.listWebhooks = function listWebhooks(request, callback) { - return this.rpcCall(listWebhooks, $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest, $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse, request, callback); - }, "name", { value: "ListWebhooks" }); + 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 ListWebhooks. - * @function listWebhooks - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls ListTransitionRouteGroups. + * @function listTransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} request ListWebhooksRequest message or plain object - * @returns {Promise} Promise + * @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.Webhooks|getWebhook}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef GetWebhookCallback + * 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.Webhook} [response] Webhook + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup */ /** - * Calls GetWebhook. - * @function getWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} request GetWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @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(Webhooks.prototype.getWebhook = function getWebhook(request, callback) { - return this.rpcCall(getWebhook, $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); - }, "name", { value: "GetWebhook" }); + 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" }); /** - * Calls GetWebhook. - * @function getWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls GetTransitionRouteGroup. + * @function getTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} request GetWebhookRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|createWebhook}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef CreateWebhookCallback + * 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.Webhook} [response] Webhook + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup */ /** - * Calls CreateWebhook. - * @function createWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} request CreateWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @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(Webhooks.prototype.createWebhook = function createWebhook(request, callback) { - return this.rpcCall(createWebhook, $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); - }, "name", { value: "CreateWebhook" }); + 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" }); /** - * Calls CreateWebhook. - * @function createWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls CreateTransitionRouteGroup. + * @function createTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} request CreateWebhookRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|updateWebhook}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef UpdateWebhookCallback + * 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.Webhook} [response] Webhook + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup */ /** - * Calls UpdateWebhook. - * @function updateWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @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(Webhooks.prototype.updateWebhook = function updateWebhook(request, callback) { - return this.rpcCall(updateWebhook, $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); - }, "name", { value: "UpdateWebhook" }); + 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" }); /** - * Calls UpdateWebhook. - * @function updateWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls UpdateTransitionRouteGroup. + * @function updateTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|deleteWebhook}. - * @memberof google.cloud.dialogflow.cx.v3.Webhooks - * @typedef DeleteWebhookCallback + * 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 */ /** - * Calls DeleteWebhook. - * @function deleteWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback} callback Node-style callback called with the error, if any, and Empty + * @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(Webhooks.prototype.deleteWebhook = function deleteWebhook(request, callback) { - return this.rpcCall(deleteWebhook, $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteWebhook" }); + 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" }); /** - * Calls DeleteWebhook. - * @function deleteWebhook - * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * Calls DeleteTransitionRouteGroup. + * @function deleteTransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object * @returns {Promise} Promise * @variation 2 */ - return Webhooks; + return TransitionRouteGroups; })(); - v3.Webhook = (function() { + v3.TransitionRouteGroup = (function() { /** - * Properties of a Webhook. + * Properties of a TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IWebhook - * @property {string|null} [name] Webhook name - * @property {string|null} [displayName] Webhook displayName - * @property {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null} [genericWebService] Webhook genericWebService - * @property {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null} [serviceDirectory] Webhook serviceDirectory - * @property {google.protobuf.IDuration|null} [timeout] Webhook timeout - * @property {boolean|null} [disabled] Webhook disabled + * @interface ITransitionRouteGroup + * @property {string|null} [name] TransitionRouteGroup name + * @property {string|null} [displayName] TransitionRouteGroup displayName + * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes */ /** - * Constructs a new Webhook. + * Constructs a new TransitionRouteGroup. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Webhook. - * @implements IWebhook + * @classdesc Represents a TransitionRouteGroup. + * @implements ITransitionRouteGroup * @constructor - * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set */ - function Webhook(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) @@ -60050,134 +60887,91 @@ } /** - * Webhook name. + * TransitionRouteGroup name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ - Webhook.prototype.name = ""; + TransitionRouteGroup.prototype.name = ""; /** - * Webhook displayName. + * TransitionRouteGroup displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - */ - Webhook.prototype.displayName = ""; - - /** - * Webhook genericWebService. - * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - */ - Webhook.prototype.genericWebService = null; - - /** - * Webhook serviceDirectory. - * @member {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null|undefined} serviceDirectory - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - */ - Webhook.prototype.serviceDirectory = null; - - /** - * Webhook timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - */ - Webhook.prototype.timeout = null; - - /** - * Webhook disabled. - * @member {boolean} disabled - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ - Webhook.prototype.disabled = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + TransitionRouteGroup.prototype.displayName = ""; /** - * Webhook webhook. - * @member {"genericWebService"|"serviceDirectory"|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * TransitionRouteGroup transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ - Object.defineProperty(Webhook.prototype, "webhook", { - get: $util.oneOfGetter($oneOfFields = ["genericWebService", "serviceDirectory"]), - set: $util.oneOfSetter($oneOfFields) - }); + TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; /** - * Creates a new Webhook instance using the specified properties. + * Creates a new TransitionRouteGroup instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook instance + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup instance */ - Webhook.create = function create(properties) { - return new Webhook(properties); + TransitionRouteGroup.create = function create(properties) { + return new TransitionRouteGroup(properties); }; /** - * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.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.Webhook + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook 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 */ - Webhook.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.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) - $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.disabled); - if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.serviceDirectory != null && Object.hasOwnProperty.call(message, "serviceDirectory")) - $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.encode(message.serviceDirectory, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + 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 Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.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.Webhook + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook 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 */ - Webhook.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRouteGroup.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Webhook 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.Webhook + * @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.Webhook} Webhook + * @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 */ - Webhook.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.Webhook(); + 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) { @@ -60189,20 +60983,10 @@ message.displayName = reader.string(); break; } - case 4: { - message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); - break; - } - case 7: { - message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.decode(reader, reader.uint32()); - break; - } - case 6: { - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } case 5: { - message.disabled = reader.bool(); + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); break; } default: @@ -60214,1019 +60998,432 @@ }; /** - * Decodes a Webhook 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.Webhook + * @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.Webhook} Webhook + * @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 */ - Webhook.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 Webhook message. + * Verifies a TransitionRouteGroup message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @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 */ - Webhook.verify = function verify(message) { + TransitionRouteGroup.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.genericWebService != null && message.hasOwnProperty("genericWebService")) { - properties.webhook = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify(message.genericWebService); - if (error) - return "genericWebService." + error; - } - } - if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { - if (properties.webhook === 1) - return "webhook: multiple values"; - properties.webhook = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify(message.serviceDirectory); + 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 "serviceDirectory." + error; + return "transitionRoutes." + error; } } - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; return null; }; /** - * Creates a Webhook 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.Webhook + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup */ - Webhook.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook) + 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.Webhook(); + 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.genericWebService != null) { - if (typeof object.genericWebService !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.genericWebService: object expected"); - message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.fromObject(object.genericWebService); - } - if (object.serviceDirectory != null) { - if (typeof object.serviceDirectory !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.serviceDirectory: object expected"); - message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.fromObject(object.serviceDirectory); - } - if (object.timeout != null) { - if (typeof object.timeout !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.timeout: object expected"); - message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); + 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]); + } } - if (object.disabled != null) - message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a Webhook 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.Webhook + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook} message Webhook + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} message TransitionRouteGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Webhook.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.name = ""; object.displayName = ""; - object.disabled = false; - object.timeout = 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.genericWebService != null && message.hasOwnProperty("genericWebService")) { - object.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.toObject(message.genericWebService, options); - if (options.oneofs) - object.webhook = "genericWebService"; - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; - if (message.timeout != null && message.hasOwnProperty("timeout")) - object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); - if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { - object.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.toObject(message.serviceDirectory, options); - if (options.oneofs) - object.webhook = "serviceDirectory"; + 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 Webhook to JSON. + * Converts this TransitionRouteGroup to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance * @returns {Object.} JSON object */ - Webhook.prototype.toJSON = function toJSON() { + TransitionRouteGroup.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Webhook + * Gets the default type url for TransitionRouteGroup * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Webhook.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TransitionRouteGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Webhook"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.TransitionRouteGroup"; }; - Webhook.GenericWebService = (function() { - - /** - * Properties of a GenericWebService. - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @interface IGenericWebService - * @property {string|null} [uri] GenericWebService uri - * @property {string|null} [username] GenericWebService username - * @property {string|null} [password] GenericWebService password - * @property {Object.|null} [requestHeaders] GenericWebService requestHeaders - * @property {Array.|null} [allowedCaCerts] GenericWebService allowedCaCerts - * @property {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType|null} [webhookType] GenericWebService webhookType - * @property {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod|null} [httpMethod] GenericWebService httpMethod - * @property {string|null} [requestBody] GenericWebService requestBody - * @property {Object.|null} [parameterMapping] GenericWebService parameterMapping - */ - - /** - * Constructs a new GenericWebService. - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @classdesc Represents a GenericWebService. - * @implements IGenericWebService - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set - */ - function GenericWebService(properties) { - this.requestHeaders = {}; - this.allowedCaCerts = []; - this.parameterMapping = {}; - 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]]; - } - - /** - * GenericWebService uri. - * @member {string} uri - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.uri = ""; - - /** - * GenericWebService username. - * @member {string} username - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.username = ""; + return TransitionRouteGroup; + })(); - /** - * GenericWebService password. - * @member {string} password - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.password = ""; + v3.ListTransitionRouteGroupsRequest = (function() { - /** - * GenericWebService requestHeaders. - * @member {Object.} requestHeaders - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.requestHeaders = $util.emptyObject; + /** + * Properties of a ListTransitionRouteGroupsRequest. + * @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 + */ - /** - * GenericWebService allowedCaCerts. - * @member {Array.} allowedCaCerts - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.allowedCaCerts = $util.emptyArray; + /** + * Constructs a new ListTransitionRouteGroupsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListTransitionRouteGroupsRequest. + * @implements IListTransitionRouteGroupsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set + */ + function ListTransitionRouteGroupsRequest(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]]; + } - /** - * GenericWebService webhookType. - * @member {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType} webhookType - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.webhookType = 0; + /** + * ListTransitionRouteGroupsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @instance + */ + ListTransitionRouteGroupsRequest.prototype.parent = ""; - /** - * GenericWebService httpMethod. - * @member {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod} httpMethod - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.httpMethod = 0; + /** + * ListTransitionRouteGroupsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @instance + */ + ListTransitionRouteGroupsRequest.prototype.pageSize = 0; - /** - * GenericWebService requestBody. - * @member {string} requestBody - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.requestBody = ""; + /** + * ListTransitionRouteGroupsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @instance + */ + ListTransitionRouteGroupsRequest.prototype.pageToken = ""; - /** - * GenericWebService parameterMapping. - * @member {Object.} parameterMapping - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - */ - GenericWebService.prototype.parameterMapping = $util.emptyObject; + /** + * ListTransitionRouteGroupsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @instance + */ + ListTransitionRouteGroupsRequest.prototype.languageCode = ""; - /** - * Creates a new GenericWebService instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService instance - */ - GenericWebService.create = function create(properties) { - return new GenericWebService(properties); - }; + /** + * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance + */ + ListTransitionRouteGroupsRequest.create = function create(properties) { + return new ListTransitionRouteGroupsRequest(properties); + }; - /** - * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService} message GenericWebService message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenericWebService.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); - if (message.requestHeaders != null && Object.hasOwnProperty.call(message, "requestHeaders")) - for (var keys = Object.keys(message.requestHeaders), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.requestHeaders[keys[i]]).ldelim(); - if (message.allowedCaCerts != null && message.allowedCaCerts.length) - for (var i = 0; i < message.allowedCaCerts.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.allowedCaCerts[i]); - if (message.webhookType != null && Object.hasOwnProperty.call(message, "webhookType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.webhookType); - if (message.httpMethod != null && Object.hasOwnProperty.call(message, "httpMethod")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.httpMethod); - if (message.requestBody != null && Object.hasOwnProperty.call(message, "requestBody")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.requestBody); - if (message.parameterMapping != null && Object.hasOwnProperty.call(message, "parameterMapping")) - for (var keys = Object.keys(message.parameterMapping), i = 0; i < keys.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.parameterMapping[keys[i]]).ldelim(); - return writer; - }; + /** + * 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.ListTransitionRouteGroupsRequest + * @static + * @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 + */ + ListTransitionRouteGroupsRequest.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); + return writer; + }; - /** - * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService} message GenericWebService message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenericWebService.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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.ListTransitionRouteGroupsRequest + * @static + * @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 + */ + ListTransitionRouteGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a GenericWebService message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @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.Webhook.GenericWebService} GenericWebService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenericWebService.decode = function decode(reader, length) { - 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.Webhook.GenericWebService(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.uri = reader.string(); - break; - } - case 2: { - message.username = reader.string(); - break; - } - case 3: { - message.password = reader.string(); - break; - } - case 4: { - if (message.requestHeaders === $util.emptyObject) - message.requestHeaders = {}; - 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.requestHeaders[key] = value; - break; - } - case 5: { - if (!(message.allowedCaCerts && message.allowedCaCerts.length)) - message.allowedCaCerts = []; - message.allowedCaCerts.push(reader.bytes()); - break; - } - case 6: { - message.webhookType = reader.int32(); - break; - } - case 7: { - message.httpMethod = reader.int32(); - break; - } - case 8: { - message.requestBody = reader.string(); - break; - } - case 9: { - if (message.parameterMapping === $util.emptyObject) - message.parameterMapping = {}; - 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.parameterMapping[key] = value; - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. + * @function decode + * @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.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); break; } - } - return message; - }; - - /** - * Decodes a GenericWebService message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenericWebService.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GenericWebService message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenericWebService.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.requestHeaders != null && message.hasOwnProperty("requestHeaders")) { - if (!$util.isObject(message.requestHeaders)) - return "requestHeaders: object expected"; - var key = Object.keys(message.requestHeaders); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.requestHeaders[key[i]])) - return "requestHeaders: string{k:string} expected"; - } - if (message.allowedCaCerts != null && message.hasOwnProperty("allowedCaCerts")) { - if (!Array.isArray(message.allowedCaCerts)) - return "allowedCaCerts: array expected"; - for (var i = 0; i < message.allowedCaCerts.length; ++i) - if (!(message.allowedCaCerts[i] && typeof message.allowedCaCerts[i].length === "number" || $util.isString(message.allowedCaCerts[i]))) - return "allowedCaCerts: buffer[] expected"; - } - if (message.webhookType != null && message.hasOwnProperty("webhookType")) - switch (message.webhookType) { - default: - return "webhookType: enum value expected"; - case 0: - case 1: - case 2: + case 2: { + message.pageSize = reader.int32(); break; } - if (message.httpMethod != null && message.hasOwnProperty("httpMethod")) - switch (message.httpMethod) { - default: - return "httpMethod: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: + case 3: { + message.pageToken = reader.string(); break; } - if (message.requestBody != null && message.hasOwnProperty("requestBody")) - if (!$util.isString(message.requestBody)) - return "requestBody: string expected"; - if (message.parameterMapping != null && message.hasOwnProperty("parameterMapping")) { - if (!$util.isObject(message.parameterMapping)) - return "parameterMapping: object expected"; - var key = Object.keys(message.parameterMapping); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.parameterMapping[key[i]])) - return "parameterMapping: string{k:string} expected"; - } - return null; - }; - - /** - * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService - */ - GenericWebService.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(); - if (object.uri != null) - message.uri = String(object.uri); - if (object.username != null) - message.username = String(object.username); - if (object.password != null) - message.password = String(object.password); - if (object.requestHeaders) { - if (typeof object.requestHeaders !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.requestHeaders: object expected"); - message.requestHeaders = {}; - for (var keys = Object.keys(object.requestHeaders), i = 0; i < keys.length; ++i) - message.requestHeaders[keys[i]] = String(object.requestHeaders[keys[i]]); - } - if (object.allowedCaCerts) { - if (!Array.isArray(object.allowedCaCerts)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.allowedCaCerts: array expected"); - message.allowedCaCerts = []; - for (var i = 0; i < object.allowedCaCerts.length; ++i) - if (typeof object.allowedCaCerts[i] === "string") - $util.base64.decode(object.allowedCaCerts[i], message.allowedCaCerts[i] = $util.newBuffer($util.base64.length(object.allowedCaCerts[i])), 0); - else if (object.allowedCaCerts[i].length >= 0) - message.allowedCaCerts[i] = object.allowedCaCerts[i]; - } - switch (object.webhookType) { - default: - if (typeof object.webhookType === "number") { - message.webhookType = object.webhookType; + case 4: { + message.languageCode = reader.string(); break; } - break; - case "WEBHOOK_TYPE_UNSPECIFIED": - case 0: - message.webhookType = 0; - break; - case "STANDARD": - case 1: - message.webhookType = 1; - break; - case "FLEXIBLE": - case 2: - message.webhookType = 2; - break; - } - switch (object.httpMethod) { default: - if (typeof object.httpMethod === "number") { - message.httpMethod = object.httpMethod; - break; - } - break; - case "HTTP_METHOD_UNSPECIFIED": - case 0: - message.httpMethod = 0; - break; - case "POST": - case 1: - message.httpMethod = 1; - break; - case "GET": - case 2: - message.httpMethod = 2; - break; - case "HEAD": - case 3: - message.httpMethod = 3; - break; - case "PUT": - case 4: - message.httpMethod = 4; - break; - case "DELETE": - case 5: - message.httpMethod = 5; - break; - case "PATCH": - case 6: - message.httpMethod = 6; - break; - case "OPTIONS": - case 7: - message.httpMethod = 7; + reader.skipType(tag & 7); break; } - if (object.requestBody != null) - message.requestBody = String(object.requestBody); - if (object.parameterMapping) { - if (typeof object.parameterMapping !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.parameterMapping: object expected"); - message.parameterMapping = {}; - for (var keys = Object.keys(object.parameterMapping), i = 0; i < keys.length; ++i) - message.parameterMapping[keys[i]] = String(object.parameterMapping[keys[i]]); - } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} message GenericWebService - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenericWebService.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.allowedCaCerts = []; - if (options.objects || options.defaults) { - object.requestHeaders = {}; - object.parameterMapping = {}; - } - if (options.defaults) { - object.uri = ""; - object.username = ""; - object.password = ""; - object.webhookType = options.enums === String ? "WEBHOOK_TYPE_UNSPECIFIED" : 0; - object.httpMethod = options.enums === String ? "HTTP_METHOD_UNSPECIFIED" : 0; - object.requestBody = ""; - } - if (message.uri != null && message.hasOwnProperty("uri")) - object.uri = message.uri; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - var keys2; - if (message.requestHeaders && (keys2 = Object.keys(message.requestHeaders)).length) { - object.requestHeaders = {}; - for (var j = 0; j < keys2.length; ++j) - object.requestHeaders[keys2[j]] = message.requestHeaders[keys2[j]]; - } - if (message.allowedCaCerts && message.allowedCaCerts.length) { - object.allowedCaCerts = []; - for (var j = 0; j < message.allowedCaCerts.length; ++j) - object.allowedCaCerts[j] = options.bytes === String ? $util.base64.encode(message.allowedCaCerts[j], 0, message.allowedCaCerts[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.allowedCaCerts[j]) : message.allowedCaCerts[j]; - } - if (message.webhookType != null && message.hasOwnProperty("webhookType")) - object.webhookType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType[message.webhookType] === undefined ? message.webhookType : $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType[message.webhookType] : message.webhookType; - if (message.httpMethod != null && message.hasOwnProperty("httpMethod")) - object.httpMethod = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod[message.httpMethod] === undefined ? message.httpMethod : $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod[message.httpMethod] : message.httpMethod; - if (message.requestBody != null && message.hasOwnProperty("requestBody")) - object.requestBody = message.requestBody; - if (message.parameterMapping && (keys2 = Object.keys(message.parameterMapping)).length) { - object.parameterMapping = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameterMapping[keys2[j]] = message.parameterMapping[keys2[j]]; - } + /** + * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListTransitionRouteGroupsRequest message. + * @function verify + * @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 + */ + ListTransitionRouteGroupsRequest.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"; + return null; + }; + + /** + * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + */ + 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.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; + }; - /** - * Converts this GenericWebService to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @instance - * @returns {Object.} JSON object - */ - GenericWebService.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListTransitionRouteGroupsRequest.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; + return object; + }; - /** - * Gets the default type url for GenericWebService - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GenericWebService.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Webhook.GenericWebService"; - }; + /** + * Converts this ListTransitionRouteGroupsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @instance + * @returns {Object.} JSON object + */ + ListTransitionRouteGroupsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * WebhookType enum. - * @name google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType - * @enum {number} - * @property {number} WEBHOOK_TYPE_UNSPECIFIED=0 WEBHOOK_TYPE_UNSPECIFIED value - * @property {number} STANDARD=1 STANDARD value - * @property {number} FLEXIBLE=2 FLEXIBLE value - */ - GenericWebService.WebhookType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "WEBHOOK_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "STANDARD"] = 1; - values[valuesById[2] = "FLEXIBLE"] = 2; - return values; - })(); - - /** - * HttpMethod enum. - * @name google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod - * @enum {number} - * @property {number} HTTP_METHOD_UNSPECIFIED=0 HTTP_METHOD_UNSPECIFIED value - * @property {number} POST=1 POST value - * @property {number} GET=2 GET value - * @property {number} HEAD=3 HEAD value - * @property {number} PUT=4 PUT value - * @property {number} DELETE=5 DELETE value - * @property {number} PATCH=6 PATCH value - * @property {number} OPTIONS=7 OPTIONS value - */ - GenericWebService.HttpMethod = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "HTTP_METHOD_UNSPECIFIED"] = 0; - values[valuesById[1] = "POST"] = 1; - values[valuesById[2] = "GET"] = 2; - values[valuesById[3] = "HEAD"] = 3; - values[valuesById[4] = "PUT"] = 4; - values[valuesById[5] = "DELETE"] = 5; - values[valuesById[6] = "PATCH"] = 6; - values[valuesById[7] = "OPTIONS"] = 7; - return values; - })(); - - return GenericWebService; - })(); - - Webhook.ServiceDirectoryConfig = (function() { - - /** - * Properties of a ServiceDirectoryConfig. - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @interface IServiceDirectoryConfig - * @property {string|null} [service] ServiceDirectoryConfig service - * @property {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null} [genericWebService] ServiceDirectoryConfig genericWebService - */ - - /** - * Constructs a new ServiceDirectoryConfig. - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @classdesc Represents a ServiceDirectoryConfig. - * @implements IServiceDirectoryConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig=} [properties] Properties to set - */ - function ServiceDirectoryConfig(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]]; + /** + * Gets the default type url for ListTransitionRouteGroupsRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListTransitionRouteGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest"; + }; - /** - * ServiceDirectoryConfig service. - * @member {string} service - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @instance - */ - ServiceDirectoryConfig.prototype.service = ""; - - /** - * ServiceDirectoryConfig genericWebService. - * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @instance - */ - ServiceDirectoryConfig.prototype.genericWebService = null; - - /** - * Creates a new ServiceDirectoryConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig instance - */ - ServiceDirectoryConfig.create = function create(properties) { - return new ServiceDirectoryConfig(properties); - }; - - /** - * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDirectoryConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.service != null && Object.hasOwnProperty.call(message, "service")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); - if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) - $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDirectoryConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @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.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDirectoryConfig.decode = function decode(reader, length) { - 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.Webhook.ServiceDirectoryConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.service = reader.string(); - break; - } - case 2: { - message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDirectoryConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceDirectoryConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceDirectoryConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.service != null && message.hasOwnProperty("service")) - if (!$util.isString(message.service)) - return "service: string expected"; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify(message.genericWebService); - if (error) - return "genericWebService." + error; - } - return null; - }; - - /** - * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig - */ - ServiceDirectoryConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig(); - if (object.service != null) - message.service = String(object.service); - if (object.genericWebService != null) { - if (typeof object.genericWebService !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.genericWebService: object expected"); - message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.fromObject(object.genericWebService); - } - return message; - }; - - /** - * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} message ServiceDirectoryConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ServiceDirectoryConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.service = ""; - object.genericWebService = null; - } - if (message.service != null && message.hasOwnProperty("service")) - object.service = message.service; - if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) - object.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.toObject(message.genericWebService, options); - return object; - }; - - /** - * Converts this ServiceDirectoryConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @instance - * @returns {Object.} JSON object - */ - ServiceDirectoryConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ServiceDirectoryConfig - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ServiceDirectoryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig"; - }; - - return ServiceDirectoryConfig; - })(); - - return Webhook; + return ListTransitionRouteGroupsRequest; })(); - v3.ListWebhooksRequest = (function() { + v3.ListTransitionRouteGroupsResponse = (function() { /** - * Properties of a ListWebhooksRequest. + * Properties of a ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListWebhooksRequest - * @property {string|null} [parent] ListWebhooksRequest parent - * @property {number|null} [pageSize] ListWebhooksRequest pageSize - * @property {string|null} [pageToken] ListWebhooksRequest pageToken + * @interface IListTransitionRouteGroupsResponse + * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups + * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken */ /** - * Constructs a new ListWebhooksRequest. + * Constructs a new ListTransitionRouteGroupsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListWebhooksRequest. - * @implements IListWebhooksRequest + * @classdesc Represents a ListTransitionRouteGroupsResponse. + * @implements IListTransitionRouteGroupsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set */ - function ListWebhooksRequest(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) @@ -61234,103 +61431,92 @@ } /** - * ListWebhooksRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest - * @instance - */ - ListWebhooksRequest.prototype.parent = ""; - - /** - * ListWebhooksRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * ListTransitionRouteGroupsResponse transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance */ - ListWebhooksRequest.prototype.pageSize = 0; + ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; /** - * ListWebhooksRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * ListTransitionRouteGroupsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance */ - ListWebhooksRequest.prototype.pageToken = ""; + ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListWebhooksRequest instance using the specified properties. + * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance */ - ListWebhooksRequest.create = function create(properties) { - return new ListWebhooksRequest(properties); + ListTransitionRouteGroupsResponse.create = function create(properties) { + return new ListTransitionRouteGroupsResponse(properties); }; /** - * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.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.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest 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 */ - ListWebhooksRequest.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.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 ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.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.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest 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 */ - ListWebhooksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTransitionRouteGroupsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebhooksRequest 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.ListWebhooksRequest + * @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.ListWebhooksRequest} ListWebhooksRequest + * @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 */ - ListWebhooksRequest.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.ListWebhooksRequest(); + 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(); + message.nextPageToken = reader.string(); break; } default: @@ -61342,141 +61528,149 @@ }; /** - * Decodes a ListWebhooksRequest 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.ListWebhooksRequest + * @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.ListWebhooksRequest} ListWebhooksRequest + * @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 */ - ListWebhooksRequest.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 ListWebhooksRequest message. + * Verifies a ListTransitionRouteGroupsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @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 */ - ListWebhooksRequest.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.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 ListWebhooksRequest 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.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse */ - ListWebhooksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest) + 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.ListWebhooksRequest(); - 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.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 ListWebhooksRequest 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.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} message ListWebhooksRequest + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebhooksRequest.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 = ""; + 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListWebhooksRequest to JSON. + * Converts this ListTransitionRouteGroupsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance * @returns {Object.} JSON object */ - ListWebhooksRequest.prototype.toJSON = function toJSON() { + ListTransitionRouteGroupsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListWebhooksRequest + * Gets the default type url for ListTransitionRouteGroupsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListWebhooksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTransitionRouteGroupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListWebhooksRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse"; }; - return ListWebhooksRequest; + return ListTransitionRouteGroupsResponse; })(); - v3.ListWebhooksResponse = (function() { + v3.GetTransitionRouteGroupRequest = (function() { /** - * Properties of a ListWebhooksResponse. + * Properties of a GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListWebhooksResponse - * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks - * @property {string|null} [nextPageToken] ListWebhooksResponse nextPageToken + * @interface IGetTransitionRouteGroupRequest + * @property {string|null} [name] GetTransitionRouteGroupRequest name + * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode */ /** - * Constructs a new ListWebhooksResponse. + * Constructs a new GetTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListWebhooksResponse. - * @implements IListWebhooksResponse + * @classdesc Represents a GetTransitionRouteGroupRequest. + * @implements IGetTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set */ - function ListWebhooksResponse(properties) { - this.webhooks = []; + function GetTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61484,92 +61678,89 @@ } /** - * ListWebhooksResponse webhooks. - * @member {Array.} webhooks - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * GetTransitionRouteGroupRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance */ - ListWebhooksResponse.prototype.webhooks = $util.emptyArray; + GetTransitionRouteGroupRequest.prototype.name = ""; /** - * ListWebhooksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * GetTransitionRouteGroupRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance */ - ListWebhooksResponse.prototype.nextPageToken = ""; + GetTransitionRouteGroupRequest.prototype.languageCode = ""; /** - * Creates a new ListWebhooksResponse instance using the specified properties. + * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse instance + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance */ - ListWebhooksResponse.create = function create(properties) { - return new ListWebhooksResponse(properties); + GetTransitionRouteGroupRequest.create = function create(properties) { + return new GetTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.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.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse 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 */ - ListWebhooksResponse.encode = function encode(message, writer) { + GetTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.webhooks != null && message.webhooks.length) - for (var i = 0; i < message.webhooks.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhooks[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 ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.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.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse 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 */ - ListWebhooksResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebhooksResponse 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.ListWebhooksResponse + * @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.ListWebhooksResponse} ListWebhooksResponse + * @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 */ - ListWebhooksResponse.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.ListWebhooksResponse(); + 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.webhooks && message.webhooks.length)) - message.webhooks = []; - message.webhooks.push($root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.languageCode = reader.string(); break; } default: @@ -61581,148 +61772,133 @@ }; /** - * Decodes a ListWebhooksResponse 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.ListWebhooksResponse + * @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.ListWebhooksResponse} ListWebhooksResponse + * @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 */ - ListWebhooksResponse.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 ListWebhooksResponse message. + * Verifies a GetTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @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 */ - ListWebhooksResponse.verify = function verify(message) { + GetTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.webhooks != null && message.hasOwnProperty("webhooks")) { - if (!Array.isArray(message.webhooks)) - return "webhooks: array expected"; - for (var i = 0; i < message.webhooks.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhooks[i]); - if (error) - return "webhooks." + 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 ListWebhooksResponse 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.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest */ - ListWebhooksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse) + 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.ListWebhooksResponse(); - if (object.webhooks) { - if (!Array.isArray(object.webhooks)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListWebhooksResponse.webhooks: array expected"); - message.webhooks = []; - for (var i = 0; i < object.webhooks.length; ++i) { - if (typeof object.webhooks[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListWebhooksResponse.webhooks: object expected"); - message.webhooks[i] = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhooks[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 ListWebhooksResponse 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.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} message ListWebhooksResponse + * @param {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebhooksResponse.toObject = function toObject(message, options) { + GetTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.webhooks = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.webhooks && message.webhooks.length) { - object.webhooks = []; - for (var j = 0; j < message.webhooks.length; ++j) - object.webhooks[j] = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhooks[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 ListWebhooksResponse to JSON. + * Converts this GetTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - ListWebhooksResponse.prototype.toJSON = function toJSON() { + GetTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListWebhooksResponse + * Gets the default type url for GetTransitionRouteGroupRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListWebhooksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTransitionRouteGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListWebhooksResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest"; }; - return ListWebhooksResponse; + return GetTransitionRouteGroupRequest; })(); - v3.GetWebhookRequest = (function() { + v3.CreateTransitionRouteGroupRequest = (function() { /** - * Properties of a GetWebhookRequest. + * Properties of a CreateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetWebhookRequest - * @property {string|null} [name] GetWebhookRequest name + * @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 GetWebhookRequest. + * Constructs a new CreateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetWebhookRequest. - * @implements IGetWebhookRequest + * @classdesc Represents a CreateTransitionRouteGroupRequest. + * @implements ICreateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set */ - function GetWebhookRequest(properties) { + function CreateTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61730,75 +61906,103 @@ } /** - * GetWebhookRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * CreateTransitionRouteGroupRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance */ - GetWebhookRequest.prototype.name = ""; + CreateTransitionRouteGroupRequest.prototype.parent = ""; /** - * Creates a new GetWebhookRequest instance using the specified properties. + * CreateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest + * @instance + */ + CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; + + /** + * 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.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance */ - GetWebhookRequest.create = function create(properties) { - return new GetWebhookRequest(properties); + CreateTransitionRouteGroupRequest.create = function create(properties) { + return new CreateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.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.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest 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 */ - GetWebhookRequest.encode = function encode(message, writer) { + CreateTransitionRouteGroupRequest.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.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 GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.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.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest 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 */ - GetWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWebhookRequest 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.GetWebhookRequest + * @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.GetWebhookRequest} GetWebhookRequest + * @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 */ - GetWebhookRequest.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.GetWebhookRequest(); + 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.name = reader.string(); + 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(); break; } default: @@ -61810,123 +62014,146 @@ }; /** - * Decodes a GetWebhookRequest 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.GetWebhookRequest + * @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.GetWebhookRequest} GetWebhookRequest + * @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 */ - GetWebhookRequest.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 GetWebhookRequest message. + * Verifies a CreateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @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 */ - GetWebhookRequest.verify = function verify(message) { + CreateTransitionRouteGroupRequest.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.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 GetWebhookRequest 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.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest */ - GetWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest) + 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.GetWebhookRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.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.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 GetWebhookRequest 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.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetWebhookRequest} message GetWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWebhookRequest.toObject = function toObject(message, options) { + CreateTransitionRouteGroupRequest.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.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.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this GetWebhookRequest to JSON. + * Converts this CreateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - GetWebhookRequest.prototype.toJSON = function toJSON() { + CreateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetWebhookRequest + * Gets the default type url for CreateTransitionRouteGroupRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateTransitionRouteGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetWebhookRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest"; }; - return GetWebhookRequest; + return CreateTransitionRouteGroupRequest; })(); - v3.CreateWebhookRequest = (function() { + v3.UpdateTransitionRouteGroupRequest = (function() { /** - * Properties of a CreateWebhookRequest. + * Properties of an UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateWebhookRequest - * @property {string|null} [parent] CreateWebhookRequest parent - * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] CreateWebhookRequest webhook + * @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 CreateWebhookRequest. + * Constructs a new UpdateTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateWebhookRequest. - * @implements ICreateWebhookRequest + * @classdesc Represents an UpdateTransitionRouteGroupRequest. + * @implements IUpdateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set */ - function CreateWebhookRequest(properties) { + function UpdateTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61934,89 +62161,103 @@ } /** - * CreateWebhookRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * UpdateTransitionRouteGroupRequest transitionRouteGroup. + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance */ - CreateWebhookRequest.prototype.parent = ""; + UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; /** - * CreateWebhookRequest webhook. - * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * UpdateTransitionRouteGroupRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance */ - CreateWebhookRequest.prototype.webhook = null; + UpdateTransitionRouteGroupRequest.prototype.updateMask = null; /** - * Creates a new CreateWebhookRequest 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.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance */ - CreateWebhookRequest.create = function create(properties) { - return new CreateWebhookRequest(properties); + UpdateTransitionRouteGroupRequest.create = function create(properties) { + return new UpdateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.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.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest 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 */ - CreateWebhookRequest.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.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, 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 CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.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.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest 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 */ - CreateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateWebhookRequest 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.CreateWebhookRequest + * @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.CreateWebhookRequest} CreateWebhookRequest + * @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 */ - CreateWebhookRequest.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.CreateWebhookRequest(); + 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.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.languageCode = reader.string(); break; } default: @@ -62028,374 +62269,150 @@ }; /** - * Decodes a CreateWebhookRequest 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.CreateWebhookRequest + * @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.CreateWebhookRequest} CreateWebhookRequest + * @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 */ - CreateWebhookRequest.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 CreateWebhookRequest message. + * Verifies an UpdateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @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 */ - CreateWebhookRequest.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.webhook != null && message.hasOwnProperty("webhook")) { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); + if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); if (error) - return "webhook." + 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 CreateWebhookRequest 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.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest */ - CreateWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest) + 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.CreateWebhookRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.webhook != null) { - if (typeof object.webhook !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateWebhookRequest.webhook: object expected"); - message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhook); - } - return message; - }; - - /** - * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} message CreateWebhookRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateWebhookRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.webhook = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhook, options); - return object; - }; - - /** - * Converts this CreateWebhookRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest - * @instance - * @returns {Object.} JSON object - */ - CreateWebhookRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CreateWebhookRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CreateWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateWebhookRequest"; - }; - - return CreateWebhookRequest; - })(); - - v3.UpdateWebhookRequest = (function() { - - /** - * Properties of an UpdateWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateWebhookRequest - * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] UpdateWebhookRequest webhook - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebhookRequest updateMask - */ - - /** - * Constructs a new UpdateWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateWebhookRequest. - * @implements IUpdateWebhookRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set - */ - function UpdateWebhookRequest(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]]; - } - - /** - * UpdateWebhookRequest webhook. - * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest - * @instance - */ - UpdateWebhookRequest.prototype.webhook = null; - - /** - * UpdateWebhookRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest - * @instance - */ - UpdateWebhookRequest.prototype.updateMask = null; - - /** - * Creates a new UpdateWebhookRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest instance - */ - UpdateWebhookRequest.create = function create(properties) { - return new UpdateWebhookRequest(properties); - }; - - /** - * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateWebhookRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, 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 UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest - * @static - * @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.UpdateWebhookRequest} UpdateWebhookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateWebhookRequest.decode = function decode(reader, length) { - 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.UpdateWebhookRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.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 UpdateWebhookRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UpdateWebhookRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateWebhookRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.webhook != null && message.hasOwnProperty("webhook")) { - var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); - if (error) - return "webhook." + 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 UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest - */ - UpdateWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest(); - if (object.webhook != null) { - if (typeof object.webhook !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.webhook: object expected"); - message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhook); + 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.UpdateWebhookRequest.updateMask: object expected"); + 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 an UpdateWebhookRequest 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.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} message UpdateWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateWebhookRequest.toObject = function toObject(message, options) { + UpdateTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.webhook = null; + object.transitionRouteGroup = null; object.updateMask = null; + object.languageCode = ""; } - if (message.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhook, 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 UpdateWebhookRequest to JSON. + * Converts this UpdateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - UpdateWebhookRequest.prototype.toJSON = function toJSON() { + UpdateTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateWebhookRequest + * Gets the default type url for UpdateTransitionRouteGroupRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateTransitionRouteGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateWebhookRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest"; }; - return UpdateWebhookRequest; + return UpdateTransitionRouteGroupRequest; })(); - v3.DeleteWebhookRequest = (function() { + v3.DeleteTransitionRouteGroupRequest = (function() { /** - * Properties of a DeleteWebhookRequest. + * Properties of a DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteWebhookRequest - * @property {string|null} [name] DeleteWebhookRequest name - * @property {boolean|null} [force] DeleteWebhookRequest force + * @interface IDeleteTransitionRouteGroupRequest + * @property {string|null} [name] DeleteTransitionRouteGroupRequest name + * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force */ /** - * Constructs a new DeleteWebhookRequest. + * Constructs a new DeleteTransitionRouteGroupRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteWebhookRequest. - * @implements IDeleteWebhookRequest + * @classdesc Represents a DeleteTransitionRouteGroupRequest. + * @implements IDeleteTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set */ - function DeleteWebhookRequest(properties) { + function DeleteTransitionRouteGroupRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62403,43 +62420,43 @@ } /** - * DeleteWebhookRequest name. + * DeleteTransitionRouteGroupRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance */ - DeleteWebhookRequest.prototype.name = ""; + DeleteTransitionRouteGroupRequest.prototype.name = ""; /** - * DeleteWebhookRequest force. + * DeleteTransitionRouteGroupRequest force. * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance */ - DeleteWebhookRequest.prototype.force = false; + DeleteTransitionRouteGroupRequest.prototype.force = false; /** - * Creates a new DeleteWebhookRequest instance using the specified properties. + * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance */ - DeleteWebhookRequest.create = function create(properties) { - return new DeleteWebhookRequest(properties); + DeleteTransitionRouteGroupRequest.create = function create(properties) { + return new DeleteTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.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.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest 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 */ - DeleteWebhookRequest.encode = function encode(message, writer) { + DeleteTransitionRouteGroupRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -62450,33 +62467,33 @@ }; /** - * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.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.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest 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 */ - DeleteWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTransitionRouteGroupRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteWebhookRequest 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.DeleteWebhookRequest + * @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.DeleteWebhookRequest} DeleteWebhookRequest + * @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 */ - DeleteWebhookRequest.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.DeleteWebhookRequest(); + 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) { @@ -62497,30 +62514,30 @@ }; /** - * Decodes a DeleteWebhookRequest 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.DeleteWebhookRequest + * @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.DeleteWebhookRequest} DeleteWebhookRequest + * @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 */ - DeleteWebhookRequest.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 DeleteWebhookRequest message. + * Verifies a DeleteTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @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 */ - DeleteWebhookRequest.verify = function verify(message) { + DeleteTransitionRouteGroupRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -62533,17 +62550,17 @@ }; /** - * Creates a DeleteWebhookRequest 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.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest */ - DeleteWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest) + 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.DeleteWebhookRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); if (object.name != null) message.name = String(object.name); if (object.force != null) @@ -62552,15 +62569,15 @@ }; /** - * Creates a plain object from a DeleteWebhookRequest 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.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} message DeleteWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteWebhookRequest.toObject = function toObject(message, options) { + DeleteTransitionRouteGroupRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -62576,341 +62593,417 @@ }; /** - * Converts this DeleteWebhookRequest to JSON. + * Converts this DeleteTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ - DeleteWebhookRequest.prototype.toJSON = function toJSON() { + DeleteTransitionRouteGroupRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteWebhookRequest + * Gets the default type url for DeleteTransitionRouteGroupRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteTransitionRouteGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteWebhookRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest"; }; - return DeleteWebhookRequest; + return DeleteTransitionRouteGroupRequest; })(); - v3.WebhookRequest = (function() { + v3.Webhooks = (function() { /** - * Properties of a WebhookRequest. + * Constructs a new Webhooks service. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IWebhookRequest - * @property {string|null} [detectIntentResponseId] WebhookRequest detectIntentResponseId - * @property {string|null} [text] WebhookRequest text - * @property {string|null} [triggerIntent] WebhookRequest triggerIntent - * @property {string|null} [transcript] WebhookRequest transcript - * @property {string|null} [triggerEvent] WebhookRequest triggerEvent - * @property {string|null} [dtmfDigits] WebhookRequest dtmfDigits - * @property {string|null} [languageCode] WebhookRequest languageCode - * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null} [fulfillmentInfo] WebhookRequest fulfillmentInfo - * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null} [intentInfo] WebhookRequest intentInfo - * @property {google.cloud.dialogflow.cx.v3.IPageInfo|null} [pageInfo] WebhookRequest pageInfo - * @property {google.cloud.dialogflow.cx.v3.ISessionInfo|null} [sessionInfo] WebhookRequest sessionInfo - * @property {Array.|null} [messages] WebhookRequest messages - * @property {google.protobuf.IStruct|null} [payload] WebhookRequest payload - * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null} [sentimentAnalysisResult] WebhookRequest sentimentAnalysisResult + * @classdesc Represents a Webhooks + * @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 Webhooks(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Webhooks.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Webhooks; /** - * Constructs a new WebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a WebhookRequest. - * @implements IWebhookRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set + * Creates new Webhooks service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @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 {Webhooks} RPC service. Useful where requests and/or responses are streamed. */ - function WebhookRequest(properties) { - this.messages = []; - 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]]; - } + Webhooks.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * WebhookRequest detectIntentResponseId. - * @member {string} detectIntentResponseId - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|listWebhooks}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef ListWebhooksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} [response] ListWebhooksResponse + */ + + /** + * Calls ListWebhooks. + * @function listWebhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} request ListWebhooksRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback} callback Node-style callback called with the error, if any, and ListWebhooksResponse + * @returns {undefined} + * @variation 1 */ - WebhookRequest.prototype.detectIntentResponseId = ""; + Object.defineProperty(Webhooks.prototype.listWebhooks = function listWebhooks(request, callback) { + return this.rpcCall(listWebhooks, $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest, $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse, request, callback); + }, "name", { value: "ListWebhooks" }); /** - * WebhookRequest text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Calls ListWebhooks. + * @function listWebhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} request ListWebhooksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - WebhookRequest.prototype.text = null; /** - * WebhookRequest triggerIntent. - * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|getWebhook}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef GetWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook + */ + + /** + * Calls GetWebhook. + * @function getWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} request GetWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @returns {undefined} + * @variation 1 */ - WebhookRequest.prototype.triggerIntent = null; + Object.defineProperty(Webhooks.prototype.getWebhook = function getWebhook(request, callback) { + return this.rpcCall(getWebhook, $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); + }, "name", { value: "GetWebhook" }); /** - * WebhookRequest transcript. - * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Calls GetWebhook. + * @function getWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} request GetWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - WebhookRequest.prototype.transcript = null; /** - * WebhookRequest triggerEvent. - * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|createWebhook}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef CreateWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook + */ + + /** + * Calls CreateWebhook. + * @function createWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} request CreateWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @returns {undefined} + * @variation 1 */ - WebhookRequest.prototype.triggerEvent = null; + Object.defineProperty(Webhooks.prototype.createWebhook = function createWebhook(request, callback) { + return this.rpcCall(createWebhook, $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); + }, "name", { value: "CreateWebhook" }); /** - * WebhookRequest dtmfDigits. - * @member {string|null|undefined} dtmfDigits - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Calls CreateWebhook. + * @function createWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} request CreateWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - WebhookRequest.prototype.dtmfDigits = null; /** - * WebhookRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|updateWebhook}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef UpdateWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook + */ + + /** + * Calls UpdateWebhook. + * @function updateWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @returns {undefined} + * @variation 1 */ - WebhookRequest.prototype.languageCode = ""; + Object.defineProperty(Webhooks.prototype.updateWebhook = function updateWebhook(request, callback) { + return this.rpcCall(updateWebhook, $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, $root.google.cloud.dialogflow.cx.v3.Webhook, request, callback); + }, "name", { value: "UpdateWebhook" }); /** - * WebhookRequest fulfillmentInfo. - * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Calls UpdateWebhook. + * @function updateWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - WebhookRequest.prototype.fulfillmentInfo = null; /** - * WebhookRequest intentInfo. - * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null|undefined} intentInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks|deleteWebhook}. + * @memberof google.cloud.dialogflow.cx.v3.Webhooks + * @typedef DeleteWebhookCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteWebhook. + * @function deleteWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - WebhookRequest.prototype.intentInfo = null; + Object.defineProperty(Webhooks.prototype.deleteWebhook = function deleteWebhook(request, callback) { + return this.rpcCall(deleteWebhook, $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteWebhook" }); /** - * WebhookRequest pageInfo. - * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Calls DeleteWebhook. + * @function deleteWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - WebhookRequest.prototype.pageInfo = null; + + return Webhooks; + })(); + + v3.Webhook = (function() { /** - * WebhookRequest sessionInfo. - * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Properties of a Webhook. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IWebhook + * @property {string|null} [name] Webhook name + * @property {string|null} [displayName] Webhook displayName + * @property {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null} [genericWebService] Webhook genericWebService + * @property {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null} [serviceDirectory] Webhook serviceDirectory + * @property {google.protobuf.IDuration|null} [timeout] Webhook timeout + * @property {boolean|null} [disabled] Webhook disabled + */ + + /** + * Constructs a new Webhook. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Webhook. + * @implements IWebhook + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set + */ + function Webhook(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]]; + } + + /** + * Webhook name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - WebhookRequest.prototype.sessionInfo = null; + Webhook.prototype.name = ""; /** - * WebhookRequest messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Webhook displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - WebhookRequest.prototype.messages = $util.emptyArray; + Webhook.prototype.displayName = ""; /** - * WebhookRequest payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Webhook genericWebService. + * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - WebhookRequest.prototype.payload = null; + Webhook.prototype.genericWebService = null; /** - * WebhookRequest sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Webhook serviceDirectory. + * @member {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null|undefined} serviceDirectory + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - WebhookRequest.prototype.sentimentAnalysisResult = null; + Webhook.prototype.serviceDirectory = null; + + /** + * Webhook timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @instance + */ + Webhook.prototype.timeout = null; + + /** + * Webhook disabled. + * @member {boolean} disabled + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @instance + */ + Webhook.prototype.disabled = false; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * WebhookRequest query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmfDigits"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Webhook webhook. + * @member {"genericWebService"|"serviceDirectory"|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - Object.defineProperty(WebhookRequest.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent", "dtmfDigits"]), + Object.defineProperty(Webhook.prototype, "webhook", { + get: $util.oneOfGetter($oneOfFields = ["genericWebService", "serviceDirectory"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new WebhookRequest instance using the specified properties. + * Creates a new Webhook instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook instance */ - WebhookRequest.create = function create(properties) { - return new WebhookRequest(properties); + Webhook.create = function create(properties) { + return new Webhook(properties); }; /** - * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. + * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookRequest.encode = function encode(message, writer) { + Webhook.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.detectIntentResponseId != null && Object.hasOwnProperty.call(message, "detectIntentResponseId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.detectIntentResponseId); - if (message.intentInfo != null && Object.hasOwnProperty.call(message, "intentInfo")) - $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.encode(message.intentInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) - $root.google.cloud.dialogflow.cx.v3.PageInfo.encode(message.pageInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) - $root.google.cloud.dialogflow.cx.v3.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.fulfillmentInfo != null && Object.hasOwnProperty.call(message, "fulfillmentInfo")) - $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.encode(message.fulfillmentInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.messages != null && message.messages.length) - for (var i = 0; i < message.messages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) - $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.text); - 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.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.languageCode); - if (message.dtmfDigits != null && Object.hasOwnProperty.call(message, "dtmfDigits")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.dtmfDigits); + 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.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) + $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.disabled); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.serviceDirectory != null && Object.hasOwnProperty.call(message, "serviceDirectory")) + $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.encode(message.serviceDirectory, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. + * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + Webhook.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebhookRequest message from the specified reader or buffer. + * Decodes a Webhook message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @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.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookRequest.decode = function decode(reader, length) { + Webhook.decode = function decode(reader, length) { 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.WebhookRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Webhook(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.detectIntentResponseId = reader.string(); - break; - } - case 10: { - 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 17: { - message.dtmfDigits = reader.string(); - break; - } - case 15: { - message.languageCode = reader.string(); - break; - } - case 6: { - message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); + message.name = reader.string(); break; } - case 3: { - message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); + case 2: { + message.displayName = reader.string(); break; } case 4: { - message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); - break; - } - case 5: { - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.decode(reader, reader.uint32()); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); break; } case 7: { - if (!(message.messages && message.messages.length)) - message.messages = []; - message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); + message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.decode(reader, reader.uint32()); break; } - case 8: { - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + case 6: { + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } - case 9: { - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.decode(reader, reader.uint32()); + case 5: { + message.disabled = reader.bool(); break; } default: @@ -62922,301 +63015,199 @@ }; /** - * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a Webhook message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookRequest.decodeDelimited = function decodeDelimited(reader) { + Webhook.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebhookRequest message. + * Verifies a Webhook message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebhookRequest.verify = function verify(message) { + Webhook.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) - if (!$util.isString(message.detectIntentResponseId)) - return "detectIntentResponseId: string expected"; - 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.dtmfDigits != null && message.hasOwnProperty("dtmfDigits")) { - if (properties.query === 1) - return "query: multiple values"; - properties.query = 1; - if (!$util.isString(message.dtmfDigits)) - return "dtmfDigits: string expected"; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify(message.fulfillmentInfo); - if (error) - return "fulfillmentInfo." + error; - } - if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify(message.intentInfo); - if (error) - return "intentInfo." + error; - } - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.verify(message.pageInfo); - if (error) - return "pageInfo." + error; - } - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); - if (error) - return "sessionInfo." + error; - } - if (message.messages != null && message.hasOwnProperty("messages")) { - if (!Array.isArray(message.messages)) - return "messages: array expected"; - for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[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.genericWebService != null && message.hasOwnProperty("genericWebService")) { + properties.webhook = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify(message.genericWebService); if (error) - return "messages." + error; + return "genericWebService." + error; } } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; + if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { + if (properties.webhook === 1) + return "webhook: multiple values"; + properties.webhook = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify(message.serviceDirectory); + if (error) + return "serviceDirectory." + error; + } } - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); if (error) - return "sentimentAnalysisResult." + error; + return "timeout." + error; } + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; return null; }; /** - * Creates a WebhookRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook */ - WebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest) + Webhook.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest(); - if (object.detectIntentResponseId != null) - message.detectIntentResponseId = String(object.detectIntentResponseId); - 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.dtmfDigits != null) - message.dtmfDigits = String(object.dtmfDigits); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.fulfillmentInfo != null) { - if (typeof object.fulfillmentInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.fulfillmentInfo: object expected"); - message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.fromObject(object.fulfillmentInfo); - } - if (object.intentInfo != null) { - if (typeof object.intentInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.intentInfo: object expected"); - message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.fromObject(object.intentInfo); - } - if (object.pageInfo != null) { - if (typeof object.pageInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.pageInfo: object expected"); - message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.fromObject(object.pageInfo); + var message = new $root.google.cloud.dialogflow.cx.v3.Webhook(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.genericWebService != null) { + if (typeof object.genericWebService !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.genericWebService: object expected"); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.fromObject(object.genericWebService); } - if (object.sessionInfo != null) { - if (typeof object.sessionInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.sessionInfo: object expected"); - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.fromObject(object.sessionInfo); + if (object.serviceDirectory != null) { + if (typeof object.serviceDirectory !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.serviceDirectory: object expected"); + message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.fromObject(object.serviceDirectory); } - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.messages: array expected"); - message.messages = []; - for (var i = 0; i < object.messages.length; ++i) { - if (typeof object.messages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); - } - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); - } - if (object.sentimentAnalysisResult != null) { - if (typeof object.sentimentAnalysisResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.sentimentAnalysisResult: object expected"); - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + if (object.timeout != null) { + if (typeof object.timeout !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.timeout: object expected"); + message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); } + if (object.disabled != null) + message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. + * Creates a plain object from a Webhook message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest} message WebhookRequest + * @param {google.cloud.dialogflow.cx.v3.Webhook} message Webhook * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebhookRequest.toObject = function toObject(message, options) { + Webhook.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.messages = []; if (options.defaults) { - object.detectIntentResponseId = ""; - object.intentInfo = null; - object.pageInfo = null; - object.sessionInfo = null; - object.fulfillmentInfo = null; - object.payload = null; - object.sentimentAnalysisResult = null; - object.languageCode = ""; - } - if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) - object.detectIntentResponseId = message.detectIntentResponseId; - if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) - object.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.toObject(message.intentInfo, options); - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) - object.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.toObject(message.pageInfo, options); - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) - object.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.toObject(message.sessionInfo, options); - if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) - object.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.toObject(message.fulfillmentInfo, options); - if (message.messages && message.messages.length) { - object.messages = []; - for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.messages[j], options); - } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) - object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); - 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"; + object.name = ""; + object.displayName = ""; + object.disabled = false; + object.timeout = null; } - if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { + object.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.toObject(message.genericWebService, options); if (options.oneofs) - object.query = "triggerEvent"; + object.webhook = "genericWebService"; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.dtmfDigits != null && message.hasOwnProperty("dtmfDigits")) { - object.dtmfDigits = message.dtmfDigits; + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + if (message.timeout != null && message.hasOwnProperty("timeout")) + object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); + if (message.serviceDirectory != null && message.hasOwnProperty("serviceDirectory")) { + object.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.toObject(message.serviceDirectory, options); if (options.oneofs) - object.query = "dtmfDigits"; + object.webhook = "serviceDirectory"; } return object; }; /** - * Converts this WebhookRequest to JSON. + * Converts this Webhook to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance * @returns {Object.} JSON object */ - WebhookRequest.prototype.toJSON = function toJSON() { + Webhook.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WebhookRequest + * Gets the default type url for Webhook * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Webhook.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Webhook"; }; - WebhookRequest.FulfillmentInfo = (function() { + Webhook.GenericWebService = (function() { /** - * Properties of a FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @interface IFulfillmentInfo - * @property {string|null} [tag] FulfillmentInfo tag + * Properties of a GenericWebService. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @interface IGenericWebService + * @property {string|null} [uri] GenericWebService uri + * @property {string|null} [username] GenericWebService username + * @property {string|null} [password] GenericWebService password + * @property {Object.|null} [requestHeaders] GenericWebService requestHeaders + * @property {Array.|null} [allowedCaCerts] GenericWebService allowedCaCerts + * @property {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType|null} [webhookType] GenericWebService webhookType + * @property {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod|null} [httpMethod] GenericWebService httpMethod + * @property {string|null} [requestBody] GenericWebService requestBody + * @property {Object.|null} [parameterMapping] GenericWebService parameterMapping */ /** - * Constructs a new FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @classdesc Represents a FulfillmentInfo. - * @implements IFulfillmentInfo + * Constructs a new GenericWebService. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @classdesc Represents a GenericWebService. + * @implements IGenericWebService * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set */ - function FulfillmentInfo(properties) { + function GenericWebService(properties) { + this.requestHeaders = {}; + this.allowedCaCerts = []; + this.parameterMapping = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63224,75 +63215,230 @@ } /** - * FulfillmentInfo tag. - * @member {string} tag - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * GenericWebService uri. + * @member {string} uri + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance */ - FulfillmentInfo.prototype.tag = ""; + GenericWebService.prototype.uri = ""; /** - * Creates a new FulfillmentInfo instance using the specified properties. + * GenericWebService username. + * @member {string} username + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.username = ""; + + /** + * GenericWebService password. + * @member {string} password + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.password = ""; + + /** + * GenericWebService requestHeaders. + * @member {Object.} requestHeaders + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.requestHeaders = $util.emptyObject; + + /** + * GenericWebService allowedCaCerts. + * @member {Array.} allowedCaCerts + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.allowedCaCerts = $util.emptyArray; + + /** + * GenericWebService webhookType. + * @member {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType} webhookType + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.webhookType = 0; + + /** + * GenericWebService httpMethod. + * @member {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod} httpMethod + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.httpMethod = 0; + + /** + * GenericWebService requestBody. + * @member {string} requestBody + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.requestBody = ""; + + /** + * GenericWebService parameterMapping. + * @member {Object.} parameterMapping + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.parameterMapping = $util.emptyObject; + + /** + * Creates a new GenericWebService instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo instance + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService instance */ - FulfillmentInfo.create = function create(properties) { - return new FulfillmentInfo(properties); + GenericWebService.create = function create(properties) { + return new GenericWebService(properties); }; /** - * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * Encodes the specified GenericWebService message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService} message GenericWebService message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentInfo.encode = function encode(message, writer) { + GenericWebService.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.username != null && Object.hasOwnProperty.call(message, "username")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (message.password != null && Object.hasOwnProperty.call(message, "password")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); + if (message.requestHeaders != null && Object.hasOwnProperty.call(message, "requestHeaders")) + for (var keys = Object.keys(message.requestHeaders), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.requestHeaders[keys[i]]).ldelim(); + if (message.allowedCaCerts != null && message.allowedCaCerts.length) + for (var i = 0; i < message.allowedCaCerts.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.allowedCaCerts[i]); + if (message.webhookType != null && Object.hasOwnProperty.call(message, "webhookType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.webhookType); + if (message.httpMethod != null && Object.hasOwnProperty.call(message, "httpMethod")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.httpMethod); + if (message.requestBody != null && Object.hasOwnProperty.call(message, "requestBody")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.requestBody); + if (message.parameterMapping != null && Object.hasOwnProperty.call(message, "parameterMapping")) + for (var keys = Object.keys(message.parameterMapping), i = 0; i < keys.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.parameterMapping[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService} message GenericWebService message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentInfo.encodeDelimited = function encodeDelimited(message, writer) { + GenericWebService.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillmentInfo message from the specified reader or buffer. + * Decodes a GenericWebService message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static * @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.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentInfo.decode = function decode(reader, length) { + GenericWebService.decode = function decode(reader, length) { 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.WebhookRequest.FulfillmentInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.tag = reader.string(); + message.uri = reader.string(); + break; + } + case 2: { + message.username = reader.string(); + break; + } + case 3: { + message.password = reader.string(); + break; + } + case 4: { + if (message.requestHeaders === $util.emptyObject) + message.requestHeaders = {}; + 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.requestHeaders[key] = value; + break; + } + case 5: { + if (!(message.allowedCaCerts && message.allowedCaCerts.length)) + message.allowedCaCerts = []; + message.allowedCaCerts.push(reader.bytes()); + break; + } + case 6: { + message.webhookType = reader.int32(); + break; + } + case 7: { + message.httpMethod = reader.int32(); + break; + } + case 8: { + message.requestBody = reader.string(); + break; + } + case 9: { + if (message.parameterMapping === $util.emptyObject) + message.parameterMapping = {}; + 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.parameterMapping[key] = value; break; } default: @@ -63304,126 +63450,348 @@ }; /** - * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. + * Decodes a GenericWebService message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentInfo.decodeDelimited = function decodeDelimited(reader) { + GenericWebService.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillmentInfo message. + * Verifies a GenericWebService message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillmentInfo.verify = function verify(message) { + GenericWebService.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.username != null && message.hasOwnProperty("username")) + if (!$util.isString(message.username)) + return "username: string expected"; + if (message.password != null && message.hasOwnProperty("password")) + if (!$util.isString(message.password)) + return "password: string expected"; + if (message.requestHeaders != null && message.hasOwnProperty("requestHeaders")) { + if (!$util.isObject(message.requestHeaders)) + return "requestHeaders: object expected"; + var key = Object.keys(message.requestHeaders); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.requestHeaders[key[i]])) + return "requestHeaders: string{k:string} expected"; + } + if (message.allowedCaCerts != null && message.hasOwnProperty("allowedCaCerts")) { + if (!Array.isArray(message.allowedCaCerts)) + return "allowedCaCerts: array expected"; + for (var i = 0; i < message.allowedCaCerts.length; ++i) + if (!(message.allowedCaCerts[i] && typeof message.allowedCaCerts[i].length === "number" || $util.isString(message.allowedCaCerts[i]))) + return "allowedCaCerts: buffer[] expected"; + } + if (message.webhookType != null && message.hasOwnProperty("webhookType")) + switch (message.webhookType) { + default: + return "webhookType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.httpMethod != null && message.hasOwnProperty("httpMethod")) + switch (message.httpMethod) { + default: + return "httpMethod: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.requestBody != null && message.hasOwnProperty("requestBody")) + if (!$util.isString(message.requestBody)) + return "requestBody: string expected"; + if (message.parameterMapping != null && message.hasOwnProperty("parameterMapping")) { + if (!$util.isObject(message.parameterMapping)) + return "parameterMapping: object expected"; + var key = Object.keys(message.parameterMapping); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.parameterMapping[key[i]])) + return "parameterMapping: string{k:string} expected"; + } return null; }; /** - * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. + * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService */ - FulfillmentInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) + GenericWebService.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(); - if (object.tag != null) - message.tag = String(object.tag); + var message = new $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.username != null) + message.username = String(object.username); + if (object.password != null) + message.password = String(object.password); + if (object.requestHeaders) { + if (typeof object.requestHeaders !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.requestHeaders: object expected"); + message.requestHeaders = {}; + for (var keys = Object.keys(object.requestHeaders), i = 0; i < keys.length; ++i) + message.requestHeaders[keys[i]] = String(object.requestHeaders[keys[i]]); + } + if (object.allowedCaCerts) { + if (!Array.isArray(object.allowedCaCerts)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.allowedCaCerts: array expected"); + message.allowedCaCerts = []; + for (var i = 0; i < object.allowedCaCerts.length; ++i) + if (typeof object.allowedCaCerts[i] === "string") + $util.base64.decode(object.allowedCaCerts[i], message.allowedCaCerts[i] = $util.newBuffer($util.base64.length(object.allowedCaCerts[i])), 0); + else if (object.allowedCaCerts[i].length >= 0) + message.allowedCaCerts[i] = object.allowedCaCerts[i]; + } + switch (object.webhookType) { + default: + if (typeof object.webhookType === "number") { + message.webhookType = object.webhookType; + break; + } + break; + case "WEBHOOK_TYPE_UNSPECIFIED": + case 0: + message.webhookType = 0; + break; + case "STANDARD": + case 1: + message.webhookType = 1; + break; + case "FLEXIBLE": + case 2: + message.webhookType = 2; + break; + } + switch (object.httpMethod) { + default: + if (typeof object.httpMethod === "number") { + message.httpMethod = object.httpMethod; + break; + } + break; + case "HTTP_METHOD_UNSPECIFIED": + case 0: + message.httpMethod = 0; + break; + case "POST": + case 1: + message.httpMethod = 1; + break; + case "GET": + case 2: + message.httpMethod = 2; + break; + case "HEAD": + case 3: + message.httpMethod = 3; + break; + case "PUT": + case 4: + message.httpMethod = 4; + break; + case "DELETE": + case 5: + message.httpMethod = 5; + break; + case "PATCH": + case 6: + message.httpMethod = 6; + break; + case "OPTIONS": + case 7: + message.httpMethod = 7; + break; + } + if (object.requestBody != null) + message.requestBody = String(object.requestBody); + if (object.parameterMapping) { + if (typeof object.parameterMapping !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.parameterMapping: object expected"); + message.parameterMapping = {}; + for (var keys = Object.keys(object.parameterMapping), i = 0; i < keys.length; ++i) + message.parameterMapping[keys[i]] = String(object.parameterMapping[keys[i]]); + } return message; }; /** - * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. + * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} message FulfillmentInfo + * @param {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} message GenericWebService * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillmentInfo.toObject = function toObject(message, options) { + GenericWebService.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.tag = ""; - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = message.tag; + if (options.arrays || options.defaults) + object.allowedCaCerts = []; + if (options.objects || options.defaults) { + object.requestHeaders = {}; + object.parameterMapping = {}; + } + if (options.defaults) { + object.uri = ""; + object.username = ""; + object.password = ""; + object.webhookType = options.enums === String ? "WEBHOOK_TYPE_UNSPECIFIED" : 0; + object.httpMethod = options.enums === String ? "HTTP_METHOD_UNSPECIFIED" : 0; + object.requestBody = ""; + } + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + if (message.username != null && message.hasOwnProperty("username")) + object.username = message.username; + if (message.password != null && message.hasOwnProperty("password")) + object.password = message.password; + var keys2; + if (message.requestHeaders && (keys2 = Object.keys(message.requestHeaders)).length) { + object.requestHeaders = {}; + for (var j = 0; j < keys2.length; ++j) + object.requestHeaders[keys2[j]] = message.requestHeaders[keys2[j]]; + } + if (message.allowedCaCerts && message.allowedCaCerts.length) { + object.allowedCaCerts = []; + for (var j = 0; j < message.allowedCaCerts.length; ++j) + object.allowedCaCerts[j] = options.bytes === String ? $util.base64.encode(message.allowedCaCerts[j], 0, message.allowedCaCerts[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.allowedCaCerts[j]) : message.allowedCaCerts[j]; + } + if (message.webhookType != null && message.hasOwnProperty("webhookType")) + object.webhookType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType[message.webhookType] === undefined ? message.webhookType : $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType[message.webhookType] : message.webhookType; + if (message.httpMethod != null && message.hasOwnProperty("httpMethod")) + object.httpMethod = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod[message.httpMethod] === undefined ? message.httpMethod : $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod[message.httpMethod] : message.httpMethod; + if (message.requestBody != null && message.hasOwnProperty("requestBody")) + object.requestBody = message.requestBody; + if (message.parameterMapping && (keys2 = Object.keys(message.parameterMapping)).length) { + object.parameterMapping = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameterMapping[keys2[j]] = message.parameterMapping[keys2[j]]; + } return object; }; /** - * Converts this FulfillmentInfo to JSON. + * Converts this GenericWebService to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance * @returns {Object.} JSON object */ - FulfillmentInfo.prototype.toJSON = function toJSON() { + GenericWebService.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FulfillmentInfo + * Gets the default type url for GenericWebService * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FulfillmentInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GenericWebService.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Webhook.GenericWebService"; }; - return FulfillmentInfo; + /** + * WebhookType enum. + * @name google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType + * @enum {number} + * @property {number} WEBHOOK_TYPE_UNSPECIFIED=0 WEBHOOK_TYPE_UNSPECIFIED value + * @property {number} STANDARD=1 STANDARD value + * @property {number} FLEXIBLE=2 FLEXIBLE value + */ + GenericWebService.WebhookType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "WEBHOOK_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "STANDARD"] = 1; + values[valuesById[2] = "FLEXIBLE"] = 2; + return values; + })(); + + /** + * HttpMethod enum. + * @name google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod + * @enum {number} + * @property {number} HTTP_METHOD_UNSPECIFIED=0 HTTP_METHOD_UNSPECIFIED value + * @property {number} POST=1 POST value + * @property {number} GET=2 GET value + * @property {number} HEAD=3 HEAD value + * @property {number} PUT=4 PUT value + * @property {number} DELETE=5 DELETE value + * @property {number} PATCH=6 PATCH value + * @property {number} OPTIONS=7 OPTIONS value + */ + GenericWebService.HttpMethod = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HTTP_METHOD_UNSPECIFIED"] = 0; + values[valuesById[1] = "POST"] = 1; + values[valuesById[2] = "GET"] = 2; + values[valuesById[3] = "HEAD"] = 3; + values[valuesById[4] = "PUT"] = 4; + values[valuesById[5] = "DELETE"] = 5; + values[valuesById[6] = "PATCH"] = 6; + values[valuesById[7] = "OPTIONS"] = 7; + return values; + })(); + + return GenericWebService; })(); - WebhookRequest.IntentInfo = (function() { + Webhook.ServiceDirectoryConfig = (function() { /** - * Properties of an IntentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @interface IIntentInfo - * @property {string|null} [lastMatchedIntent] IntentInfo lastMatchedIntent - * @property {string|null} [displayName] IntentInfo displayName - * @property {Object.|null} [parameters] IntentInfo parameters - * @property {number|null} [confidence] IntentInfo confidence + * Properties of a ServiceDirectoryConfig. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @interface IServiceDirectoryConfig + * @property {string|null} [service] ServiceDirectoryConfig service + * @property {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null} [genericWebService] ServiceDirectoryConfig genericWebService */ /** - * Constructs a new IntentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @classdesc Represents an IntentInfo. - * @implements IIntentInfo + * Constructs a new ServiceDirectoryConfig. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @classdesc Represents a ServiceDirectoryConfig. + * @implements IServiceDirectoryConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig=} [properties] Properties to set */ - function IntentInfo(properties) { - this.parameters = {}; + function ServiceDirectoryConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63431,139 +63799,89 @@ } /** - * IntentInfo lastMatchedIntent. - * @member {string} lastMatchedIntent - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.lastMatchedIntent = ""; - - /** - * IntentInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.displayName = ""; - - /** - * IntentInfo parameters. - * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * ServiceDirectoryConfig service. + * @member {string} service + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @instance */ - IntentInfo.prototype.parameters = $util.emptyObject; + ServiceDirectoryConfig.prototype.service = ""; /** - * IntentInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * ServiceDirectoryConfig genericWebService. + * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @instance */ - IntentInfo.prototype.confidence = 0; + ServiceDirectoryConfig.prototype.genericWebService = null; /** - * Creates a new IntentInfo instance using the specified properties. + * Creates a new ServiceDirectoryConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo instance + * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig instance */ - IntentInfo.create = function create(properties) { - return new IntentInfo(properties); + ServiceDirectoryConfig.create = function create(properties) { + return new ServiceDirectoryConfig(properties); }; /** - * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * Encodes the specified ServiceDirectoryConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentInfo.encode = function encode(message, writer) { + ServiceDirectoryConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.lastMatchedIntent != null && Object.hasOwnProperty.call(message, "lastMatchedIntent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.lastMatchedIntent); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + if (message.service != null && Object.hasOwnProperty.call(message, "service")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.service); + if (message.genericWebService != null && Object.hasOwnProperty.call(message, "genericWebService")) + $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * Encodes the specified ServiceDirectoryConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig} message ServiceDirectoryConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IntentInfo.encodeDelimited = function encodeDelimited(message, writer) { + ServiceDirectoryConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentInfo message from the specified reader or buffer. + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static * @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.WebhookRequest.IntentInfo} IntentInfo + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentInfo.decode = function decode(reader, length) { + ServiceDirectoryConfig.decode = function decode(reader, length) { 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.WebhookRequest.IntentInfo(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.lastMatchedIntent = reader.string(); - break; - } - case 3: { - message.displayName = reader.string(); + message.service = reader.string(); break; } case 2: { - if (message.parameters === $util.emptyObject) - message.parameters = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; - break; - } - case 4: { - message.confidence = reader.float(); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); break; } default: @@ -63575,634 +63893,391 @@ }; /** - * Decodes an IntentInfo message from the specified reader or buffer, length delimited. + * Decodes a ServiceDirectoryConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IntentInfo.decodeDelimited = function decodeDelimited(reader) { + ServiceDirectoryConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntentInfo message. + * Verifies a ServiceDirectoryConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IntentInfo.verify = function verify(message) { + ServiceDirectoryConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) - if (!$util.isString(message.lastMatchedIntent)) - return "lastMatchedIntent: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } + if (message.service != null && message.hasOwnProperty("service")) + if (!$util.isString(message.service)) + return "service: string expected"; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify(message.genericWebService); + if (error) + return "genericWebService." + error; } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; return null; }; /** - * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceDirectoryConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig */ - IntentInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) + ServiceDirectoryConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(); - if (object.lastMatchedIntent != null) - message.lastMatchedIntent = String(object.lastMatchedIntent); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.parameters: object expected"); - message.parameters[keys[i]] = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.fromObject(object.parameters[keys[i]]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig(); + if (object.service != null) + message.service = String(object.service); + if (object.genericWebService != null) { + if (typeof object.genericWebService !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.genericWebService: object expected"); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.fromObject(object.genericWebService); } - if (object.confidence != null) - message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. + * Creates a plain object from a ServiceDirectoryConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} message IntentInfo + * @param {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} message ServiceDirectoryConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntentInfo.toObject = function toObject(message, options) { + ServiceDirectoryConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.parameters = {}; if (options.defaults) { - object.lastMatchedIntent = ""; - object.displayName = ""; - object.confidence = 0; - } - if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) - object.lastMatchedIntent = message.lastMatchedIntent; - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.toObject(message.parameters[keys2[j]], options); + object.service = ""; + object.genericWebService = null; } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (message.service != null && message.hasOwnProperty("service")) + object.service = message.service; + if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) + object.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.toObject(message.genericWebService, options); return object; }; /** - * Converts this IntentInfo to JSON. + * Converts this ServiceDirectoryConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @instance * @returns {Object.} JSON object */ - IntentInfo.prototype.toJSON = function toJSON() { + ServiceDirectoryConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IntentInfo + * Gets the default type url for ServiceDirectoryConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IntentInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ServiceDirectoryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig"; }; - IntentInfo.IntentParameterValue = (function() { + return ServiceDirectoryConfig; + })(); - /** - * Properties of an IntentParameterValue. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @interface IIntentParameterValue - * @property {string|null} [originalValue] IntentParameterValue originalValue - * @property {google.protobuf.IValue|null} [resolvedValue] IntentParameterValue resolvedValue - */ + return Webhook; + })(); - /** - * Constructs a new IntentParameterValue. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @classdesc Represents an IntentParameterValue. - * @implements IIntentParameterValue - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set - */ - function IntentParameterValue(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.ListWebhooksRequest = (function() { - /** - * IntentParameterValue originalValue. - * @member {string} originalValue - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - */ - IntentParameterValue.prototype.originalValue = ""; + /** + * Properties of a ListWebhooksRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListWebhooksRequest + * @property {string|null} [parent] ListWebhooksRequest parent + * @property {number|null} [pageSize] ListWebhooksRequest pageSize + * @property {string|null} [pageToken] ListWebhooksRequest pageToken + */ - /** - * IntentParameterValue resolvedValue. - * @member {google.protobuf.IValue|null|undefined} resolvedValue - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - */ - IntentParameterValue.prototype.resolvedValue = null; + /** + * Constructs a new ListWebhooksRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListWebhooksRequest. + * @implements IListWebhooksRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set + */ + function ListWebhooksRequest(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 IntentParameterValue instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue instance - */ - IntentParameterValue.create = function create(properties) { - return new IntentParameterValue(properties); - }; + /** + * ListWebhooksRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @instance + */ + ListWebhooksRequest.prototype.parent = ""; - /** - * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentParameterValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.originalValue != null && Object.hasOwnProperty.call(message, "originalValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.originalValue); - if (message.resolvedValue != null && Object.hasOwnProperty.call(message, "resolvedValue")) - $root.google.protobuf.Value.encode(message.resolvedValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * ListWebhooksRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @instance + */ + ListWebhooksRequest.prototype.pageSize = 0; - /** - * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntentParameterValue.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListWebhooksRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @instance + */ + ListWebhooksRequest.prototype.pageToken = ""; - /** - * Decodes an IntentParameterValue message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @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.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentParameterValue.decode = function decode(reader, length) { - 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.WebhookRequest.IntentInfo.IntentParameterValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.originalValue = reader.string(); - break; - } - case 2: { - message.resolvedValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntentParameterValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new ListWebhooksRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest instance + */ + ListWebhooksRequest.create = function create(properties) { + return new ListWebhooksRequest(properties); + }; - /** - * Verifies an IntentParameterValue message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntentParameterValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.originalValue != null && message.hasOwnProperty("originalValue")) - if (!$util.isString(message.originalValue)) - return "originalValue: string expected"; - if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) { - var error = $root.google.protobuf.Value.verify(message.resolvedValue); - if (error) - return "resolvedValue." + error; - } - return null; - }; + /** + * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWebhooksRequest.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; + }; - /** - * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue - */ - IntentParameterValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue(); - if (object.originalValue != null) - message.originalValue = String(object.originalValue); - if (object.resolvedValue != null) { - if (typeof object.resolvedValue !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.resolvedValue: object expected"); - message.resolvedValue = $root.google.protobuf.Value.fromObject(object.resolvedValue); - } - return message; - }; + /** + * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListWebhooksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} message IntentParameterValue - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntentParameterValue.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.originalValue = ""; - object.resolvedValue = null; + /** + * Decodes a ListWebhooksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @static + * @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.ListWebhooksRequest} ListWebhooksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWebhooksRequest.decode = function decode(reader, length) { + 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.ListWebhooksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; } - if (message.originalValue != null && message.hasOwnProperty("originalValue")) - object.originalValue = message.originalValue; - if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) - object.resolvedValue = $root.google.protobuf.Value.toObject(message.resolvedValue, options); - return object; - }; - - /** - * Converts this IntentParameterValue to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - * @returns {Object.} JSON object - */ - IntentParameterValue.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for IntentParameterValue - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IntentParameterValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + case 2: { + message.pageSize = reader.int32(); + break; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue"; - }; - - return IntentParameterValue; - })(); - - return IntentInfo; - })(); - - WebhookRequest.SentimentAnalysisResult = (function() { - - /** - * Properties of a SentimentAnalysisResult. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @interface ISentimentAnalysisResult - * @property {number|null} [score] SentimentAnalysisResult score - * @property {number|null} [magnitude] SentimentAnalysisResult magnitude - */ - - /** - * Constructs a new SentimentAnalysisResult. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @classdesc Represents a SentimentAnalysisResult. - * @implements ISentimentAnalysisResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.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]]; - } - - /** - * SentimentAnalysisResult score. - * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.score = 0; - - /** - * SentimentAnalysisResult magnitude. - * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.magnitude = 0; - - /** - * Creates a new SentimentAnalysisResult instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult instance - */ - SentimentAnalysisResult.create = function create(properties) { - return new SentimentAnalysisResult(properties); - }; - - /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.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; - }; - - /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.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(); - }; - - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.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.WebhookRequest.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.v3.WebhookRequest.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); + case 3: { + message.pageToken = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.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()); - }; + } + return message; + }; - /** - * Verifies a SentimentAnalysisResult message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.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; - }; + /** + * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListWebhooksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult - */ - SentimentAnalysisResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(); - if (object.score != null) - message.score = Number(object.score); - if (object.magnitude != null) - message.magnitude = Number(object.magnitude); - return message; - }; + /** + * Verifies a ListWebhooksRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListWebhooksRequest.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 plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.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; + /** + * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest + */ + ListWebhooksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest(); + 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; + }; - /** - * Converts this SentimentAnalysisResult to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @instance - * @returns {Object.} JSON object - */ - SentimentAnalysisResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} message ListWebhooksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListWebhooksRequest.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; + }; - /** - * Gets the default type url for SentimentAnalysisResult - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SentimentAnalysisResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult"; - }; + /** + * Converts this ListWebhooksRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @instance + * @returns {Object.} JSON object + */ + ListWebhooksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SentimentAnalysisResult; - })(); + /** + * Gets the default type url for ListWebhooksRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListWebhooksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListWebhooksRequest"; + }; - return WebhookRequest; + return ListWebhooksRequest; })(); - v3.WebhookResponse = (function() { + v3.ListWebhooksResponse = (function() { /** - * Properties of a WebhookResponse. + * Properties of a ListWebhooksResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IWebhookResponse - * @property {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null} [fulfillmentResponse] WebhookResponse fulfillmentResponse - * @property {google.cloud.dialogflow.cx.v3.IPageInfo|null} [pageInfo] WebhookResponse pageInfo - * @property {google.cloud.dialogflow.cx.v3.ISessionInfo|null} [sessionInfo] WebhookResponse sessionInfo - * @property {google.protobuf.IStruct|null} [payload] WebhookResponse payload - * @property {string|null} [targetPage] WebhookResponse targetPage - * @property {string|null} [targetFlow] WebhookResponse targetFlow + * @interface IListWebhooksResponse + * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks + * @property {string|null} [nextPageToken] ListWebhooksResponse nextPageToken */ /** - * Constructs a new WebhookResponse. + * Constructs a new ListWebhooksResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a WebhookResponse. - * @implements IWebhookResponse + * @classdesc Represents a ListWebhooksResponse. + * @implements IListWebhooksResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set */ - function WebhookResponse(properties) { + function ListWebhooksResponse(properties) { + this.webhooks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64210,159 +64285,92 @@ } /** - * WebhookResponse fulfillmentResponse. - * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.fulfillmentResponse = null; - - /** - * WebhookResponse pageInfo. - * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.pageInfo = null; - - /** - * WebhookResponse sessionInfo. - * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.sessionInfo = null; - - /** - * WebhookResponse payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.payload = null; - - /** - * WebhookResponse targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance - */ - WebhookResponse.prototype.targetPage = null; - - /** - * WebhookResponse targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * ListWebhooksResponse webhooks. + * @member {Array.} webhooks + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @instance */ - WebhookResponse.prototype.targetFlow = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListWebhooksResponse.prototype.webhooks = $util.emptyArray; /** - * WebhookResponse transition. - * @member {"targetPage"|"targetFlow"|undefined} transition - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * ListWebhooksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @instance */ - Object.defineProperty(WebhookResponse.prototype, "transition", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListWebhooksResponse.prototype.nextPageToken = ""; /** - * Creates a new WebhookResponse instance using the specified properties. + * Creates a new ListWebhooksResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse instance */ - WebhookResponse.create = function create(properties) { - return new WebhookResponse(properties); + ListWebhooksResponse.create = function create(properties) { + return new ListWebhooksResponse(properties); }; /** - * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. + * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookResponse.encode = function encode(message, writer) { + ListWebhooksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fulfillmentResponse != null && Object.hasOwnProperty.call(message, "fulfillmentResponse")) - $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.encode(message.fulfillmentResponse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) - $root.google.cloud.dialogflow.cx.v3.PageInfo.encode(message.pageInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) - $root.google.cloud.dialogflow.cx.v3.SessionInfo.encode(message.sessionInfo, 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.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetFlow); + if (message.webhooks != null && message.webhooks.length) + for (var i = 0; i < message.webhooks.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhooks[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 WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. + * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WebhookResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListWebhooksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebhookResponse message from the specified reader or buffer. + * Decodes a ListWebhooksResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @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.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookResponse.decode = function decode(reader, length) { + ListWebhooksResponse.decode = function decode(reader, length) { 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.WebhookResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); + if (!(message.webhooks && message.webhooks.length)) + message.webhooks = []; + message.webhooks.push($root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32())); break; } case 2: { - message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); - break; - } - case 3: { - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.decode(reader, reader.uint32()); - break; - } - case 4: { - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - } - case 5: { - message.targetPage = reader.string(); - break; - } - case 6: { - message.targetFlow = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -64374,484 +64382,352 @@ }; /** - * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. + * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WebhookResponse.decodeDelimited = function decodeDelimited(reader) { + ListWebhooksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebhookResponse message. + * Verifies a ListWebhooksResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WebhookResponse.verify = function verify(message) { + ListWebhooksResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) { - var error = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify(message.fulfillmentResponse); - if (error) - return "fulfillmentResponse." + error; - } - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.verify(message.pageInfo); - if (error) - return "pageInfo." + error; - } - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); - if (error) - return "sessionInfo." + error; - } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.transition = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.transition === 1) - return "transition: multiple values"; - properties.transition = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; + if (message.webhooks != null && message.hasOwnProperty("webhooks")) { + if (!Array.isArray(message.webhooks)) + return "webhooks: array expected"; + for (var i = 0; i < message.webhooks.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhooks[i]); + if (error) + return "webhooks." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a WebhookResponse 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse */ - WebhookResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse) + ListWebhooksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse(); - if (object.fulfillmentResponse != null) { - if (typeof object.fulfillmentResponse !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillmentResponse: object expected"); - message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.fromObject(object.fulfillmentResponse); - } - if (object.pageInfo != null) { - if (typeof object.pageInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.pageInfo: object expected"); - message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.fromObject(object.pageInfo); - } - if (object.sessionInfo != null) { - if (typeof object.sessionInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.sessionInfo: object expected"); - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.fromObject(object.sessionInfo); - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + var message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse(); + if (object.webhooks) { + if (!Array.isArray(object.webhooks)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListWebhooksResponse.webhooks: array expected"); + message.webhooks = []; + for (var i = 0; i < object.webhooks.length; ++i) { + if (typeof object.webhooks[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListWebhooksResponse.webhooks: object expected"); + message.webhooks[i] = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhooks[i]); + } } - if (object.targetPage != null) - message.targetPage = String(object.targetPage); - if (object.targetFlow != null) - message.targetFlow = String(object.targetFlow); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse} message WebhookResponse + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} message ListWebhooksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebhookResponse.toObject = function toObject(message, options) { + ListWebhooksResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.fulfillmentResponse = null; - object.pageInfo = null; - object.sessionInfo = null; - object.payload = null; - } - if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) - object.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.toObject(message.fulfillmentResponse, options); - if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) - object.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.toObject(message.pageInfo, options); - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) - object.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.toObject(message.sessionInfo, options); - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; - if (options.oneofs) - object.transition = "targetPage"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; - if (options.oneofs) - object.transition = "targetFlow"; + if (options.arrays || options.defaults) + object.webhooks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.webhooks && message.webhooks.length) { + object.webhooks = []; + for (var j = 0; j < message.webhooks.length; ++j) + object.webhooks[j] = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhooks[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this WebhookResponse to JSON. + * Converts this ListWebhooksResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @instance * @returns {Object.} JSON object */ - WebhookResponse.prototype.toJSON = function toJSON() { + ListWebhooksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for WebhookResponse + * Gets the default type url for ListWebhooksResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - WebhookResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListWebhooksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListWebhooksResponse"; }; - WebhookResponse.FulfillmentResponse = (function() { + return ListWebhooksResponse; + })(); - /** - * Properties of a FulfillmentResponse. - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @interface IFulfillmentResponse - * @property {Array.|null} [messages] FulfillmentResponse messages - * @property {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null} [mergeBehavior] FulfillmentResponse mergeBehavior - */ + v3.GetWebhookRequest = (function() { - /** - * Constructs a new FulfillmentResponse. - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @classdesc Represents a FulfillmentResponse. - * @implements IFulfillmentResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set - */ - function FulfillmentResponse(properties) { - this.messages = []; - 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 GetWebhookRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetWebhookRequest + * @property {string|null} [name] GetWebhookRequest name + */ - /** - * FulfillmentResponse messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @instance - */ - FulfillmentResponse.prototype.messages = $util.emptyArray; + /** + * Constructs a new GetWebhookRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetWebhookRequest. + * @implements IGetWebhookRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set + */ + function GetWebhookRequest(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]]; + } - /** - * FulfillmentResponse mergeBehavior. - * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior} mergeBehavior - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @instance - */ - FulfillmentResponse.prototype.mergeBehavior = 0; + /** + * GetWebhookRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @instance + */ + GetWebhookRequest.prototype.name = ""; - /** - * Creates a new FulfillmentResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse instance - */ - FulfillmentResponse.create = function create(properties) { - return new FulfillmentResponse(properties); - }; + /** + * Creates a new GetWebhookRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest instance + */ + GetWebhookRequest.create = function create(properties) { + return new GetWebhookRequest(properties); + }; - /** - * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messages != null && message.messages.length) - for (var i = 0; i < message.messages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.mergeBehavior != null && Object.hasOwnProperty.call(message, "mergeBehavior")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mergeBehavior); - return writer; - }; + /** + * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetWebhookRequest.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 FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FulfillmentResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @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.WebhookResponse.FulfillmentResponse} FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentResponse.decode = function decode(reader, length) { - 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.WebhookResponse.FulfillmentResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.messages && message.messages.length)) - message.messages = []; - message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); - break; - } - case 2: { - message.mergeBehavior = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FulfillmentResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FulfillmentResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FulfillmentResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messages != null && message.hasOwnProperty("messages")) { - if (!Array.isArray(message.messages)) - return "messages: array expected"; - for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); - if (error) - return "messages." + error; - } - } - if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) - switch (message.mergeBehavior) { - default: - return "mergeBehavior: enum value expected"; - case 0: - case 1: - case 2: + /** + * Decodes a GetWebhookRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @static + * @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.GetWebhookRequest} GetWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetWebhookRequest.decode = function decode(reader, length) { + 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.GetWebhookRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); break; } - return null; - }; - - /** - * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse - */ - FulfillmentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse(); - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.messages: array expected"); - message.messages = []; - for (var i = 0; i < object.messages.length; ++i) { - if (typeof object.messages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); - } - } - switch (object.mergeBehavior) { default: - if (typeof object.mergeBehavior === "number") { - message.mergeBehavior = object.mergeBehavior; - break; - } - break; - case "MERGE_BEHAVIOR_UNSPECIFIED": - case 0: - message.mergeBehavior = 0; - break; - case "APPEND": - case 1: - message.mergeBehavior = 1; - break; - case "REPLACE": - case 2: - message.mergeBehavior = 2; + reader.skipType(tag & 7); break; } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} message FulfillmentResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FulfillmentResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.messages = []; - if (options.defaults) - object.mergeBehavior = options.enums === String ? "MERGE_BEHAVIOR_UNSPECIFIED" : 0; - if (message.messages && message.messages.length) { - object.messages = []; - for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.messages[j], options); - } - if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) - object.mergeBehavior = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior[message.mergeBehavior] === undefined ? message.mergeBehavior : $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior[message.mergeBehavior] : message.mergeBehavior; - return object; - }; + /** + * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this FulfillmentResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @instance - * @returns {Object.} JSON object - */ - FulfillmentResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a GetWebhookRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetWebhookRequest.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; + }; - /** - * Gets the default type url for FulfillmentResponse - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FulfillmentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse"; - }; + /** + * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest + */ + GetWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * MergeBehavior enum. - * @name google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior - * @enum {number} - * @property {number} MERGE_BEHAVIOR_UNSPECIFIED=0 MERGE_BEHAVIOR_UNSPECIFIED value - * @property {number} APPEND=1 APPEND value - * @property {number} REPLACE=2 REPLACE value - */ - FulfillmentResponse.MergeBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MERGE_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "APPEND"] = 1; - values[valuesById[2] = "REPLACE"] = 2; - return values; - })(); + /** + * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.GetWebhookRequest} message GetWebhookRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetWebhookRequest.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 FulfillmentResponse; - })(); + /** + * Converts this GetWebhookRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @instance + * @returns {Object.} JSON object + */ + GetWebhookRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return WebhookResponse; + /** + * Gets the default type url for GetWebhookRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetWebhookRequest"; + }; + + return GetWebhookRequest; })(); - v3.PageInfo = (function() { + v3.CreateWebhookRequest = (function() { /** - * Properties of a PageInfo. + * Properties of a CreateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IPageInfo - * @property {string|null} [currentPage] PageInfo currentPage - * @property {string|null} [displayName] PageInfo displayName - * @property {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo + * @interface ICreateWebhookRequest + * @property {string|null} [parent] CreateWebhookRequest parent + * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] CreateWebhookRequest webhook */ /** - * Constructs a new PageInfo. + * Constructs a new CreateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a PageInfo. - * @implements IPageInfo + * @classdesc Represents a CreateWebhookRequest. + * @implements ICreateWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set */ - function PageInfo(properties) { + function CreateWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64859,103 +64735,89 @@ } /** - * PageInfo currentPage. - * @member {string} currentPage - * @memberof google.cloud.dialogflow.cx.v3.PageInfo - * @instance - */ - PageInfo.prototype.currentPage = ""; - - /** - * PageInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * CreateWebhookRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance */ - PageInfo.prototype.displayName = ""; + CreateWebhookRequest.prototype.parent = ""; /** - * PageInfo formInfo. - * @member {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null|undefined} formInfo - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * CreateWebhookRequest webhook. + * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance */ - PageInfo.prototype.formInfo = null; + CreateWebhookRequest.prototype.webhook = null; /** - * Creates a new PageInfo instance using the specified properties. + * Creates a new CreateWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo instance + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest instance */ - PageInfo.create = function create(properties) { - return new PageInfo(properties); + CreateWebhookRequest.create = function create(properties) { + return new CreateWebhookRequest(properties); }; /** - * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. + * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PageInfo.encode = function encode(message, writer) { + CreateWebhookRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPage); - if (message.formInfo != null && Object.hasOwnProperty.call(message, "formInfo")) - $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.encode(message.formInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) + $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. + * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PageInfo.encodeDelimited = function encodeDelimited(message, writer) { + CreateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PageInfo message from the specified reader or buffer. + * Decodes a CreateWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @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.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PageInfo.decode = function decode(reader, length) { + CreateWebhookRequest.decode = function decode(reader, length) { 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.PageInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.currentPage = reader.string(); - break; - } - case 4: { - message.displayName = reader.string(); + message.parent = reader.string(); break; } - case 3: { - message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.decode(reader, reader.uint32()); + case 2: { + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); break; } default: @@ -64967,830 +64829,464 @@ }; /** - * Decodes a PageInfo message from the specified reader or buffer, length delimited. + * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PageInfo.decodeDelimited = function decodeDelimited(reader) { + CreateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PageInfo message. + * Verifies a CreateWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PageInfo.verify = function verify(message) { + CreateWebhookRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - if (!$util.isString(message.currentPage)) - return "currentPage: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.formInfo != null && message.hasOwnProperty("formInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify(message.formInfo); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.webhook != null && message.hasOwnProperty("webhook")) { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); if (error) - return "formInfo." + error; + return "webhook." + error; } return null; }; /** - * Creates a PageInfo 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest */ - PageInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo) + CreateWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo(); - if (object.currentPage != null) - message.currentPage = String(object.currentPage); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.formInfo != null) { - if (typeof object.formInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.formInfo: object expected"); - message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.fromObject(object.formInfo); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.webhook != null) { + if (typeof object.webhook !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateWebhookRequest.webhook: object expected"); + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhook); } return message; }; /** - * Creates a plain object from a PageInfo message. Also converts values to other types if specified. + * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo} message PageInfo + * @param {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} message CreateWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PageInfo.toObject = function toObject(message, options) { + CreateWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.currentPage = ""; - object.formInfo = null; - object.displayName = ""; + object.parent = ""; + object.webhook = null; } - if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = message.currentPage; - if (message.formInfo != null && message.hasOwnProperty("formInfo")) - object.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.toObject(message.formInfo, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.webhook != null && message.hasOwnProperty("webhook")) + object.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhook, options); return object; }; /** - * Converts this PageInfo to JSON. + * Converts this CreateWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance * @returns {Object.} JSON object */ - PageInfo.prototype.toJSON = function toJSON() { + CreateWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PageInfo + * Gets the default type url for CreateWebhookRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PageInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.PageInfo"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateWebhookRequest"; }; - PageInfo.FormInfo = (function() { + return CreateWebhookRequest; + })(); - /** - * Properties of a FormInfo. - * @memberof google.cloud.dialogflow.cx.v3.PageInfo - * @interface IFormInfo - * @property {Array.|null} [parameterInfo] FormInfo parameterInfo - */ + v3.UpdateWebhookRequest = (function() { - /** - * Constructs a new FormInfo. - * @memberof google.cloud.dialogflow.cx.v3.PageInfo - * @classdesc Represents a FormInfo. - * @implements IFormInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo=} [properties] Properties to set - */ - function FormInfo(properties) { - this.parameterInfo = []; - 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 UpdateWebhookRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdateWebhookRequest + * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] UpdateWebhookRequest webhook + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebhookRequest updateMask + */ - /** - * FormInfo parameterInfo. - * @member {Array.} parameterInfo - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @instance - */ - FormInfo.prototype.parameterInfo = $util.emptyArray; + /** + * Constructs a new UpdateWebhookRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdateWebhookRequest. + * @implements IUpdateWebhookRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set + */ + function UpdateWebhookRequest(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 FormInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo instance - */ - FormInfo.create = function create(properties) { - return new FormInfo(properties); - }; + /** + * UpdateWebhookRequest webhook. + * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @instance + */ + UpdateWebhookRequest.prototype.webhook = null; - /** - * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo} message FormInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameterInfo != null && message.parameterInfo.length) - for (var i = 0; i < message.parameterInfo.length; ++i) - $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.encode(message.parameterInfo[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * UpdateWebhookRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @instance + */ + UpdateWebhookRequest.prototype.updateMask = null; - /** - * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo} message FormInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FormInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new UpdateWebhookRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest instance + */ + UpdateWebhookRequest.create = function create(properties) { + return new UpdateWebhookRequest(properties); + }; - /** - * Decodes a FormInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @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.PageInfo.FormInfo} FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormInfo.decode = function decode(reader, length) { - 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.PageInfo.FormInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - if (!(message.parameterInfo && message.parameterInfo.length)) - message.parameterInfo = []; - message.parameterInfo.push($root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateWebhookRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) + $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, 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; + }; - /** - * Decodes a FormInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FormInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} message UpdateWebhookRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a FormInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FormInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameterInfo != null && message.hasOwnProperty("parameterInfo")) { - if (!Array.isArray(message.parameterInfo)) - return "parameterInfo: array expected"; - for (var i = 0; i < message.parameterInfo.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify(message.parameterInfo[i]); - if (error) - return "parameterInfo." + error; + /** + * Decodes an UpdateWebhookRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @static + * @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.UpdateWebhookRequest} UpdateWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateWebhookRequest.decode = function decode(reader, length) { + 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.UpdateWebhookRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); + break; } - } - return null; - }; - - /** - * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo - */ - FormInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo(); - if (object.parameterInfo) { - if (!Array.isArray(object.parameterInfo)) - throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.parameterInfo: array expected"); - message.parameterInfo = []; - for (var i = 0; i < object.parameterInfo.length; ++i) { - if (typeof object.parameterInfo[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.parameterInfo: object expected"); - message.parameterInfo[i] = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.fromObject(object.parameterInfo[i]); + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a FormInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} message FormInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FormInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parameterInfo = []; - if (message.parameterInfo && message.parameterInfo.length) { - object.parameterInfo = []; - for (var j = 0; j < message.parameterInfo.length; ++j) - object.parameterInfo[j] = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.toObject(message.parameterInfo[j], options); - } - return object; - }; + /** + * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this FormInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @instance - * @returns {Object.} JSON object - */ - FormInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies an UpdateWebhookRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateWebhookRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.webhook != null && message.hasOwnProperty("webhook")) { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); + if (error) + return "webhook." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; - /** - * Gets the default type url for FormInfo - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FormInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.PageInfo.FormInfo"; - }; + /** + * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest + */ + UpdateWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest(); + if (object.webhook != null) { + if (typeof object.webhook !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.webhook: object expected"); + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.fromObject(object.webhook); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - FormInfo.ParameterInfo = (function() { + /** + * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} message UpdateWebhookRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateWebhookRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.webhook = null; + object.updateMask = null; + } + if (message.webhook != null && message.hasOwnProperty("webhook")) + object.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhook, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; - /** - * Properties of a ParameterInfo. - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @interface IParameterInfo - * @property {string|null} [displayName] ParameterInfo displayName - * @property {boolean|null} [required] ParameterInfo required - * @property {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null} [state] ParameterInfo state - * @property {google.protobuf.IValue|null} [value] ParameterInfo value - * @property {boolean|null} [justCollected] ParameterInfo justCollected - */ + /** + * Converts this UpdateWebhookRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateWebhookRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new ParameterInfo. - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @classdesc Represents a ParameterInfo. - * @implements IParameterInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set - */ - function ParameterInfo(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]]; - } + /** + * Gets the default type url for UpdateWebhookRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateWebhookRequest"; + }; - /** - * ParameterInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.displayName = ""; + return UpdateWebhookRequest; + })(); - /** - * ParameterInfo required. - * @member {boolean} required - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.required = false; + v3.DeleteWebhookRequest = (function() { - /** - * ParameterInfo state. - * @member {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState} state - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.state = 0; + /** + * Properties of a DeleteWebhookRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteWebhookRequest + * @property {string|null} [name] DeleteWebhookRequest name + * @property {boolean|null} [force] DeleteWebhookRequest force + */ - /** - * ParameterInfo value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.value = null; + /** + * Constructs a new DeleteWebhookRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeleteWebhookRequest. + * @implements IDeleteWebhookRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set + */ + function DeleteWebhookRequest(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]]; + } - /** - * ParameterInfo justCollected. - * @member {boolean} justCollected - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.justCollected = false; + /** + * DeleteWebhookRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @instance + */ + DeleteWebhookRequest.prototype.name = ""; - /** - * Creates a new ParameterInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo instance - */ - ParameterInfo.create = function create(properties) { - return new ParameterInfo(properties); - }; - - /** - * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.required != null && Object.hasOwnProperty.call(message, "required")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.required); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.justCollected != null && Object.hasOwnProperty.call(message, "justCollected")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.justCollected); - return writer; - }; - - /** - * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ParameterInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @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.PageInfo.FormInfo.ParameterInfo} ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterInfo.decode = function decode(reader, length) { - 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.PageInfo.FormInfo.ParameterInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.displayName = reader.string(); - break; - } - case 2: { - message.required = reader.bool(); - break; - } - case 3: { - message.state = reader.int32(); - break; - } - case 4: { - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 5: { - message.justCollected = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ParameterInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParameterInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.required != null && message.hasOwnProperty("required")) - if (typeof message.required !== "boolean") - return "required: boolean 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.value != null && message.hasOwnProperty("value")) { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; - } - if (message.justCollected != null && message.hasOwnProperty("justCollected")) - if (typeof message.justCollected !== "boolean") - return "justCollected: boolean expected"; - return null; - }; - - /** - * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo - */ - ParameterInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.required != null) - message.required = Boolean(object.required); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "PARAMETER_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "EMPTY": - case 1: - message.state = 1; - break; - case "INVALID": - case 2: - message.state = 2; - break; - case "FILLED": - case 3: - message.state = 3; - break; - } - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.value: object expected"); - message.value = $root.google.protobuf.Value.fromObject(object.value); - } - if (object.justCollected != null) - message.justCollected = Boolean(object.justCollected); - return message; - }; - - /** - * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} message ParameterInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ParameterInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.displayName = ""; - object.required = false; - object.state = options.enums === String ? "PARAMETER_STATE_UNSPECIFIED" : 0; - object.value = null; - object.justCollected = false; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.required != null && message.hasOwnProperty("required")) - object.required = message.required; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState[message.state] === undefined ? message.state : $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState[message.state] : message.state; - if (message.value != null && message.hasOwnProperty("value")) - object.value = $root.google.protobuf.Value.toObject(message.value, options); - if (message.justCollected != null && message.hasOwnProperty("justCollected")) - object.justCollected = message.justCollected; - return object; - }; - - /** - * Converts this ParameterInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - * @returns {Object.} JSON object - */ - ParameterInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ParameterInfo - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ParameterInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo"; - }; - - /** - * ParameterState enum. - * @name google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState - * @enum {number} - * @property {number} PARAMETER_STATE_UNSPECIFIED=0 PARAMETER_STATE_UNSPECIFIED value - * @property {number} EMPTY=1 EMPTY value - * @property {number} INVALID=2 INVALID value - * @property {number} FILLED=3 FILLED value - */ - ParameterInfo.ParameterState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PARAMETER_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EMPTY"] = 1; - values[valuesById[2] = "INVALID"] = 2; - values[valuesById[3] = "FILLED"] = 3; - return values; - })(); - - return ParameterInfo; - })(); - - return FormInfo; - })(); - - return PageInfo; - })(); - - v3.SessionInfo = (function() { - - /** - * Properties of a SessionInfo. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISessionInfo - * @property {string|null} [session] SessionInfo session - * @property {Object.|null} [parameters] SessionInfo parameters - */ - - /** - * Constructs a new SessionInfo. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SessionInfo. - * @implements ISessionInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set - */ - function SessionInfo(properties) { - this.parameters = {}; - 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]]; - } - - /** - * SessionInfo session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo - * @instance - */ - SessionInfo.prototype.session = ""; + /** + * DeleteWebhookRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @instance + */ + DeleteWebhookRequest.prototype.force = false; /** - * SessionInfo parameters. - * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo - * @instance - */ - SessionInfo.prototype.parameters = $util.emptyObject; - - /** - * Creates a new SessionInfo instance using the specified properties. + * Creates a new DeleteWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest instance */ - SessionInfo.create = function create(properties) { - return new SessionInfo(properties); + DeleteWebhookRequest.create = function create(properties) { + return new DeleteWebhookRequest(properties); }; /** - * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. + * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionInfo.encode = function encode(message, writer) { + DeleteWebhookRequest.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.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().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 SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. + * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SessionInfo.encodeDelimited = function encodeDelimited(message, writer) { + DeleteWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SessionInfo message from the specified reader or buffer. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @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.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionInfo.decode = function decode(reader, length) { + DeleteWebhookRequest.decode = function decode(reader, length) { 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.SessionInfo(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.session = reader.string(); + message.name = reader.string(); break; } case 2: { - if (message.parameters === $util.emptyObject) - message.parameters = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; + message.force = reader.bool(); break; } default: @@ -65802,431 +65298,145 @@ }; /** - * Decodes a SessionInfo message from the specified reader or buffer, length delimited. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SessionInfo.decodeDelimited = function decodeDelimited(reader) { + DeleteWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SessionInfo message. + * Verifies a DeleteWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SessionInfo.verify = function verify(message) { + DeleteWebhookRequest.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.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.parameters[key[i]]); - if (error) - return "parameters." + 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 SessionInfo 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest */ - SessionInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionInfo) + DeleteWebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SessionInfo(); - if (object.session != null) - message.session = String(object.session); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SessionInfo.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SessionInfo.parameters: object expected"); - message.parameters[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameters[keys[i]]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest(); + 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 SessionInfo message. Also converts values to other types if specified. + * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.SessionInfo} message SessionInfo + * @param {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} message DeleteWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionInfo.toObject = function toObject(message, options) { + DeleteWebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.parameters = {}; - if (options.defaults) - object.session = ""; - if (message.session != null && message.hasOwnProperty("session")) - object.session = message.session; - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameters[keys2[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 SessionInfo to JSON. + * Converts this DeleteWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance * @returns {Object.} JSON object */ - SessionInfo.prototype.toJSON = function toJSON() { + DeleteWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SessionInfo + * Gets the default type url for DeleteWebhookRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SessionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteWebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SessionInfo"; - }; - - return SessionInfo; - })(); - - 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); + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteWebhookRequest"; }; - /** - * 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 - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Experiments; + return DeleteWebhookRequest; })(); - v3.Experiment = (function() { + v3.WebhookRequest = (function() { /** - * Properties of an Experiment. + * Properties of a WebhookRequest. * @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.IRolloutConfig|null} [rolloutConfig] Experiment rolloutConfig - * @property {google.cloud.dialogflow.cx.v3.IRolloutState|null} [rolloutState] Experiment rolloutState - * @property {string|null} [rolloutFailureReason] Experiment rolloutFailureReason - * @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 + * @interface IWebhookRequest + * @property {string|null} [detectIntentResponseId] WebhookRequest detectIntentResponseId + * @property {string|null} [text] WebhookRequest text + * @property {string|null} [triggerIntent] WebhookRequest triggerIntent + * @property {string|null} [transcript] WebhookRequest transcript + * @property {string|null} [triggerEvent] WebhookRequest triggerEvent + * @property {string|null} [dtmfDigits] WebhookRequest dtmfDigits + * @property {string|null} [languageCode] WebhookRequest languageCode + * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null} [fulfillmentInfo] WebhookRequest fulfillmentInfo + * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null} [intentInfo] WebhookRequest intentInfo + * @property {google.cloud.dialogflow.cx.v3.IPageInfo|null} [pageInfo] WebhookRequest pageInfo + * @property {google.cloud.dialogflow.cx.v3.ISessionInfo|null} [sessionInfo] WebhookRequest sessionInfo + * @property {Array.|null} [messages] WebhookRequest messages + * @property {google.protobuf.IStruct|null} [payload] WebhookRequest payload + * @property {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null} [sentimentAnalysisResult] WebhookRequest sentimentAnalysisResult */ /** - * Constructs a new Experiment. + * Constructs a new WebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Experiment. - * @implements IExperiment + * @classdesc Represents a WebhookRequest. + * @implements IWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set */ - function Experiment(properties) { - this.variantsHistory = []; + function WebhookRequest(properties) { + this.messages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66234,274 +65444,274 @@ } /** - * Experiment name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest detectIntentResponseId. + * @member {string} detectIntentResponseId + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.name = ""; + WebhookRequest.prototype.detectIntentResponseId = ""; /** - * Experiment displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.displayName = ""; + WebhookRequest.prototype.text = null; /** - * Experiment description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest triggerIntent. + * @member {string|null|undefined} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.description = ""; + WebhookRequest.prototype.triggerIntent = null; /** - * Experiment state. - * @member {google.cloud.dialogflow.cx.v3.Experiment.State} state - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest transcript. + * @member {string|null|undefined} transcript + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.state = 0; + WebhookRequest.prototype.transcript = null; /** - * Experiment definition. - * @member {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null|undefined} definition - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest triggerEvent. + * @member {string|null|undefined} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.definition = null; + WebhookRequest.prototype.triggerEvent = null; /** - * Experiment rolloutConfig. - * @member {google.cloud.dialogflow.cx.v3.IRolloutConfig|null|undefined} rolloutConfig - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest dtmfDigits. + * @member {string|null|undefined} dtmfDigits + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.rolloutConfig = null; + WebhookRequest.prototype.dtmfDigits = null; /** - * Experiment rolloutState. - * @member {google.cloud.dialogflow.cx.v3.IRolloutState|null|undefined} rolloutState - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.rolloutState = null; + WebhookRequest.prototype.languageCode = ""; /** - * Experiment rolloutFailureReason. - * @member {string} rolloutFailureReason - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest fulfillmentInfo. + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.rolloutFailureReason = ""; + WebhookRequest.prototype.fulfillmentInfo = null; /** - * Experiment result. - * @member {google.cloud.dialogflow.cx.v3.Experiment.IResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest intentInfo. + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null|undefined} intentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.result = null; + WebhookRequest.prototype.intentInfo = null; /** - * Experiment createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest pageInfo. + * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.createTime = null; + WebhookRequest.prototype.pageInfo = null; /** - * Experiment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest sessionInfo. + * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.startTime = null; + WebhookRequest.prototype.sessionInfo = null; /** - * Experiment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.endTime = null; + WebhookRequest.prototype.messages = $util.emptyArray; /** - * Experiment lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.lastUpdateTime = null; + WebhookRequest.prototype.payload = null; /** - * Experiment experimentLength. - * @member {google.protobuf.IDuration|null|undefined} experimentLength - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest sentimentAnalysisResult. + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.experimentLength = null; + WebhookRequest.prototype.sentimentAnalysisResult = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Experiment variantsHistory. - * @member {Array.} variantsHistory - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * WebhookRequest query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|"dtmfDigits"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - Experiment.prototype.variantsHistory = $util.emptyArray; + Object.defineProperty(WebhookRequest.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent", "dtmfDigits"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Experiment instance using the specified properties. + * Creates a new WebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment instance + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest instance */ - Experiment.create = function create(properties) { - return new Experiment(properties); + WebhookRequest.create = function create(properties) { + return new WebhookRequest(properties); }; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.verify|verify} messages. + * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encode = function encode(message, writer) { + WebhookRequest.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.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(); - if (message.rolloutConfig != null && Object.hasOwnProperty.call(message, "rolloutConfig")) - $root.google.cloud.dialogflow.cx.v3.RolloutConfig.encode(message.rolloutConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.rolloutState != null && Object.hasOwnProperty.call(message, "rolloutState")) - $root.google.cloud.dialogflow.cx.v3.RolloutState.encode(message.rolloutState, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.rolloutFailureReason != null && Object.hasOwnProperty.call(message, "rolloutFailureReason")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.rolloutFailureReason); + if (message.detectIntentResponseId != null && Object.hasOwnProperty.call(message, "detectIntentResponseId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.detectIntentResponseId); + if (message.intentInfo != null && Object.hasOwnProperty.call(message, "intentInfo")) + $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.encode(message.intentInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + $root.google.cloud.dialogflow.cx.v3.PageInfo.encode(message.pageInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) + $root.google.cloud.dialogflow.cx.v3.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.fulfillmentInfo != null && Object.hasOwnProperty.call(message, "fulfillmentInfo")) + $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.encode(message.fulfillmentInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) + $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.text); + 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.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.languageCode); + if (message.dtmfDigits != null && Object.hasOwnProperty.call(message, "dtmfDigits")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.dtmfDigits); 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 WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Experiment.encodeDelimited = function encodeDelimited(message, writer) { + WebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a WebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @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.WebhookRequest} WebhookRequest * @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) { + WebhookRequest.decode = function decode(reader, length) { 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.WebhookRequest(); 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.detectIntentResponseId = reader.string(); break; } - case 3: { - message.description = reader.string(); + case 10: { + message.text = reader.string(); break; } - case 4: { - message.state = reader.int32(); + case 11: { + message.triggerIntent = reader.string(); break; } - case 5: { - message.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.decode(reader, reader.uint32()); + case 12: { + message.transcript = reader.string(); break; } case 14: { - message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.decode(reader, reader.uint32()); + message.triggerEvent = reader.string(); break; } - case 15: { - message.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.decode(reader, reader.uint32()); + case 17: { + message.dtmfDigits = reader.string(); break; } - case 16: { - message.rolloutFailureReason = reader.string(); + case 15: { + message.languageCode = reader.string(); break; } case 6: { - message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.decode(reader, reader.uint32()); + message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); break; } - case 7: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 3: { + message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); break; } - case 8: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 4: { + message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); break; } - case 9: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 5: { + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.decode(reader, reader.uint32()); break; } - case 10: { - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 7: { + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); break; } - case 11: { - message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + case 8: { + message.payload = $root.google.protobuf.Struct.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())); + case 9: { + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.decode(reader, reader.uint32()); break; } default: @@ -66513,350 +65723,301 @@ }; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @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.WebhookRequest} WebhookRequest * @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) { + WebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Experiment message. + * Verifies a WebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @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) { + WebhookRequest.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: - case 4: - 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; + var properties = {}; + if (message.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) + if (!$util.isString(message.detectIntentResponseId)) + return "detectIntentResponseId: string expected"; + if (message.text != null && message.hasOwnProperty("text")) { + properties.query = 1; + if (!$util.isString(message.text)) + return "text: string expected"; } - if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.verify(message.rolloutConfig); - if (error) - return "rolloutConfig." + error; + 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.rolloutState != null && message.hasOwnProperty("rolloutState")) { - var error = $root.google.cloud.dialogflow.cx.v3.RolloutState.verify(message.rolloutState); - if (error) - return "rolloutState." + error; + 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.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) - if (!$util.isString(message.rolloutFailureReason)) - return "rolloutFailureReason: string expected"; - 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.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.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + if (message.dtmfDigits != null && message.hasOwnProperty("dtmfDigits")) { + if (properties.query === 1) + return "query: multiple values"; + properties.query = 1; + if (!$util.isString(message.dtmfDigits)) + return "dtmfDigits: string expected"; } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify(message.fulfillmentInfo); if (error) - return "startTime." + error; + return "fulfillmentInfo." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify(message.intentInfo); if (error) - return "endTime." + error; + return "intentInfo." + error; } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.verify(message.pageInfo); if (error) - return "lastUpdateTime." + error; + return "pageInfo." + error; } - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { - var error = $root.google.protobuf.Duration.verify(message.experimentLength); + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); if (error) - return "experimentLength." + error; + return "sessionInfo." + 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 (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); if (error) - return "variantsHistory." + error; + return "messages." + error; } } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + if (error) + return "sentimentAnalysisResult." + error; + } return null; }; /** - * Creates an Experiment 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest */ - Experiment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment) + WebhookRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.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) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - 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; - case "ROLLOUT_FAILED": - case 4: - message.state = 4; - 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.rolloutConfig != null) { - if (typeof object.rolloutConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.rolloutConfig: object expected"); - message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.fromObject(object.rolloutConfig); - } - if (object.rolloutState != null) { - if (typeof object.rolloutState !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.rolloutState: object expected"); - message.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.fromObject(object.rolloutState); - } - if (object.rolloutFailureReason != null) - message.rolloutFailureReason = String(object.rolloutFailureReason); - 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); + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest(); + if (object.detectIntentResponseId != null) + message.detectIntentResponseId = String(object.detectIntentResponseId); + 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.dtmfDigits != null) + message.dtmfDigits = String(object.dtmfDigits); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.fulfillmentInfo != null) { + if (typeof object.fulfillmentInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.fulfillmentInfo: object expected"); + message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.fromObject(object.fulfillmentInfo); } - 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.intentInfo != null) { + if (typeof object.intentInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.intentInfo: object expected"); + message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.fromObject(object.intentInfo); } - 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.pageInfo != null) { + if (typeof object.pageInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.pageInfo: object expected"); + message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.fromObject(object.pageInfo); } - 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.sessionInfo != null) { + if (typeof object.sessionInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.sessionInfo: object expected"); + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.fromObject(object.sessionInfo); } - 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.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[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.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); } - 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.sentimentAnalysisResult != null) { + if (typeof object.sentimentAnalysisResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.sentimentAnalysisResult: object expected"); + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); } return message; }; /** - * Creates a plain object from an Experiment message. Also converts values to other types if specified. + * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment} message Experiment + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest} message WebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Experiment.toObject = function toObject(message, options) { + WebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.variantsHistory = []; + object.messages = []; 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.rolloutConfig = null; - object.rolloutState = null; - object.rolloutFailureReason = ""; + object.detectIntentResponseId = ""; + object.intentInfo = null; + object.pageInfo = null; + object.sessionInfo = null; + object.fulfillmentInfo = null; + object.payload = null; + object.sentimentAnalysisResult = null; + object.languageCode = ""; } - 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.v3.Experiment.State[message.state] === undefined ? message.state : $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.detectIntentResponseId != null && message.hasOwnProperty("detectIntentResponseId")) + object.detectIntentResponseId = message.detectIntentResponseId; + if (message.intentInfo != null && message.hasOwnProperty("intentInfo")) + object.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.toObject(message.intentInfo, options); + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) + object.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.toObject(message.pageInfo, options); + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) + object.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.toObject(message.sessionInfo, options); + if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) + object.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.toObject(message.fulfillmentInfo, options); + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.messages[j], options); + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) + object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); + 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.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { + object.triggerEvent = message.triggerEvent; + if (options.oneofs) + object.query = "triggerEvent"; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.dtmfDigits != null && message.hasOwnProperty("dtmfDigits")) { + object.dtmfDigits = message.dtmfDigits; + if (options.oneofs) + object.query = "dtmfDigits"; } - if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) - object.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.toObject(message.rolloutConfig, options); - if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) - object.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.toObject(message.rolloutState, options); - if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) - object.rolloutFailureReason = message.rolloutFailureReason; return object; }; /** - * Converts this Experiment to JSON. + * Converts this WebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance * @returns {Object.} JSON object */ - Experiment.prototype.toJSON = function toJSON() { + WebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Experiment + * Gets the default type url for WebhookRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Experiment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WebhookRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest"; }; - /** - * 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 - * @property {number} ROLLOUT_FAILED=4 ROLLOUT_FAILED 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; - values[valuesById[4] = "ROLLOUT_FAILED"] = 4; - return values; - })(); - - Experiment.Definition = (function() { + WebhookRequest.FulfillmentInfo = (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 + * Properties of a FulfillmentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @interface IFulfillmentInfo + * @property {string|null} [tag] FulfillmentInfo tag */ /** - * Constructs a new Definition. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @classdesc Represents a Definition. - * @implements IDefinition + * Constructs a new FulfillmentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @classdesc Represents a FulfillmentInfo. + * @implements IFulfillmentInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set */ - function Definition(properties) { + function FulfillmentInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -66864,103 +66025,75 @@ } /** - * 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 + * FulfillmentInfo tag. + * @member {string} tag + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @instance */ - Object.defineProperty(Definition.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); + FulfillmentInfo.prototype.tag = ""; /** - * Creates a new Definition instance using the specified properties. + * Creates a new FulfillmentInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition instance + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo instance */ - Definition.create = function create(properties) { - return new Definition(properties); + FulfillmentInfo.create = function create(properties) { + return new FulfillmentInfo(properties); }; /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Definition.encode = function encode(message, writer) { + FulfillmentInfo.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(); + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); return writer; }; /** - * Encodes the specified Definition message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.verify|verify} messages. + * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Definition.encodeDelimited = function encodeDelimited(message, writer) { + FulfillmentInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Definition message from the specified reader or buffer. + * Decodes a FulfillmentInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo * @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) { + FulfillmentInfo.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(); 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()); + message.tag = reader.string(); break; } default: @@ -66972,143 +66105,126 @@ }; /** - * Decodes a Definition message from the specified reader or buffer, length delimited. + * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo * @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) { + FulfillmentInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Definition message. + * Verifies a FulfillmentInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @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) { + FulfillmentInfo.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; - } - } + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; return null; }; /** - * Creates a Definition 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo */ - Definition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Definition) + FulfillmentInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) 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); - } + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(); + if (object.tag != null) + message.tag = String(object.tag); return message; }; /** - * Creates a plain object from a Definition message. Also converts values to other types if specified. + * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Definition} message Definition + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} message FulfillmentInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Definition.toObject = function toObject(message, options) { + FulfillmentInfo.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"; - } + object.tag = ""; + if (message.tag != null && message.hasOwnProperty("tag")) + object.tag = message.tag; return object; }; /** - * Converts this Definition to JSON. + * Converts this FulfillmentInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @instance * @returns {Object.} JSON object */ - Definition.prototype.toJSON = function toJSON() { + FulfillmentInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Definition + * Gets the default type url for FulfillmentInfo * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Definition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FulfillmentInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Definition"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo"; }; - return Definition; + return FulfillmentInfo; })(); - Experiment.Result = (function() { + WebhookRequest.IntentInfo = (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 + * Properties of an IntentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @interface IIntentInfo + * @property {string|null} [lastMatchedIntent] IntentInfo lastMatchedIntent + * @property {string|null} [displayName] IntentInfo displayName + * @property {Object.|null} [parameters] IntentInfo parameters + * @property {number|null} [confidence] IntentInfo confidence */ /** - * Constructs a new Result. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @classdesc Represents a Result. - * @implements IResult + * Constructs a new IntentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @classdesc Represents an IntentInfo. + * @implements IIntentInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set */ - function Result(properties) { - this.versionMetrics = []; + function IntentInfo(properties) { + this.parameters = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67116,92 +66232,139 @@ } /** - * Result versionMetrics. - * @member {Array.} versionMetrics - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * IntentInfo lastMatchedIntent. + * @member {string} lastMatchedIntent + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @instance */ - Result.prototype.versionMetrics = $util.emptyArray; + IntentInfo.prototype.lastMatchedIntent = ""; /** - * Result lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * IntentInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @instance */ - Result.prototype.lastUpdateTime = null; + IntentInfo.prototype.displayName = ""; /** - * Creates a new Result instance using the specified properties. + * IntentInfo parameters. + * @member {Object.} parameters + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.parameters = $util.emptyObject; + + /** + * IntentInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.confidence = 0; + + /** + * Creates a new IntentInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result instance + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo instance */ - Result.create = function create(properties) { - return new Result(properties); + IntentInfo.create = function create(properties) { + return new IntentInfo(properties); }; /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.verify|verify} messages. + * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encode = function encode(message, writer) { + IntentInfo.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.lastMatchedIntent != null && Object.hasOwnProperty.call(message, "lastMatchedIntent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.lastMatchedIntent); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); 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 IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Result.encodeDelimited = function encodeDelimited(message, writer) { + IntentInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Result message from the specified reader or buffer. + * Decodes an IntentInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static * @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.WebhookRequest.IntentInfo} IntentInfo * @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) { + IntentInfo.decode = function decode(reader, length) { 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.WebhookRequest.IntentInfo(), key, value; 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())); + message.lastMatchedIntent = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); break; } case 2: { - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (message.parameters === $util.emptyObject) + message.parameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; + break; + } + case 4: { + message.confidence = reader.float(); break; } default: @@ -67213,193 +66376,165 @@ }; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes an IntentInfo 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.WebhookRequest.IntentInfo * @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.WebhookRequest.IntentInfo} IntentInfo * @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) { + IntentInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Result message. + * Verifies an IntentInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @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) { + IntentInfo.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 (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) + if (!$util.isString(message.lastMatchedIntent)) + return "lastMatchedIntent: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify(message.parameters[key[i]]); if (error) - return "versionMetrics." + error; + return "parameters." + error; } } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; - } + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; return null; }; /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. + * Creates an IntentInfo 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.WebhookRequest.IntentInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result) + IntentInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) 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.WebhookRequest.IntentInfo(); + if (object.lastMatchedIntent != null) + message.lastMatchedIntent = String(object.lastMatchedIntent); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.parameters: object expected"); + message.parameters[keys[i]] = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.fromObject(object.parameters[keys[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); - } + if (object.confidence != null) + message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. + * Creates a plain object from an IntentInfo 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.WebhookRequest.IntentInfo * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result} message Result + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} message IntentInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Result.toObject = function toObject(message, options) { + IntentInfo.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.objects || options.defaults) + object.parameters = {}; + if (options.defaults) { + object.lastMatchedIntent = ""; + object.displayName = ""; + object.confidence = 0; } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + if (message.lastMatchedIntent != null && message.hasOwnProperty("lastMatchedIntent")) + object.lastMatchedIntent = message.lastMatchedIntent; + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.toObject(message.parameters[keys2[j]], options); + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; return object; }; /** - * Converts this Result to JSON. + * Converts this IntentInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @instance * @returns {Object.} JSON object */ - Result.prototype.toJSON = function toJSON() { + IntentInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Result + * Gets the default type url for IntentInfo * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Result.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + IntentInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Result"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo"; }; - /** - * 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; - })(); - - Result.ConfidenceInterval = (function() { + IntentInfo.IntentParameterValue = (function() { /** - * 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 + * Properties of an IntentParameterValue. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @interface IIntentParameterValue + * @property {string|null} [originalValue] IntentParameterValue originalValue + * @property {google.protobuf.IValue|null} [resolvedValue] IntentParameterValue resolvedValue */ /** - * Constructs a new ConfidenceInterval. - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result - * @classdesc Represents a ConfidenceInterval. - * @implements IConfidenceInterval + * Constructs a new IntentParameterValue. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @classdesc Represents an IntentParameterValue. + * @implements IIntentParameterValue * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set */ - function ConfidenceInterval(properties) { + function IntentParameterValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -67407,117 +66542,89 @@ } /** - * ConfidenceInterval confidenceLevel. - * @member {number} confidenceLevel - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * IntentParameterValue originalValue. + * @member {string} originalValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @instance */ - ConfidenceInterval.prototype.confidenceLevel = 0; + IntentParameterValue.prototype.originalValue = ""; /** - * ConfidenceInterval ratio. - * @member {number} ratio - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.ratio = 0; - - /** - * ConfidenceInterval lowerBound. - * @member {number} lowerBound - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.lowerBound = 0; - - /** - * ConfidenceInterval upperBound. - * @member {number} upperBound - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * IntentParameterValue resolvedValue. + * @member {google.protobuf.IValue|null|undefined} resolvedValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @instance */ - ConfidenceInterval.prototype.upperBound = 0; + IntentParameterValue.prototype.resolvedValue = null; /** - * Creates a new ConfidenceInterval instance using the specified properties. + * Creates a new IntentParameterValue instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @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 + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue instance */ - ConfidenceInterval.create = function create(properties) { - return new ConfidenceInterval(properties); + IntentParameterValue.create = function create(properties) { + return new IntentParameterValue(properties); }; /** - * Encodes the specified ConfidenceInterval message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConfidenceInterval.encode = function encode(message, writer) { + IntentParameterValue.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); + if (message.originalValue != null && Object.hasOwnProperty.call(message, "originalValue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.originalValue); + if (message.resolvedValue != null && Object.hasOwnProperty.call(message, "resolvedValue")) + $root.google.protobuf.Value.encode(message.resolvedValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConfidenceInterval message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify|verify} messages. + * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval} message ConfidenceInterval message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConfidenceInterval.encodeDelimited = function encodeDelimited(message, writer) { + IntentParameterValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConfidenceInterval message from the specified reader or buffer. + * Decodes an IntentParameterValue message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue * @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) { + IntentParameterValue.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.confidenceLevel = reader.double(); + message.originalValue = reader.string(); break; } case 2: { - message.ratio = reader.double(); - break; - } - case 3: { - message.lowerBound = reader.double(); - break; - } - case 4: { - message.upperBound = reader.double(); + message.resolvedValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } default: @@ -67529,899 +66636,534 @@ }; /** - * Decodes a ConfidenceInterval message from the specified reader or buffer, length delimited. + * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue * @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) { + IntentParameterValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConfidenceInterval message. + * Verifies an IntentParameterValue message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @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) { + IntentParameterValue.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"; + if (message.originalValue != null && message.hasOwnProperty("originalValue")) + if (!$util.isString(message.originalValue)) + return "originalValue: string expected"; + if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) { + var error = $root.google.protobuf.Value.verify(message.resolvedValue); + if (error) + return "resolvedValue." + error; + } return null; }; /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. + * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} ConfidenceInterval + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue */ - ConfidenceInterval.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval) + IntentParameterValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) 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); + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue(); + if (object.originalValue != null) + message.originalValue = String(object.originalValue); + if (object.resolvedValue != null) { + if (typeof object.resolvedValue !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.resolvedValue: object expected"); + message.resolvedValue = $root.google.protobuf.Value.fromObject(object.resolvedValue); + } return message; }; /** - * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval} message ConfidenceInterval + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} message IntentParameterValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConfidenceInterval.toObject = function toObject(message, options) { + IntentParameterValue.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; + object.originalValue = ""; + object.resolvedValue = null; } - 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; + if (message.originalValue != null && message.hasOwnProperty("originalValue")) + object.originalValue = message.originalValue; + if (message.resolvedValue != null && message.hasOwnProperty("resolvedValue")) + object.resolvedValue = $root.google.protobuf.Value.toObject(message.resolvedValue, options); return object; }; /** - * Converts this ConfidenceInterval to JSON. + * Converts this IntentParameterValue to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @instance * @returns {Object.} JSON object */ - ConfidenceInterval.prototype.toJSON = function toJSON() { + IntentParameterValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConfidenceInterval + * Gets the default type url for IntentParameterValue * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConfidenceInterval.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + IntentParameterValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue"; }; - return ConfidenceInterval; + return IntentParameterValue; })(); - Result.Metric = (function() { - - /** - * 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 - */ - - /** - * 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]]; - } - - /** - * 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; - - /** - * 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; - - /** - * Metric ratio. - * @member {number|null|undefined} ratio - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.ratio = null; - - /** - * Metric count. - * @member {number|null|undefined} count - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.count = null; + return IntentInfo; + })(); - /** - * 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; + WebhookRequest.SentimentAnalysisResult = (function() { - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Properties of a SentimentAnalysisResult. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @interface ISentimentAnalysisResult + * @property {number|null} [score] SentimentAnalysisResult score + * @property {number|null} [magnitude] SentimentAnalysisResult magnitude + */ - /** - * 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 SentimentAnalysisResult. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @classdesc Represents a SentimentAnalysisResult. + * @implements ISentimentAnalysisResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.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]]; + } - /** - * 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); - }; + /** + * SentimentAnalysisResult score. + * @member {number} score + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.score = 0; - /** - * 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; - }; + /** + * SentimentAnalysisResult magnitude. + * @member {number} magnitude + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @instance + */ + SentimentAnalysisResult.prototype.magnitude = 0; - /** - * 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(); - }; + /** + * Creates a new SentimentAnalysisResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult instance + */ + SentimentAnalysisResult.create = function create(properties) { + return new SentimentAnalysisResult(properties); + }; - /** - * 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 SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.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; + }; - /** - * 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 SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.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(); + }; - /** - * 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: + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.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.WebhookRequest.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.v3.WebhookRequest.SentimentAnalysisResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); 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) { - default: - if (typeof object.type === "number") { - message.type = object.type; + case 2: { + message.magnitude = reader.float(); break; } - break; - 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) { default: - if (typeof object.countType === "number") { - message.countType = object.countType; - break; - } - break; - 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; + 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.v3.Experiment.Result.Metric.confidenceInterval: object expected"); - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.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.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] === undefined ? message.type : $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] === undefined ? message.countType : $root.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType[message.countType] : message.countType; + /** + * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.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.v3.WebhookRequest.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.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult} SentimentAnalysisResult + */ + SentimentAnalysisResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.magnitude != null) + message.magnitude = Number(object.magnitude); + return message; + }; - /** - * 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); - }; + /** + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.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; + }; - /** - * Gets the default type url for Metric - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Result.Metric"; - }; + /** + * Converts this SentimentAnalysisResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @instance + * @returns {Object.} JSON object + */ + SentimentAnalysisResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Metric; - })(); + /** + * Gets the default type url for SentimentAnalysisResult + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SentimentAnalysisResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult"; + }; - Result.VersionMetrics = (function() { + return SentimentAnalysisResult; + })(); - /** - * 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 - */ + return WebhookRequest; + })(); - /** - * 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]]; - } + v3.WebhookResponse = (function() { - /** - * VersionMetrics version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.version = ""; + /** + * Properties of a WebhookResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IWebhookResponse + * @property {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null} [fulfillmentResponse] WebhookResponse fulfillmentResponse + * @property {google.cloud.dialogflow.cx.v3.IPageInfo|null} [pageInfo] WebhookResponse pageInfo + * @property {google.cloud.dialogflow.cx.v3.ISessionInfo|null} [sessionInfo] WebhookResponse sessionInfo + * @property {google.protobuf.IStruct|null} [payload] WebhookResponse payload + * @property {string|null} [targetPage] WebhookResponse targetPage + * @property {string|null} [targetFlow] WebhookResponse targetFlow + */ - /** - * VersionMetrics metrics. - * @member {Array.} metrics - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.metrics = $util.emptyArray; + /** + * Constructs a new WebhookResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a WebhookResponse. + * @implements IWebhookResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set + */ + function WebhookResponse(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 sessionCount. - * @member {number} sessionCount - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.sessionCount = 0; + /** + * WebhookResponse fulfillmentResponse. + * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance + */ + WebhookResponse.prototype.fulfillmentResponse = null; - /** - * 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); - }; + /** + * WebhookResponse pageInfo. + * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance + */ + WebhookResponse.prototype.pageInfo = null; - /** - * 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; - }; + /** + * WebhookResponse sessionInfo. + * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance + */ + WebhookResponse.prototype.sessionInfo = null; - /** - * 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(); - }; + /** + * WebhookResponse payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance + */ + WebhookResponse.prototype.payload = null; - /** - * 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; - }; + /** + * WebhookResponse targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance + */ + WebhookResponse.prototype.targetPage = null; - /** - * 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()); - }; + /** + * WebhookResponse targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance + */ + WebhookResponse.prototype.targetFlow = null; - /** - * 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); - }; - - /** - * Gets the default type url for VersionMetrics - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - VersionMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics"; - }; - - return VersionMetrics; - })(); - - return Result; - })(); - - 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]]; - } + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * VersionVariants variants. - * @member {Array.} variants - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * WebhookResponse transition. + * @member {"targetPage"|"targetFlow"|undefined} transition + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ - VersionVariants.prototype.variants = $util.emptyArray; + Object.defineProperty(WebhookResponse.prototype, "transition", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new VersionVariants instance using the specified properties. + * Creates a new WebhookResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants instance + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse instance */ - VersionVariants.create = function create(properties) { - return new VersionVariants(properties); + WebhookResponse.create = function create(properties) { + return new WebhookResponse(properties); }; /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. + * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionVariants.encode = function encode(message, writer) { + WebhookResponse.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(); + if (message.fulfillmentResponse != null && Object.hasOwnProperty.call(message, "fulfillmentResponse")) + $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.encode(message.fulfillmentResponse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pageInfo != null && Object.hasOwnProperty.call(message, "pageInfo")) + $root.google.cloud.dialogflow.cx.v3.PageInfo.encode(message.pageInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sessionInfo != null && Object.hasOwnProperty.call(message, "sessionInfo")) + $root.google.cloud.dialogflow.cx.v3.SessionInfo.encode(message.sessionInfo, 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.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetFlow); return writer; }; /** - * Encodes the specified VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.verify|verify} messages. + * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { + WebhookResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VersionVariants message from the specified reader or buffer. + * Decodes a WebhookResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse * @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) { + WebhookResponse.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse(); 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())); + message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); + break; + } + case 2: { + message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); + break; + } + case 3: { + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.decode(reader, reader.uint32()); + break; + } + case 4: { + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 5: { + message.targetPage = reader.string(); + break; + } + case 6: { + message.targetFlow = reader.string(); break; } default: @@ -68433,138 +67175,193 @@ }; /** - * Decodes a VersionVariants message from the specified reader or buffer, length delimited. + * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse * @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) { + WebhookResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VersionVariants message. + * Verifies a WebhookResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @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) { + WebhookResponse.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; - } + var properties = {}; + if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) { + var error = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify(message.fulfillmentResponse); + if (error) + return "fulfillmentResponse." + error; + } + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.verify(message.pageInfo); + if (error) + return "pageInfo." + error; + } + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); + if (error) + return "sessionInfo." + error; + } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.transition = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.transition === 1) + return "transition: multiple values"; + properties.transition = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; } return null; }; /** - * Creates a VersionVariants 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse */ - VersionVariants.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants) + WebhookResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse) 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]); - } + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse(); + if (object.fulfillmentResponse != null) { + if (typeof object.fulfillmentResponse !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillmentResponse: object expected"); + message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.fromObject(object.fulfillmentResponse); + } + if (object.pageInfo != null) { + if (typeof object.pageInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.pageInfo: object expected"); + message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.fromObject(object.pageInfo); + } + if (object.sessionInfo != null) { + if (typeof object.sessionInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.sessionInfo: object expected"); + message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.fromObject(object.sessionInfo); + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); } + if (object.targetPage != null) + message.targetPage = String(object.targetPage); + if (object.targetFlow != null) + message.targetFlow = String(object.targetFlow); return message; }; /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. + * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants} message VersionVariants + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse} message WebhookResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VersionVariants.toObject = function toObject(message, options) { + WebhookResponse.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); + if (options.defaults) { + object.fulfillmentResponse = null; + object.pageInfo = null; + object.sessionInfo = null; + object.payload = null; + } + if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) + object.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.toObject(message.fulfillmentResponse, options); + if (message.pageInfo != null && message.hasOwnProperty("pageInfo")) + object.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.toObject(message.pageInfo, options); + if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) + object.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.toObject(message.sessionInfo, options); + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.transition = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.transition = "targetFlow"; } return object; }; /** - * Converts this VersionVariants to JSON. + * Converts this WebhookResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance * @returns {Object.} JSON object */ - VersionVariants.prototype.toJSON = function toJSON() { + WebhookResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VersionVariants + * Gets the default type url for WebhookResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VersionVariants.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + WebhookResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.VersionVariants"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookResponse"; }; - VersionVariants.Variant = (function() { + WebhookResponse.FulfillmentResponse = (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 + * Properties of a FulfillmentResponse. + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @interface IFulfillmentResponse + * @property {Array.|null} [messages] FulfillmentResponse messages + * @property {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null} [mergeBehavior] FulfillmentResponse mergeBehavior */ /** - * Constructs a new Variant. - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants - * @classdesc Represents a Variant. - * @implements IVariant + * Constructs a new FulfillmentResponse. + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @classdesc Represents a FulfillmentResponse. + * @implements IFulfillmentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set */ - function Variant(properties) { + function FulfillmentResponse(properties) { + this.messages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68572,103 +67369,92 @@ } /** - * 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 + * FulfillmentResponse messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @instance */ - Variant.prototype.trafficAllocation = 0; + FulfillmentResponse.prototype.messages = $util.emptyArray; /** - * Variant isControlGroup. - * @member {boolean} isControlGroup - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * FulfillmentResponse mergeBehavior. + * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior} mergeBehavior + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @instance */ - Variant.prototype.isControlGroup = false; + FulfillmentResponse.prototype.mergeBehavior = 0; /** - * Creates a new Variant instance using the specified properties. + * Creates a new FulfillmentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant instance + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse instance */ - Variant.create = function create(properties) { - return new Variant(properties); + FulfillmentResponse.create = function create(properties) { + return new FulfillmentResponse(properties); }; /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Variant.encode = function encode(message, writer) { + FulfillmentResponse.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.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.mergeBehavior != null && Object.hasOwnProperty.call(message, "mergeBehavior")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mergeBehavior); return writer; }; /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Variant.encodeDelimited = function encodeDelimited(message, writer) { + FulfillmentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Variant message from the specified reader or buffer. + * Decodes a FulfillmentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse * @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) { + FulfillmentResponse.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.version = reader.string(); + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); break; } case 2: { - message.trafficAllocation = reader.float(); - break; - } - case 3: { - message.isControlGroup = reader.bool(); + message.mergeBehavior = reader.int32(); break; } default: @@ -68680,143 +67466,193 @@ }; /** - * Decodes a Variant message from the specified reader or buffer, length delimited. + * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse * @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) { + FulfillmentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Variant message. + * Verifies a FulfillmentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @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) { + FulfillmentResponse.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"; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); + if (error) + return "messages." + error; + } + } + if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) + switch (message.mergeBehavior) { + default: + return "mergeBehavior: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse */ - Variant.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant) + FulfillmentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse) 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); + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse(); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); + } + } + switch (object.mergeBehavior) { + default: + if (typeof object.mergeBehavior === "number") { + message.mergeBehavior = object.mergeBehavior; + break; + } + break; + case "MERGE_BEHAVIOR_UNSPECIFIED": + case 0: + message.mergeBehavior = 0; + break; + case "APPEND": + case 1: + message.mergeBehavior = 1; + break; + case "REPLACE": + case 2: + message.mergeBehavior = 2; + break; + } return message; }; /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. + * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} message Variant + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} message FulfillmentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Variant.toObject = function toObject(message, options) { + FulfillmentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.version = ""; - object.trafficAllocation = 0; - object.isControlGroup = false; + if (options.arrays || options.defaults) + object.messages = []; + if (options.defaults) + object.mergeBehavior = options.enums === String ? "MERGE_BEHAVIOR_UNSPECIFIED" : 0; + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.messages[j], options); } - 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; + if (message.mergeBehavior != null && message.hasOwnProperty("mergeBehavior")) + object.mergeBehavior = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior[message.mergeBehavior] === undefined ? message.mergeBehavior : $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior[message.mergeBehavior] : message.mergeBehavior; return object; }; /** - * Converts this Variant to JSON. + * Converts this FulfillmentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @instance * @returns {Object.} JSON object */ - Variant.prototype.toJSON = function toJSON() { + FulfillmentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Variant + * Gets the default type url for FulfillmentResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Variant.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FulfillmentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.VersionVariants.Variant"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse"; }; - return Variant; + /** + * MergeBehavior enum. + * @name google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior + * @enum {number} + * @property {number} MERGE_BEHAVIOR_UNSPECIFIED=0 MERGE_BEHAVIOR_UNSPECIFIED value + * @property {number} APPEND=1 APPEND value + * @property {number} REPLACE=2 REPLACE value + */ + FulfillmentResponse.MergeBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MERGE_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "APPEND"] = 1; + values[valuesById[2] = "REPLACE"] = 2; + return values; + })(); + + return FulfillmentResponse; })(); - return VersionVariants; + return WebhookResponse; })(); - v3.VariantsHistory = (function() { + v3.PageInfo = (function() { /** - * Properties of a VariantsHistory. + * Properties of a PageInfo. * @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 + * @interface IPageInfo + * @property {string|null} [currentPage] PageInfo currentPage + * @property {string|null} [displayName] PageInfo displayName + * @property {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo */ /** - * Constructs a new VariantsHistory. + * Constructs a new PageInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a VariantsHistory. - * @implements IVariantsHistory + * @classdesc Represents a PageInfo. + * @implements IPageInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set */ - function VariantsHistory(properties) { + function PageInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -68824,103 +67660,103 @@ } /** - * VariantsHistory versionVariants. - * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * PageInfo currentPage. + * @member {string} currentPage + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance */ - VariantsHistory.prototype.versionVariants = null; + PageInfo.prototype.currentPage = ""; /** - * VariantsHistory updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * PageInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance */ - VariantsHistory.prototype.updateTime = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + PageInfo.prototype.displayName = ""; /** - * VariantsHistory variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * PageInfo formInfo. + * @member {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null|undefined} formInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance */ - Object.defineProperty(VariantsHistory.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); + PageInfo.prototype.formInfo = null; /** - * Creates a new VariantsHistory instance using the specified properties. + * Creates a new PageInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory instance + * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo instance */ - VariantsHistory.create = function create(properties) { - return new VariantsHistory(properties); + PageInfo.create = function create(properties) { + return new PageInfo(properties); }; /** - * Encodes the specified VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VariantsHistory.encode = function encode(message, writer) { + PageInfo.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(); + if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPage); + if (message.formInfo != null && Object.hasOwnProperty.call(message, "formInfo")) + $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.encode(message.formInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayName); return writer; }; /** - * Encodes the specified VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { + PageInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VariantsHistory message from the specified reader or buffer. + * Decodes a PageInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo * @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) { + PageInfo.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.PageInfo(); 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()); + message.currentPage = reader.string(); break; } - case 2: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 4: { + message.displayName = reader.string(); + break; + } + case 3: { + message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.decode(reader, reader.uint32()); break; } default: @@ -68932,675 +67768,718 @@ }; /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. + * Decodes a PageInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo * @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) { + PageInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VariantsHistory message. + * Verifies a PageInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @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) { + PageInfo.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 (message.currentPage != null && message.hasOwnProperty("currentPage")) + if (!$util.isString(message.currentPage)) + return "currentPage: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.formInfo != null && message.hasOwnProperty("formInfo")) { + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify(message.formInfo); if (error) - return "updateTime." + error; + return "formInfo." + error; } return null; }; /** - * Creates a VariantsHistory 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo */ - VariantsHistory.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VariantsHistory) + PageInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo) 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); + var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo(); + if (object.currentPage != null) + message.currentPage = String(object.currentPage); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.formInfo != null) { + if (typeof object.formInfo !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.formInfo: object expected"); + message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.fromObject(object.formInfo); } return message; }; /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. + * Creates a plain object from a PageInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.VariantsHistory} message VariantsHistory + * @param {google.cloud.dialogflow.cx.v3.PageInfo} message PageInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VariantsHistory.toObject = function toObject(message, options) { + PageInfo.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 (options.defaults) { + object.currentPage = ""; + object.formInfo = null; + object.displayName = ""; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + object.currentPage = message.currentPage; + if (message.formInfo != null && message.hasOwnProperty("formInfo")) + object.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.toObject(message.formInfo, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; /** - * Converts this VariantsHistory to JSON. + * Converts this PageInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance * @returns {Object.} JSON object */ - VariantsHistory.prototype.toJSON = function toJSON() { + PageInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VariantsHistory + * Gets the default type url for PageInfo * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VariantsHistory.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PageInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.VariantsHistory"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.PageInfo"; }; - return VariantsHistory; - })(); - - v3.RolloutConfig = (function() { + PageInfo.FormInfo = (function() { - /** - * Properties of a RolloutConfig. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRolloutConfig - * @property {Array.|null} [rolloutSteps] RolloutConfig rolloutSteps - * @property {string|null} [rolloutCondition] RolloutConfig rolloutCondition - * @property {string|null} [failureCondition] RolloutConfig failureCondition - */ + /** + * Properties of a FormInfo. + * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @interface IFormInfo + * @property {Array.|null} [parameterInfo] FormInfo parameterInfo + */ - /** - * Constructs a new RolloutConfig. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RolloutConfig. - * @implements IRolloutConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set - */ - function RolloutConfig(properties) { - this.rolloutSteps = []; - 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 FormInfo. + * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @classdesc Represents a FormInfo. + * @implements IFormInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo=} [properties] Properties to set + */ + function FormInfo(properties) { + this.parameterInfo = []; + 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]]; + } - /** - * RolloutConfig rolloutSteps. - * @member {Array.} rolloutSteps - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @instance - */ - RolloutConfig.prototype.rolloutSteps = $util.emptyArray; + /** + * FormInfo parameterInfo. + * @member {Array.} parameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @instance + */ + FormInfo.prototype.parameterInfo = $util.emptyArray; - /** - * RolloutConfig rolloutCondition. - * @member {string} rolloutCondition - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @instance - */ - RolloutConfig.prototype.rolloutCondition = ""; + /** + * Creates a new FormInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo instance + */ + FormInfo.create = function create(properties) { + return new FormInfo(properties); + }; - /** - * RolloutConfig failureCondition. - * @member {string} failureCondition - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @instance - */ - RolloutConfig.prototype.failureCondition = ""; + /** + * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo} message FormInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FormInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameterInfo != null && message.parameterInfo.length) + for (var i = 0; i < message.parameterInfo.length; ++i) + $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.encode(message.parameterInfo[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a new RolloutConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig instance - */ - RolloutConfig.create = function create(properties) { - return new RolloutConfig(properties); - }; + /** + * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo} message FormInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FormInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolloutConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rolloutSteps != null && message.rolloutSteps.length) - for (var i = 0; i < message.rolloutSteps.length; ++i) - $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.encode(message.rolloutSteps[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.rolloutCondition != null && Object.hasOwnProperty.call(message, "rolloutCondition")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.rolloutCondition); - if (message.failureCondition != null && Object.hasOwnProperty.call(message, "failureCondition")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.failureCondition); - return writer; - }; + /** + * Decodes a FormInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @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.PageInfo.FormInfo} FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FormInfo.decode = function decode(reader, length) { + 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.PageInfo.FormInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.parameterInfo && message.parameterInfo.length)) + message.parameterInfo = []; + message.parameterInfo.push($root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolloutConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RolloutConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @static - * @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.RolloutConfig} RolloutConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolloutConfig.decode = function decode(reader, length) { - 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.RolloutConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.rolloutSteps && message.rolloutSteps.length)) - message.rolloutSteps = []; - message.rolloutSteps.push($root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.decode(reader, reader.uint32())); - break; - } - case 2: { - message.rolloutCondition = reader.string(); - break; - } - case 3: { - message.failureCondition = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolloutConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RolloutConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RolloutConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rolloutSteps != null && message.hasOwnProperty("rolloutSteps")) { - if (!Array.isArray(message.rolloutSteps)) - return "rolloutSteps: array expected"; - for (var i = 0; i < message.rolloutSteps.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify(message.rolloutSteps[i]); - if (error) - return "rolloutSteps." + error; - } - } - if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) - if (!$util.isString(message.rolloutCondition)) - return "rolloutCondition: string expected"; - if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) - if (!$util.isString(message.failureCondition)) - return "failureCondition: string expected"; - return null; - }; - - /** - * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig - */ - RolloutConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig(); - if (object.rolloutSteps) { - if (!Array.isArray(object.rolloutSteps)) - throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.rolloutSteps: array expected"); - message.rolloutSteps = []; - for (var i = 0; i < object.rolloutSteps.length; ++i) { - if (typeof object.rolloutSteps[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.rolloutSteps: object expected"); - message.rolloutSteps[i] = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.fromObject(object.rolloutSteps[i]); - } - } - if (object.rolloutCondition != null) - message.rolloutCondition = String(object.rolloutCondition); - if (object.failureCondition != null) - message.failureCondition = String(object.failureCondition); - return message; - }; - - /** - * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig} message RolloutConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RolloutConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rolloutSteps = []; - if (options.defaults) { - object.rolloutCondition = ""; - object.failureCondition = ""; - } - if (message.rolloutSteps && message.rolloutSteps.length) { - object.rolloutSteps = []; - for (var j = 0; j < message.rolloutSteps.length; ++j) - object.rolloutSteps[j] = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.toObject(message.rolloutSteps[j], options); - } - if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) - object.rolloutCondition = message.rolloutCondition; - if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) - object.failureCondition = message.failureCondition; - return object; - }; - - /** - * Converts this RolloutConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @instance - * @returns {Object.} JSON object - */ - RolloutConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RolloutConfig - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RolloutConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.RolloutConfig"; - }; - - RolloutConfig.RolloutStep = (function() { - - /** - * Properties of a RolloutStep. - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @interface IRolloutStep - * @property {string|null} [displayName] RolloutStep displayName - * @property {number|null} [trafficPercent] RolloutStep trafficPercent - * @property {google.protobuf.IDuration|null} [minDuration] RolloutStep minDuration - */ - - /** - * Constructs a new RolloutStep. - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @classdesc Represents a RolloutStep. - * @implements IRolloutStep - * @constructor - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep=} [properties] Properties to set - */ - function RolloutStep(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]]; - } - - /** - * RolloutStep displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @instance - */ - RolloutStep.prototype.displayName = ""; - - /** - * RolloutStep trafficPercent. - * @member {number} trafficPercent - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @instance - */ - RolloutStep.prototype.trafficPercent = 0; - - /** - * RolloutStep minDuration. - * @member {google.protobuf.IDuration|null|undefined} minDuration - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @instance - */ - RolloutStep.prototype.minDuration = null; - - /** - * Creates a new RolloutStep instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep instance - */ - RolloutStep.create = function create(properties) { - return new RolloutStep(properties); - }; - - /** - * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolloutStep.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.trafficPercent != null && Object.hasOwnProperty.call(message, "trafficPercent")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trafficPercent); - if (message.minDuration != null && Object.hasOwnProperty.call(message, "minDuration")) - $root.google.protobuf.Duration.encode(message.minDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RolloutStep.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RolloutStep message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @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.RolloutConfig.RolloutStep} RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolloutStep.decode = function decode(reader, length) { - 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.RolloutConfig.RolloutStep(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.displayName = reader.string(); - break; - } - case 2: { - message.trafficPercent = reader.int32(); - break; - } - case 3: { - message.minDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RolloutStep message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RolloutStep.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a FormInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FormInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Verifies a RolloutStep message. + * Verifies a FormInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RolloutStep.verify = function verify(message) { + FormInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) - if (!$util.isInteger(message.trafficPercent)) - return "trafficPercent: integer expected"; - if (message.minDuration != null && message.hasOwnProperty("minDuration")) { - var error = $root.google.protobuf.Duration.verify(message.minDuration); - if (error) - return "minDuration." + error; + if (message.parameterInfo != null && message.hasOwnProperty("parameterInfo")) { + if (!Array.isArray(message.parameterInfo)) + return "parameterInfo: array expected"; + for (var i = 0; i < message.parameterInfo.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify(message.parameterInfo[i]); + if (error) + return "parameterInfo." + error; + } } return null; }; /** - * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. + * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo */ - RolloutStep.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep) + FormInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.trafficPercent != null) - message.trafficPercent = object.trafficPercent | 0; - if (object.minDuration != null) { - if (typeof object.minDuration !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.minDuration: object expected"); - message.minDuration = $root.google.protobuf.Duration.fromObject(object.minDuration); + var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo(); + if (object.parameterInfo) { + if (!Array.isArray(object.parameterInfo)) + throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.parameterInfo: array expected"); + message.parameterInfo = []; + for (var i = 0; i < object.parameterInfo.length; ++i) { + if (typeof object.parameterInfo[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.parameterInfo: object expected"); + message.parameterInfo[i] = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.fromObject(object.parameterInfo[i]); + } } return message; }; /** - * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. + * Creates a plain object from a FormInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} message RolloutStep + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} message FormInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolloutStep.toObject = function toObject(message, options) { + FormInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.displayName = ""; - object.trafficPercent = 0; - object.minDuration = null; + if (options.arrays || options.defaults) + object.parameterInfo = []; + if (message.parameterInfo && message.parameterInfo.length) { + object.parameterInfo = []; + for (var j = 0; j < message.parameterInfo.length; ++j) + object.parameterInfo[j] = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.toObject(message.parameterInfo[j], options); } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) - object.trafficPercent = message.trafficPercent; - if (message.minDuration != null && message.hasOwnProperty("minDuration")) - object.minDuration = $root.google.protobuf.Duration.toObject(message.minDuration, options); return object; }; /** - * Converts this RolloutStep to JSON. + * Converts this FormInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @instance * @returns {Object.} JSON object */ - RolloutStep.prototype.toJSON = function toJSON() { + FormInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RolloutStep + * Gets the default type url for FormInfo * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RolloutStep.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FormInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.PageInfo.FormInfo"; }; - return RolloutStep; + FormInfo.ParameterInfo = (function() { + + /** + * Properties of a ParameterInfo. + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @interface IParameterInfo + * @property {string|null} [displayName] ParameterInfo displayName + * @property {boolean|null} [required] ParameterInfo required + * @property {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null} [state] ParameterInfo state + * @property {google.protobuf.IValue|null} [value] ParameterInfo value + * @property {boolean|null} [justCollected] ParameterInfo justCollected + */ + + /** + * Constructs a new ParameterInfo. + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @classdesc Represents a ParameterInfo. + * @implements IParameterInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set + */ + function ParameterInfo(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]]; + } + + /** + * ParameterInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.displayName = ""; + + /** + * ParameterInfo required. + * @member {boolean} required + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.required = false; + + /** + * ParameterInfo state. + * @member {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState} state + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.state = 0; + + /** + * ParameterInfo value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.value = null; + + /** + * ParameterInfo justCollected. + * @member {boolean} justCollected + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.justCollected = false; + + /** + * Creates a new ParameterInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo instance + */ + ParameterInfo.create = function create(properties) { + return new ParameterInfo(properties); + }; + + /** + * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.required != null && Object.hasOwnProperty.call(message, "required")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.required); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.justCollected != null && Object.hasOwnProperty.call(message, "justCollected")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.justCollected); + return writer; + }; + + /** + * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @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.PageInfo.FormInfo.ParameterInfo} ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterInfo.decode = function decode(reader, length) { + 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.PageInfo.FormInfo.ParameterInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.displayName = reader.string(); + break; + } + case 2: { + message.required = reader.bool(); + break; + } + case 3: { + message.state = reader.int32(); + break; + } + case 4: { + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 5: { + message.justCollected = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ParameterInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParameterInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.required != null && message.hasOwnProperty("required")) + if (typeof message.required !== "boolean") + return "required: boolean 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.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; + } + if (message.justCollected != null && message.hasOwnProperty("justCollected")) + if (typeof message.justCollected !== "boolean") + return "justCollected: boolean expected"; + return null; + }; + + /** + * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo + */ + ParameterInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.required != null) + message.required = Boolean(object.required); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "PARAMETER_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "EMPTY": + case 1: + message.state = 1; + break; + case "INVALID": + case 2: + message.state = 2; + break; + case "FILLED": + case 3: + message.state = 3; + break; + } + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); + } + if (object.justCollected != null) + message.justCollected = Boolean(object.justCollected); + return message; + }; + + /** + * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} message ParameterInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ParameterInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayName = ""; + object.required = false; + object.state = options.enums === String ? "PARAMETER_STATE_UNSPECIFIED" : 0; + object.value = null; + object.justCollected = false; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.required != null && message.hasOwnProperty("required")) + object.required = message.required; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState[message.state] === undefined ? message.state : $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState[message.state] : message.state; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); + if (message.justCollected != null && message.hasOwnProperty("justCollected")) + object.justCollected = message.justCollected; + return object; + }; + + /** + * Converts this ParameterInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + * @returns {Object.} JSON object + */ + ParameterInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ParameterInfo + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ParameterInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo"; + }; + + /** + * ParameterState enum. + * @name google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState + * @enum {number} + * @property {number} PARAMETER_STATE_UNSPECIFIED=0 PARAMETER_STATE_UNSPECIFIED value + * @property {number} EMPTY=1 EMPTY value + * @property {number} INVALID=2 INVALID value + * @property {number} FILLED=3 FILLED value + */ + ParameterInfo.ParameterState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PARAMETER_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EMPTY"] = 1; + values[valuesById[2] = "INVALID"] = 2; + values[valuesById[3] = "FILLED"] = 3; + return values; + })(); + + return ParameterInfo; + })(); + + return FormInfo; })(); - return RolloutConfig; + return PageInfo; })(); - v3.RolloutState = (function() { + v3.SessionInfo = (function() { /** - * Properties of a RolloutState. + * Properties of a SessionInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IRolloutState - * @property {string|null} [step] RolloutState step - * @property {number|null} [stepIndex] RolloutState stepIndex - * @property {google.protobuf.ITimestamp|null} [startTime] RolloutState startTime + * @interface ISessionInfo + * @property {string|null} [session] SessionInfo session + * @property {Object.|null} [parameters] SessionInfo parameters */ /** - * Constructs a new RolloutState. + * Constructs a new SessionInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RolloutState. - * @implements IRolloutState + * @classdesc Represents a SessionInfo. + * @implements ISessionInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRolloutState=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set */ - function RolloutState(properties) { + function SessionInfo(properties) { + this.parameters = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -69608,103 +68487,111 @@ } /** - * RolloutState step. - * @member {string} step - * @memberof google.cloud.dialogflow.cx.v3.RolloutState - * @instance - */ - RolloutState.prototype.step = ""; - - /** - * RolloutState stepIndex. - * @member {number} stepIndex - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * SessionInfo session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance */ - RolloutState.prototype.stepIndex = 0; + SessionInfo.prototype.session = ""; /** - * RolloutState startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * SessionInfo parameters. + * @member {Object.} parameters + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance */ - RolloutState.prototype.startTime = null; + SessionInfo.prototype.parameters = $util.emptyObject; /** - * Creates a new RolloutState instance using the specified properties. + * Creates a new SessionInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutState=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState instance + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo instance */ - RolloutState.create = function create(properties) { - return new RolloutState(properties); + SessionInfo.create = function create(properties) { + return new SessionInfo(properties); }; /** - * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. + * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutState.encode = function encode(message, writer) { + SessionInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.step != null && Object.hasOwnProperty.call(message, "step")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.step); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.stepIndex != null && Object.hasOwnProperty.call(message, "stepIndex")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stepIndex); + if (message.session != null && Object.hasOwnProperty.call(message, "session")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. + * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RolloutState.encodeDelimited = function encodeDelimited(message, writer) { + SessionInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RolloutState message from the specified reader or buffer. + * Decodes a SessionInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @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.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutState.decode = function decode(reader, length) { + SessionInfo.decode = function decode(reader, length) { 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.RolloutState(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SessionInfo(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.step = reader.string(); - break; - } - case 3: { - message.stepIndex = reader.int32(); + message.session = reader.string(); break; } case 2: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (message.parameters === $util.emptyObject) + message.parameters = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; break; } default: @@ -69716,642 +68603,431 @@ }; /** - * Decodes a RolloutState message from the specified reader or buffer, length delimited. + * Decodes a SessionInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RolloutState.decodeDelimited = function decodeDelimited(reader) { + SessionInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RolloutState message. + * Verifies a SessionInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RolloutState.verify = function verify(message) { + SessionInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.step != null && message.hasOwnProperty("step")) - if (!$util.isString(message.step)) - return "step: string expected"; - if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) - if (!$util.isInteger(message.stepIndex)) - return "stepIndex: integer expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; + if (message.session != null && message.hasOwnProperty("session")) + if (!$util.isString(message.session)) + return "session: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } } return null; }; /** - * Creates a RolloutState 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo */ - RolloutState.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutState) + SessionInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.RolloutState(); - if (object.step != null) - message.step = String(object.step); - if (object.stepIndex != null) - message.stepIndex = object.stepIndex | 0; - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutState.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + var message = new $root.google.cloud.dialogflow.cx.v3.SessionInfo(); + if (object.session != null) + message.session = String(object.session); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionInfo.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionInfo.parameters: object expected"); + message.parameters[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameters[keys[i]]); + } } return message; }; /** - * Creates a plain object from a RolloutState message. Also converts values to other types if specified. + * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutState} message RolloutState + * @param {google.cloud.dialogflow.cx.v3.SessionInfo} message SessionInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolloutState.toObject = function toObject(message, options) { + SessionInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.step = ""; - object.startTime = null; - object.stepIndex = 0; + if (options.objects || options.defaults) + object.parameters = {}; + if (options.defaults) + object.session = ""; + if (message.session != null && message.hasOwnProperty("session")) + object.session = message.session; + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameters[keys2[j]], options); } - if (message.step != null && message.hasOwnProperty("step")) - object.step = message.step; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) - object.stepIndex = message.stepIndex; return object; }; /** - * Converts this RolloutState to JSON. + * Converts this SessionInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance * @returns {Object.} JSON object */ - RolloutState.prototype.toJSON = function toJSON() { + SessionInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RolloutState + * Gets the default type url for SessionInfo * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RolloutState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SessionInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.RolloutState"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SessionInfo"; }; - return RolloutState; + return SessionInfo; })(); - v3.ListExperimentsRequest = (function() { + v3.Experiments = (function() { /** - * Properties of a ListExperimentsRequest. + * Constructs a new Experiments service. * @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 + * @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; /** - * 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. + * Creates new Experiments service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest instance + * @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. */ - ListExperimentsRequest.create = function create(properties) { - return new ListExperimentsRequest(properties); + Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * 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 + * 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 */ - 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 + * 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 */ - ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + 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" }); /** - * 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 + * 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 */ - 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 + * 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 */ - 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 + * 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 */ - 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; - }; + 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" }); /** - * 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 + * 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 */ - 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 + * 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 */ - 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 + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @returns {Object.} JSON object - */ - ListExperimentsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListExperimentsRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * @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 */ - ListExperimentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListExperimentsRequest"; - }; - - return ListExperimentsRequest; - })(); - - v3.ListExperimentsResponse = (function() { + 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" }); /** - * Properties of a ListExperimentsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListExperimentsResponse - * @property {Array.|null} [experiments] ListExperimentsResponse experiments - * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken + * 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 */ /** - * 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 + * 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 */ - 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 + * 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 */ - ListExperimentsResponse.prototype.experiments = $util.emptyArray; + 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" }); /** - * ListExperimentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * 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 */ - 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 + * 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 */ - 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 + * 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 */ - ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + 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" }); /** - * 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 + * 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 */ - 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 ListExperimentsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.ListExperimentsResponse} ListExperimentsResponse - * @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.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 */ - ListExperimentsResponse.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.v3.ListExperimentsResponse - * @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.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 */ - 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.v3.Experiment.verify(message.experiments[i]); - if (error) - return "experiments." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + 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" }); /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse + * 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 */ - 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.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 a ListExperimentsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} message ListExperimentsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * 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 */ - 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.v3.Experiment.toObject(message.experiments[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; /** - * Converts this ListExperimentsResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * 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 + * @param {google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @returns {undefined} + * @variation 1 */ - ListExperimentsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + 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" }); /** - * Gets the default type url for ListExperimentsResponse - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * 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 + * @returns {Promise} Promise + * @variation 2 */ - ListExperimentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListExperimentsResponse"; - }; - return ListExperimentsResponse; + return Experiments; })(); - v3.GetExperimentRequest = (function() { + v3.Experiment = (function() { /** - * Properties of a GetExperimentRequest. + * Properties of an Experiment. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetExperimentRequest - * @property {string|null} [name] GetExperimentRequest 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.IRolloutConfig|null} [rolloutConfig] Experiment rolloutConfig + * @property {google.cloud.dialogflow.cx.v3.IRolloutState|null} [rolloutState] Experiment rolloutState + * @property {string|null} [rolloutFailureReason] Experiment rolloutFailureReason + * @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 GetExperimentRequest. + * Constructs a new Experiment. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetExperimentRequest. - * @implements IGetExperimentRequest + * @classdesc Represents an Experiment. + * @implements IExperiment * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set */ - function GetExperimentRequest(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) @@ -70359,293 +69035,274 @@ } /** - * GetExperimentRequest name. + * Experiment name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - GetExperimentRequest.prototype.name = ""; + Experiment.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 + * Experiment displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetExperimentRequest.create = function create(properties) { - return new GetExperimentRequest(properties); - }; + Experiment.prototype.displayName = ""; /** - * 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 + * Experiment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - 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; - }; + Experiment.prototype.description = ""; /** - * 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 + * Experiment state. + * @member {google.cloud.dialogflow.cx.v3.Experiment.State} state + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Experiment.prototype.state = 0; /** - * 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 + * Experiment definition. + * @member {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null|undefined} definition + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - 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; - }; + Experiment.prototype.definition = null; /** - * 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 + * Experiment rolloutConfig. + * @member {google.cloud.dialogflow.cx.v3.IRolloutConfig|null|undefined} rolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Experiment.prototype.rolloutConfig = null; /** - * 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 + * Experiment rolloutState. + * @member {google.cloud.dialogflow.cx.v3.IRolloutState|null|undefined} rolloutState + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - 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; - }; + Experiment.prototype.rolloutState = 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 + * Experiment rolloutFailureReason. + * @member {string} rolloutFailureReason + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - 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; - }; + Experiment.prototype.rolloutFailureReason = ""; /** - * 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 + * Experiment result. + * @member {google.cloud.dialogflow.cx.v3.Experiment.IResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - 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; - }; + Experiment.prototype.result = null; /** - * Converts this GetExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * Experiment createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance - * @returns {Object.} JSON object */ - GetExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Experiment.prototype.createTime = null; /** - * Gets the default type url for GetExperimentRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Experiment startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - GetExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetExperimentRequest"; - }; - - return GetExperimentRequest; - })(); - - v3.CreateExperimentRequest = (function() { + Experiment.prototype.startTime = null; /** - * Properties of a CreateExperimentRequest. - * @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 + * Experiment endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ + Experiment.prototype.endTime = null; /** - * Constructs a new CreateExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateExperimentRequest. - * @implements ICreateExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set + * Experiment lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - function CreateExperimentRequest(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; /** - * CreateExperimentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * Experiment experimentLength. + * @member {google.protobuf.IDuration|null|undefined} experimentLength + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - CreateExperimentRequest.prototype.parent = ""; + Experiment.prototype.experimentLength = null; /** - * CreateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * Experiment variantsHistory. + * @member {Array.} variantsHistory + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - CreateExperimentRequest.prototype.experiment = null; + Experiment.prototype.variantsHistory = $util.emptyArray; /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @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.IExperiment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment instance */ - CreateExperimentRequest.create = function create(properties) { - return new CreateExperimentRequest(properties); + Experiment.create = function create(properties) { + return new Experiment(properties); }; /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.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.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest 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 */ - CreateExperimentRequest.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.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.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.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(); + if (message.rolloutConfig != null && Object.hasOwnProperty.call(message, "rolloutConfig")) + $root.google.cloud.dialogflow.cx.v3.RolloutConfig.encode(message.rolloutConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.rolloutState != null && Object.hasOwnProperty.call(message, "rolloutState")) + $root.google.cloud.dialogflow.cx.v3.RolloutState.encode(message.rolloutState, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.rolloutFailureReason != null && Object.hasOwnProperty.call(message, "rolloutFailureReason")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.rolloutFailureReason); 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 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.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest 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 */ - CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + Experiment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateExperimentRequest 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.CreateExperimentRequest + * @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.CreateExperimentRequest} CreateExperimentRequest + * @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 */ - CreateExperimentRequest.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.CreateExperimentRequest(); + 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) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); + 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 14: { + message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.decode(reader, reader.uint32()); + break; + } + case 15: { + message.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.decode(reader, reader.uint32()); + break; + } + case 16: { + message.rolloutFailureReason = reader.string(); + 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: @@ -70657,1386 +69314,1836 @@ }; /** - * Decodes a CreateExperimentRequest 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.CreateExperimentRequest + * @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.CreateExperimentRequest} CreateExperimentRequest + * @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 */ - CreateExperimentRequest.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 CreateExperimentRequest message. + * Verifies an Experiment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @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 */ - CreateExperimentRequest.verify = function verify(message) { + Experiment.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 (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: + case 4: + break; + } + if (message.definition != null && message.hasOwnProperty("definition")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.verify(message.definition); if (error) - return "experiment." + error; + return "definition." + error; } - return null; - }; - - /** - * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest - */ - 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.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); + if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.verify(message.rolloutConfig); + if (error) + return "rolloutConfig." + error; } - return message; - }; - - /** - * Creates a plain object from a CreateExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} message CreateExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.experiment = null; + if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) { + var error = $root.google.cloud.dialogflow.cx.v3.RolloutState.verify(message.rolloutState); + if (error) + return "rolloutState." + error; } - 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); - return object; - }; - - /** - * Converts this CreateExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - CreateExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CreateExperimentRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CreateExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) + if (!$util.isString(message.rolloutFailureReason)) + return "rolloutFailureReason: string expected"; + 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; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateExperimentRequest"; - }; - - return CreateExperimentRequest; - })(); - - v3.UpdateExperimentRequest = (function() { - - /** - * 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 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]]; - } - - /** - * UpdateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @instance - */ - UpdateExperimentRequest.prototype.experiment = null; - - /** - * UpdateExperimentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest - * @instance - */ - UpdateExperimentRequest.prototype.updateMask = null; - - /** - * 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); - }; - - /** - * 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; - }; - - /** - * 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(); - }; - - /** - * 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; - } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - 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()); - }; - - /** - * 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 (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); if (error) - return "experiment." + error; + return "startTime." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); if (error) - return "updateMask." + 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 an UpdateExperimentRequest 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.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment */ - UpdateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest) + 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.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); + var message = new $root.google.cloud.dialogflow.cx.v3.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) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + 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; + case "ROLLOUT_FAILED": + case 4: + message.state = 4; + break; } - 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); + 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.rolloutConfig != null) { + if (typeof object.rolloutConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.rolloutConfig: object expected"); + message.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.fromObject(object.rolloutConfig); + } + if (object.rolloutState != null) { + if (typeof object.rolloutState !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.rolloutState: object expected"); + message.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.fromObject(object.rolloutState); + } + if (object.rolloutFailureReason != null) + message.rolloutFailureReason = String(object.rolloutFailureReason); + 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 an UpdateExperimentRequest 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.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} message UpdateExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.Experiment} message Experiment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExperimentRequest.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.experiment = null; - object.updateMask = null; + 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.rolloutConfig = null; + object.rolloutState = null; + object.rolloutFailureReason = ""; } - 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); + 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.v3.Experiment.State[message.state] === undefined ? message.state : $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.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) + object.rolloutConfig = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.toObject(message.rolloutConfig, options); + if (message.rolloutState != null && message.hasOwnProperty("rolloutState")) + object.rolloutState = $root.google.cloud.dialogflow.cx.v3.RolloutState.toObject(message.rolloutState, options); + if (message.rolloutFailureReason != null && message.hasOwnProperty("rolloutFailureReason")) + object.rolloutFailureReason = message.rolloutFailureReason; return object; }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this Experiment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance * @returns {Object.} JSON object */ - UpdateExperimentRequest.prototype.toJSON = function toJSON() { + Experiment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateExperimentRequest + * Gets the default type url for Experiment * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Experiment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateExperimentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment"; }; - return UpdateExperimentRequest; - })(); - - v3.DeleteExperimentRequest = (function() { - /** - * Properties of a DeleteExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteExperimentRequest - * @property {string|null} [name] DeleteExperimentRequest name + * 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 + * @property {number} ROLLOUT_FAILED=4 ROLLOUT_FAILED 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; + values[valuesById[4] = "ROLLOUT_FAILED"] = 4; + return values; + })(); - /** - * Constructs a new DeleteExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteExperimentRequest. - * @implements IDeleteExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set - */ - function DeleteExperimentRequest(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.Definition = (function() { - /** - * DeleteExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest - * @instance - */ - DeleteExperimentRequest.prototype.name = ""; + /** + * 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 + */ - /** - * Creates a new DeleteExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest instance - */ - DeleteExperimentRequest.create = function create(properties) { - return new DeleteExperimentRequest(properties); - }; + /** + * 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]]; + } - /** - * 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.DeleteExperimentRequest - * @static - * @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 - */ - 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; - }; + /** + * Definition condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + */ + Definition.prototype.condition = ""; - /** - * 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.DeleteExperimentRequest - * @static - * @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 - */ - DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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; - /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer. - * @function decode - * @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.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.v3.DeleteExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + // 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; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.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()); - }; + /** + * 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 DeleteExperimentRequest message. - * @function verify - * @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 - */ - 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; - }; + /** + * 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 DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest - */ - DeleteExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest) + /** + * 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; - 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 a DeleteExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} message DeleteExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - 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 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); + }; - /** - * Converts this DeleteExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for Definition + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Definition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Definition"; + }; - /** - * Gets the default type url for DeleteExperimentRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteExperimentRequest"; - }; + return Definition; + })(); - return DeleteExperimentRequest; - })(); + Experiment.Result = (function() { - v3.StartExperimentRequest = (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 + */ - /** - * Properties of a StartExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStartExperimentRequest - * @property {string|null} [name] StartExperimentRequest name - */ + /** + * 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]]; + } - /** - * 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]]; - } + /** + * Result versionMetrics. + * @member {Array.} versionMetrics + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @instance + */ + Result.prototype.versionMetrics = $util.emptyArray; - /** - * StartExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @instance - */ - StartExperimentRequest.prototype.name = ""; + /** + * 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 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); - }; + /** + * 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 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; - }; + /** + * 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 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(); - }; + /** + * 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 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(); + /** + * 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; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * 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()); - }; + /** + * 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 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; - }; + /** + * 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 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; - }; + /** + * 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 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; - }; + /** + * 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; + }; - /** - * 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); - }; + /** + * 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); + }; - /** - * Gets the default type url for StartExperimentRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StartExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StartExperimentRequest"; - }; + /** + * Gets the default type url for Result + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Result.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Result"; + }; - return StartExperimentRequest; - })(); + /** + * 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; + })(); - v3.StopExperimentRequest = (function() { + /** + * 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; + })(); - /** - * Properties of a StopExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStopExperimentRequest - * @property {string|null} [name] StopExperimentRequest name - */ + Result.ConfidenceInterval = (function() { - /** - * Constructs a new StopExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StopExperimentRequest. - * @implements IStopExperimentRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set - */ - function StopExperimentRequest(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 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 + */ - /** - * StopExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest - * @instance - */ - StopExperimentRequest.prototype.name = ""; + /** + * 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]]; + } - /** - * Creates a new StopExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest instance - */ - StopExperimentRequest.create = function create(properties) { - return new StopExperimentRequest(properties); - }; + /** + * ConfidenceInterval confidenceLevel. + * @member {number} confidenceLevel + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.confidenceLevel = 0; - /** - * 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.StopExperimentRequest - * @static - * @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 - */ - 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); - return writer; - }; + /** + * ConfidenceInterval ratio. + * @member {number} ratio + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.ratio = 0; - /** - * 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.StopExperimentRequest - * @static - * @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 - */ - StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ConfidenceInterval lowerBound. + * @member {number} lowerBound + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.lowerBound = 0; - /** - * Decodes a StopExperimentRequest message from the specified reader or buffer. - * @function decode - * @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.StopExperimentRequest} StopExperimentRequest - * @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) { - 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(); - 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; - }; + /** + * ConfidenceInterval upperBound. + * @member {number} upperBound + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.upperBound = 0; - /** - * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.StopExperimentRequest} StopExperimentRequest - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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); + }; - /** - * Verifies a StopExperimentRequest message. - * @function verify - * @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 - */ - 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"; - return 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; + }; - /** - * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest - */ - 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.StopExperimentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * 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(); + }; - /** - * Creates a plain object from a StopExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.StopExperimentRequest} message StopExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StopExperimentRequest.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; - }; + /** + * 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; + }; - /** - * Converts this StopExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - StopExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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()); + }; - /** - * Gets the default type url for StopExperimentRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StopExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StopExperimentRequest"; - }; + /** + * 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; + }; - return StopExperimentRequest; - })(); + /** + * 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; + }; - v3.SecuritySettingsService = (function() { + /** + * 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; + }; - /** - * 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); - } + /** + * 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); + }; - (SecuritySettingsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SecuritySettingsService; + /** + * Gets the default type url for ConfidenceInterval + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConfidenceInterval.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval"; + }; - /** - * 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); - }; + return ConfidenceInterval; + })(); - /** - * 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 - */ + Result.Metric = (function() { - /** - * 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" }); + /** + * 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 + */ - /** - * 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 - */ + /** + * 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]]; + } - /** - * 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 - */ + /** + * 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; - /** - * 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" }); + /** + * 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; - /** - * 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 - */ + /** + * Metric ratio. + * @member {number|null|undefined} ratio + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.ratio = null; - /** - * 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 - */ + /** + * Metric count. + * @member {number|null|undefined} count + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.count = null; - /** - * 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" }); + /** + * 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; - /** - * 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 - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * 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 - */ + /** + * 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) + }); - /** - * 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" }); + /** + * 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); + }; - /** - * 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 - */ + /** + * 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; + }; - /** - * 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 - */ + /** + * 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(); + }; - /** - * 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" }); + /** + * 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; + }; - /** - * 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 - * @returns {Promise} Promise - * @variation 2 - */ + /** + * 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()); + }; - return SecuritySettingsService; - })(); + /** + * 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; + }; - v3.GetSecuritySettingsRequest = (function() { + /** + * 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) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + 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) { + default: + if (typeof object.countType === "number") { + message.countType = object.countType; + break; + } + break; + 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; + }; - /** - * Properties of a GetSecuritySettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetSecuritySettingsRequest - * @property {string|null} [name] GetSecuritySettingsRequest name - */ + /** + * 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] === undefined ? message.type : $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] === undefined ? message.countType : $root.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType[message.countType] : message.countType; + return object; + }; - /** - * Constructs a new GetSecuritySettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetSecuritySettingsRequest. - * @implements IGetSecuritySettingsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set - */ - function GetSecuritySettingsRequest(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 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); + }; - /** - * GetSecuritySettingsRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest - * @instance - */ - GetSecuritySettingsRequest.prototype.name = ""; + /** + * Gets the default type url for Metric + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Result.Metric"; + }; - /** - * Creates a new GetSecuritySettingsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest instance - */ - GetSecuritySettingsRequest.create = function create(properties) { - return new GetSecuritySettingsRequest(properties); - }; + return Metric; + })(); - /** - * 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.GetSecuritySettingsRequest - * @static - * @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 - */ - 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); - return writer; - }; + Result.VersionMetrics = (function() { - /** - * 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.GetSecuritySettingsRequest - * @static - * @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 - */ - GetSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 + */ - /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. - * @function decode - * @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.GetSecuritySettingsRequest} GetSecuritySettingsRequest - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; + /** + * 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 message; - }; - /** - * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.GetSecuritySettingsRequest} GetSecuritySettingsRequest - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * VersionMetrics version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.version = ""; - /** - * Verifies a GetSecuritySettingsRequest message. - * @function verify - * @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 - */ - 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"; - return null; - }; + /** + * VersionMetrics metrics. + * @member {Array.} metrics + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.metrics = $util.emptyArray; - /** - * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest - */ - 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.GetSecuritySettingsRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * VersionMetrics sessionCount. + * @member {number} sessionCount + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.sessionCount = 0; - /** - * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} message GetSecuritySettingsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetSecuritySettingsRequest.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; - }; + /** + * 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); + }; - /** - * Converts this GetSecuritySettingsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest - * @instance - * @returns {Object.} JSON object - */ - GetSecuritySettingsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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; + }; - /** - * Gets the default type url for GetSecuritySettingsRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest"; - }; + /** + * 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(); + }; - return GetSecuritySettingsRequest; + /** + * 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); + }; + + /** + * Gets the default type url for VersionMetrics + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VersionMetrics.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics"; + }; + + return VersionMetrics; + })(); + + return Result; + })(); + + return Experiment; })(); - v3.UpdateSecuritySettingsRequest = (function() { + v3.VersionVariants = (function() { /** - * Properties of an UpdateSecuritySettingsRequest. + * Properties of a VersionVariants. * @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 IVersionVariants + * @property {Array.|null} [variants] VersionVariants variants */ /** - * Constructs a new UpdateSecuritySettingsRequest. + * Constructs a new VersionVariants. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateSecuritySettingsRequest. - * @implements IUpdateSecuritySettingsRequest + * @classdesc Represents a VersionVariants. + * @implements IVersionVariants * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set */ - function UpdateSecuritySettingsRequest(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) @@ -72044,89 +71151,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 + * VersionVariants variants. + * @member {Array.} variants + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @instance */ - UpdateSecuritySettingsRequest.prototype.updateMask = null; + VersionVariants.prototype.variants = $util.emptyArray; /** - * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. + * Creates a new VersionVariants instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @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.IVersionVariants=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants instance */ - UpdateSecuritySettingsRequest.create = function create(properties) { - return new UpdateSecuritySettingsRequest(properties); + VersionVariants.create = function create(properties) { + return new VersionVariants(properties); }; /** - * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.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.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest 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 */ - UpdateSecuritySettingsRequest.encode = function encode(message, writer) { + VersionVariants.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.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 UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.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.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest 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 */ - UpdateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateSecuritySettingsRequest 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.UpdateSecuritySettingsRequest + * @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.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @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 */ - UpdateSecuritySettingsRequest.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.UpdateSecuritySettingsRequest(); + 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: { - 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.variants && message.variants.length)) + message.variants = []; + message.variants.push($root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.decode(reader, reader.uint32())); break; } default: @@ -72138,247 +71234,494 @@ }; /** - * Decodes an UpdateSecuritySettingsRequest 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.UpdateSecuritySettingsRequest + * @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.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @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 */ - UpdateSecuritySettingsRequest.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 UpdateSecuritySettingsRequest message. + * Verifies a VersionVariants message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @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 */ - UpdateSecuritySettingsRequest.verify = function verify(message) { + VersionVariants.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.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 an UpdateSecuritySettingsRequest 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.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants */ - UpdateSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest) + 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.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.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 an UpdateSecuritySettingsRequest 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.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.VersionVariants} message VersionVariants * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateSecuritySettingsRequest.toObject = function toObject(message, options) { + VersionVariants.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.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); } - 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 VersionVariants to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @instance * @returns {Object.} JSON object */ - UpdateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + VersionVariants.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateSecuritySettingsRequest + * Gets the default type url for VersionVariants * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VersionVariants.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.VersionVariants"; }; - return UpdateSecuritySettingsRequest; - })(); + VersionVariants.Variant = (function() { - v3.ListSecuritySettingsRequest = (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 + */ - /** - * Properties of a ListSecuritySettingsRequest. - * @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 - */ + /** + * 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]]; + } - /** - * Constructs a new ListSecuritySettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSecuritySettingsRequest. - * @implements IListSecuritySettingsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set - */ - function ListSecuritySettingsRequest(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 = ""; - /** - * ListSecuritySettingsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest - * @instance - */ - ListSecuritySettingsRequest.prototype.parent = ""; + /** + * Variant trafficAllocation. + * @member {number} trafficAllocation + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + */ + Variant.prototype.trafficAllocation = 0; - /** - * ListSecuritySettingsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest - * @instance - */ - ListSecuritySettingsRequest.prototype.pageSize = 0; + /** + * Variant isControlGroup. + * @member {boolean} isControlGroup + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + */ + Variant.prototype.isControlGroup = false; - /** - * ListSecuritySettingsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest - * @instance - */ - ListSecuritySettingsRequest.prototype.pageToken = ""; + /** + * 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); + }; + + /** + * Gets the default type url for Variant + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Variant.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.VersionVariants.Variant"; + }; + + return Variant; + })(); + + return VersionVariants; + })(); + + v3.VariantsHistory = (function() { /** - * Creates a new ListSecuritySettingsRequest instance using the specified properties. + * 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.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @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.IVariantsHistory=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory instance */ - ListSecuritySettingsRequest.create = function create(properties) { - return new ListSecuritySettingsRequest(properties); + VariantsHistory.create = function create(properties) { + return new VariantsHistory(properties); }; /** - * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.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.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest 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 */ - ListSecuritySettingsRequest.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.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.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 ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.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.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest 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 */ - ListSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecuritySettingsRequest 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.ListSecuritySettingsRequest + * @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.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @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 */ - ListSecuritySettingsRequest.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.ListSecuritySettingsRequest(); + 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.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -72390,141 +71733,149 @@ }; /** - * Decodes a ListSecuritySettingsRequest 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.ListSecuritySettingsRequest + * @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.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @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 */ - ListSecuritySettingsRequest.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 ListSecuritySettingsRequest message. + * Verifies a VariantsHistory message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @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 */ - ListSecuritySettingsRequest.verify = function verify(message) { + VariantsHistory.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.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 ListSecuritySettingsRequest 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.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory */ - ListSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest) + 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.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.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 ListSecuritySettingsRequest 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.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} message ListSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.VariantsHistory} message VariantsHistory * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecuritySettingsRequest.toObject = function toObject(message, options) { + VariantsHistory.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + 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.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.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this ListSecuritySettingsRequest to JSON. + * Converts this VariantsHistory to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance * @returns {Object.} JSON object */ - ListSecuritySettingsRequest.prototype.toJSON = function toJSON() { + VariantsHistory.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSecuritySettingsRequest + * Gets the default type url for VariantsHistory * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VariantsHistory.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.VariantsHistory"; }; - return ListSecuritySettingsRequest; + return VariantsHistory; })(); - v3.ListSecuritySettingsResponse = (function() { + v3.RolloutConfig = (function() { /** - * Properties of a ListSecuritySettingsResponse. + * Properties of a RolloutConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListSecuritySettingsResponse - * @property {Array.|null} [securitySettings] ListSecuritySettingsResponse securitySettings - * @property {string|null} [nextPageToken] ListSecuritySettingsResponse nextPageToken + * @interface IRolloutConfig + * @property {Array.|null} [rolloutSteps] RolloutConfig rolloutSteps + * @property {string|null} [rolloutCondition] RolloutConfig rolloutCondition + * @property {string|null} [failureCondition] RolloutConfig failureCondition */ /** - * Constructs a new ListSecuritySettingsResponse. + * Constructs a new RolloutConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListSecuritySettingsResponse. - * @implements IListSecuritySettingsResponse + * @classdesc Represents a RolloutConfig. + * @implements IRolloutConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set */ - function ListSecuritySettingsResponse(properties) { - this.securitySettings = []; + function RolloutConfig(properties) { + this.rolloutSteps = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72532,92 +71883,106 @@ } /** - * ListSecuritySettingsResponse securitySettings. - * @member {Array.} securitySettings - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * RolloutConfig rolloutSteps. + * @member {Array.} rolloutSteps + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance */ - ListSecuritySettingsResponse.prototype.securitySettings = $util.emptyArray; + RolloutConfig.prototype.rolloutSteps = $util.emptyArray; /** - * ListSecuritySettingsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * RolloutConfig rolloutCondition. + * @member {string} rolloutCondition + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance */ - ListSecuritySettingsResponse.prototype.nextPageToken = ""; + RolloutConfig.prototype.rolloutCondition = ""; /** - * Creates a new ListSecuritySettingsResponse instance using the specified properties. + * RolloutConfig failureCondition. + * @member {string} failureCondition + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @instance + */ + RolloutConfig.prototype.failureCondition = ""; + + /** + * Creates a new RolloutConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @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.IRolloutConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig instance */ - ListSecuritySettingsResponse.create = function create(properties) { - return new ListSecuritySettingsResponse(properties); + RolloutConfig.create = function create(properties) { + return new RolloutConfig(properties); }; /** - * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsResponse.encode = function encode(message, writer) { + RolloutConfig.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.rolloutSteps != null && message.rolloutSteps.length) + for (var i = 0; i < message.rolloutSteps.length; ++i) + $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.encode(message.rolloutSteps[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.rolloutCondition != null && Object.hasOwnProperty.call(message, "rolloutCondition")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.rolloutCondition); + if (message.failureCondition != null && Object.hasOwnProperty.call(message, "failureCondition")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failureCondition); 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 RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListSecuritySettingsResponse.encodeDelimited = function encodeDelimited(message, writer) { + RolloutConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. + * Decodes a RolloutConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static * @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.RolloutConfig} RolloutConfig * @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) { + RolloutConfig.decode = function decode(reader, length) { 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.RolloutConfig(); 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())); + if (!(message.rolloutSteps && message.rolloutSteps.length)) + message.rolloutSteps = []; + message.rolloutSteps.push($root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.decode(reader, reader.uint32())); break; } case 2: { - message.nextPageToken = reader.string(); + message.rolloutCondition = reader.string(); + break; + } + case 3: { + message.failureCondition = reader.string(); break; } default: @@ -72629,149 +71994,414 @@ }; /** - * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. + * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @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.RolloutConfig} RolloutConfig * @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) { + RolloutConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListSecuritySettingsResponse message. + * Verifies a RolloutConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @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) { + RolloutConfig.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 (message.rolloutSteps != null && message.hasOwnProperty("rolloutSteps")) { + if (!Array.isArray(message.rolloutSteps)) + return "rolloutSteps: array expected"; + for (var i = 0; i < message.rolloutSteps.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify(message.rolloutSteps[i]); if (error) - return "securitySettings." + error; + return "rolloutSteps." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) + if (!$util.isString(message.rolloutCondition)) + return "rolloutCondition: string expected"; + if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) + if (!$util.isString(message.failureCondition)) + return "failureCondition: string expected"; return null; }; /** - * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutConfig 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.RolloutConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig */ - ListSecuritySettingsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) + RolloutConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutConfig) 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.RolloutConfig(); + if (object.rolloutSteps) { + if (!Array.isArray(object.rolloutSteps)) + throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.rolloutSteps: array expected"); + message.rolloutSteps = []; + for (var i = 0; i < object.rolloutSteps.length; ++i) { + if (typeof object.rolloutSteps[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.rolloutSteps: object expected"); + message.rolloutSteps[i] = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.fromObject(object.rolloutSteps[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.rolloutCondition != null) + message.rolloutCondition = String(object.rolloutCondition); + if (object.failureCondition != null) + message.failureCondition = String(object.failureCondition); return message; }; /** - * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} message ListSecuritySettingsResponse + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig} message RolloutConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListSecuritySettingsResponse.toObject = function toObject(message, options) { + RolloutConfig.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); + object.rolloutSteps = []; + if (options.defaults) { + object.rolloutCondition = ""; + object.failureCondition = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.rolloutSteps && message.rolloutSteps.length) { + object.rolloutSteps = []; + for (var j = 0; j < message.rolloutSteps.length; ++j) + object.rolloutSteps[j] = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.toObject(message.rolloutSteps[j], options); + } + if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) + object.rolloutCondition = message.rolloutCondition; + if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) + object.failureCondition = message.failureCondition; return object; }; /** - * Converts this ListSecuritySettingsResponse to JSON. + * Converts this RolloutConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance * @returns {Object.} JSON object */ - ListSecuritySettingsResponse.prototype.toJSON = function toJSON() { + RolloutConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListSecuritySettingsResponse + * Gets the default type url for RolloutConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListSecuritySettingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RolloutConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.RolloutConfig"; }; - return ListSecuritySettingsResponse; + RolloutConfig.RolloutStep = (function() { + + /** + * Properties of a RolloutStep. + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @interface IRolloutStep + * @property {string|null} [displayName] RolloutStep displayName + * @property {number|null} [trafficPercent] RolloutStep trafficPercent + * @property {google.protobuf.IDuration|null} [minDuration] RolloutStep minDuration + */ + + /** + * Constructs a new RolloutStep. + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @classdesc Represents a RolloutStep. + * @implements IRolloutStep + * @constructor + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep=} [properties] Properties to set + */ + function RolloutStep(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]]; + } + + /** + * RolloutStep displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @instance + */ + RolloutStep.prototype.displayName = ""; + + /** + * RolloutStep trafficPercent. + * @member {number} trafficPercent + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @instance + */ + RolloutStep.prototype.trafficPercent = 0; + + /** + * RolloutStep minDuration. + * @member {google.protobuf.IDuration|null|undefined} minDuration + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @instance + */ + RolloutStep.prototype.minDuration = null; + + /** + * Creates a new RolloutStep instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep instance + */ + RolloutStep.create = function create(properties) { + return new RolloutStep(properties); + }; + + /** + * Encodes the specified RolloutStep message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RolloutStep.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.trafficPercent != null && Object.hasOwnProperty.call(message, "trafficPercent")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.trafficPercent); + if (message.minDuration != null && Object.hasOwnProperty.call(message, "minDuration")) + $root.google.protobuf.Duration.encode(message.minDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RolloutStep message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep} message RolloutStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RolloutStep.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RolloutStep message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @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.RolloutConfig.RolloutStep} RolloutStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RolloutStep.decode = function decode(reader, length) { + 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.RolloutConfig.RolloutStep(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.displayName = reader.string(); + break; + } + case 2: { + message.trafficPercent = reader.int32(); + break; + } + case 3: { + message.minDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RolloutStep message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RolloutStep.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RolloutStep message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RolloutStep.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) + if (!$util.isInteger(message.trafficPercent)) + return "trafficPercent: integer expected"; + if (message.minDuration != null && message.hasOwnProperty("minDuration")) { + var error = $root.google.protobuf.Duration.verify(message.minDuration); + if (error) + return "minDuration." + error; + } + return null; + }; + + /** + * Creates a RolloutStep message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} RolloutStep + */ + RolloutStep.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.trafficPercent != null) + message.trafficPercent = object.trafficPercent | 0; + if (object.minDuration != null) { + if (typeof object.minDuration !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.minDuration: object expected"); + message.minDuration = $root.google.protobuf.Duration.fromObject(object.minDuration); + } + return message; + }; + + /** + * Creates a plain object from a RolloutStep message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep} message RolloutStep + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RolloutStep.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayName = ""; + object.trafficPercent = 0; + object.minDuration = null; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.trafficPercent != null && message.hasOwnProperty("trafficPercent")) + object.trafficPercent = message.trafficPercent; + if (message.minDuration != null && message.hasOwnProperty("minDuration")) + object.minDuration = $root.google.protobuf.Duration.toObject(message.minDuration, options); + return object; + }; + + /** + * Converts this RolloutStep to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @instance + * @returns {Object.} JSON object + */ + RolloutStep.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RolloutStep + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RolloutStep.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep"; + }; + + return RolloutStep; + })(); + + return RolloutConfig; })(); - v3.CreateSecuritySettingsRequest = (function() { + v3.RolloutState = (function() { /** - * Properties of a CreateSecuritySettingsRequest. + * Properties of a RolloutState. * @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 IRolloutState + * @property {string|null} [step] RolloutState step + * @property {number|null} [stepIndex] RolloutState stepIndex + * @property {google.protobuf.ITimestamp|null} [startTime] RolloutState startTime */ /** - * Constructs a new CreateSecuritySettingsRequest. + * Constructs a new RolloutState. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateSecuritySettingsRequest. - * @implements ICreateSecuritySettingsRequest + * @classdesc Represents a RolloutState. + * @implements IRolloutState * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRolloutState=} [properties] Properties to set */ - function CreateSecuritySettingsRequest(properties) { + function RolloutState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -72779,89 +72409,103 @@ } /** - * CreateSecuritySettingsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * RolloutState step. + * @member {string} step + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance */ - CreateSecuritySettingsRequest.prototype.parent = ""; + RolloutState.prototype.step = ""; /** - * CreateSecuritySettingsRequest securitySettings. - * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * RolloutState stepIndex. + * @member {number} stepIndex + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance */ - CreateSecuritySettingsRequest.prototype.securitySettings = null; + RolloutState.prototype.stepIndex = 0; /** - * Creates a new CreateSecuritySettingsRequest instance using the specified properties. + * RolloutState startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @instance + */ + RolloutState.prototype.startTime = null; + + /** + * Creates a new RolloutState instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @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.IRolloutState=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState instance */ - CreateSecuritySettingsRequest.create = function create(properties) { - return new CreateSecuritySettingsRequest(properties); + RolloutState.create = function create(properties) { + return new RolloutState(properties); }; /** - * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSecuritySettingsRequest.encode = function encode(message, writer) { + RolloutState.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.step != null && Object.hasOwnProperty.call(message, "step")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.step); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.stepIndex != null && Object.hasOwnProperty.call(message, "stepIndex")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.stepIndex); 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 RolloutState message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RolloutState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. + * Decodes a RolloutState message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static * @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.RolloutState} RolloutState * @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) { + RolloutState.decode = function decode(reader, length) { 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.RolloutState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.step = reader.string(); + break; + } + case 3: { + message.stepIndex = reader.int32(); break; } case 2: { - message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -72873,136 +72517,146 @@ }; /** - * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * Decodes a RolloutState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @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.RolloutState} RolloutState * @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) { + RolloutState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateSecuritySettingsRequest message. + * Verifies a RolloutState message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @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) { + RolloutState.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.securitySettings != null && message.hasOwnProperty("securitySettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); - if (error) - return "securitySettings." + error; - } - return null; - }; + if (message.step != null && message.hasOwnProperty("step")) + if (!$util.isString(message.step)) + return "step: string expected"; + if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) + if (!$util.isInteger(message.stepIndex)) + return "stepIndex: integer expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + return null; + }; /** - * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RolloutState 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.RolloutState * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState */ - CreateSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest) + RolloutState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutState) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); - 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); + var message = new $root.google.cloud.dialogflow.cx.v3.RolloutState(); + if (object.step != null) + message.step = String(object.step); + if (object.stepIndex != null) + message.stepIndex = object.stepIndex | 0; + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.RolloutState.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } return message; }; /** - * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RolloutState message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} message CreateSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.RolloutState} message RolloutState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateSecuritySettingsRequest.toObject = function toObject(message, options) { + RolloutState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.securitySettings = null; + object.step = ""; + object.startTime = null; + object.stepIndex = 0; } - 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.step != null && message.hasOwnProperty("step")) + object.step = message.step; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.stepIndex != null && message.hasOwnProperty("stepIndex")) + object.stepIndex = message.stepIndex; return object; }; /** - * Converts this CreateSecuritySettingsRequest to JSON. + * Converts this RolloutState to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance * @returns {Object.} JSON object */ - CreateSecuritySettingsRequest.prototype.toJSON = function toJSON() { + RolloutState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateSecuritySettingsRequest + * Gets the default type url for RolloutState * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RolloutState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.RolloutState"; }; - return CreateSecuritySettingsRequest; + return RolloutState; })(); - v3.DeleteSecuritySettingsRequest = (function() { + v3.ListExperimentsRequest = (function() { /** - * Properties of a DeleteSecuritySettingsRequest. + * Properties of a ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteSecuritySettingsRequest - * @property {string|null} [name] DeleteSecuritySettingsRequest name + * @interface IListExperimentsRequest + * @property {string|null} [parent] ListExperimentsRequest parent + * @property {number|null} [pageSize] ListExperimentsRequest pageSize + * @property {string|null} [pageToken] ListExperimentsRequest pageToken */ /** - * Constructs a new DeleteSecuritySettingsRequest. + * Constructs a new ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteSecuritySettingsRequest. - * @implements IDeleteSecuritySettingsRequest + * @classdesc Represents a ListExperimentsRequest. + * @implements IListExperimentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set */ - function DeleteSecuritySettingsRequest(properties) { + function ListExperimentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73010,75 +72664,103 @@ } /** - * DeleteSecuritySettingsRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * ListExperimentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance */ - DeleteSecuritySettingsRequest.prototype.name = ""; + ListExperimentsRequest.prototype.parent = ""; /** - * Creates a new DeleteSecuritySettingsRequest 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.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @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.IListExperimentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest instance */ - DeleteSecuritySettingsRequest.create = function create(properties) { - return new DeleteSecuritySettingsRequest(properties); + ListExperimentsRequest.create = function create(properties) { + return new ListExperimentsRequest(properties); }; /** - * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.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.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest 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 */ - DeleteSecuritySettingsRequest.encode = function encode(message, writer) { + ListExperimentsRequest.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); 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 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.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest 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 */ - DeleteSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteSecuritySettingsRequest 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.DeleteSecuritySettingsRequest + * @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.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @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 */ - DeleteSecuritySettingsRequest.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.DeleteSecuritySettingsRequest(); + 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.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -73090,133 +72772,141 @@ }; /** - * Decodes a DeleteSecuritySettingsRequest 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.DeleteSecuritySettingsRequest + * @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.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @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 */ - DeleteSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteSecuritySettingsRequest message. + * Verifies a ListExperimentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @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 */ - DeleteSecuritySettingsRequest.verify = function verify(message) { + ListExperimentsRequest.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"; return null; }; /** - * Creates a DeleteSecuritySettingsRequest 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.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest */ - DeleteSecuritySettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest) + 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.DeleteSecuritySettingsRequest(); - if (object.name != null) - message.name = String(object.name); + 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 DeleteSecuritySettingsRequest 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.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} message ListExperimentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteSecuritySettingsRequest.toObject = function toObject(message, options) { + ListExperimentsRequest.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 = ""; + } + 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 DeleteSecuritySettingsRequest to JSON. + * Converts this ListExperimentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance * @returns {Object.} JSON object */ - DeleteSecuritySettingsRequest.prototype.toJSON = function toJSON() { + ListExperimentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteSecuritySettingsRequest + * Gets the default type url for ListExperimentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExperimentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListExperimentsRequest"; }; - return DeleteSecuritySettingsRequest; + return ListExperimentsRequest; })(); - v3.SecuritySettings = (function() { + v3.ListExperimentsResponse = (function() { /** - * Properties of a SecuritySettings. + * Properties of a ListExperimentsResponse. * @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 {string|null} [deidentifyTemplate] SecuritySettings deidentifyTemplate - * @property {number|null} [retentionWindowDays] SecuritySettings retentionWindowDays - * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|null} [retentionStrategy] SecuritySettings retentionStrategy - * @property {Array.|null} [purgeDataTypes] SecuritySettings purgeDataTypes - * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings|null} [audioExportSettings] SecuritySettings audioExportSettings - * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null} [insightsExportSettings] SecuritySettings insightsExportSettings + * @interface IListExperimentsResponse + * @property {Array.|null} [experiments] ListExperimentsResponse experiments + * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken */ /** - * Constructs a new SecuritySettings. + * Constructs a new ListExperimentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SecuritySettings. - * @implements ISecuritySettings + * @classdesc Represents a ListExperimentsResponse. + * @implements IListExperimentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set */ - function SecuritySettings(properties) { - this.purgeDataTypes = []; + function ListExperimentsResponse(properties) { + this.experiments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -73224,188 +72914,316 @@ } /** - * SecuritySettings name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * ListExperimentsResponse experiments. + * @member {Array.} experiments + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @instance */ - SecuritySettings.prototype.name = ""; + ListExperimentsResponse.prototype.experiments = $util.emptyArray; /** - * SecuritySettings displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * ListExperimentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @instance */ - SecuritySettings.prototype.displayName = ""; + ListExperimentsResponse.prototype.nextPageToken = ""; /** - * SecuritySettings redactionStrategy. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy} redactionStrategy - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance + * 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 */ - SecuritySettings.prototype.redactionStrategy = 0; + ListExperimentsResponse.create = function create(properties) { + return new ListExperimentsResponse(properties); + }; /** - * SecuritySettings redactionScope. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope} redactionScope - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance + * 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 */ - SecuritySettings.prototype.redactionScope = 0; + 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; + }; /** - * SecuritySettings inspectTemplate. - * @member {string} inspectTemplate - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance + * 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 */ - SecuritySettings.prototype.inspectTemplate = ""; + ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * SecuritySettings deidentifyTemplate. - * @member {string} deidentifyTemplate - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance + * 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 */ - SecuritySettings.prototype.deidentifyTemplate = ""; + 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; + }; /** - * SecuritySettings retentionWindowDays. - * @member {number|null|undefined} retentionWindowDays - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance + * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.ListExperimentsResponse} ListExperimentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SecuritySettings.prototype.retentionWindowDays = null; + ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * SecuritySettings retentionStrategy. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|null|undefined} retentionStrategy - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance + * Verifies a ListExperimentsResponse message. + * @function verify + * @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 */ - SecuritySettings.prototype.retentionStrategy = null; + 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.v3.Experiment.verify(message.experiments[i]); + if (error) + return "experiments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * SecuritySettings purgeDataTypes. - * @member {Array.} purgeDataTypes - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance + * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse */ - SecuritySettings.prototype.purgeDataTypes = $util.emptyArray; + 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.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; + }; /** - * SecuritySettings audioExportSettings. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings|null|undefined} audioExportSettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @instance + * Creates a plain object from a ListExperimentsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} message ListExperimentsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - SecuritySettings.prototype.audioExportSettings = null; + 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.v3.Experiment.toObject(message.experiments[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * SecuritySettings insightsExportSettings. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null|undefined} insightsExportSettings - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * Converts this ListExperimentsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse * @instance + * @returns {Object.} JSON object */ - SecuritySettings.prototype.insightsExportSettings = null; + ListExperimentsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Gets the default type url for ListExperimentsResponse + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListExperimentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListExperimentsResponse"; + }; + + return ListExperimentsResponse; + })(); + + v3.GetExperimentRequest = (function() { /** - * SecuritySettings dataRetention. - * @member {"retentionWindowDays"|"retentionStrategy"|undefined} dataRetention - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * 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 */ - Object.defineProperty(SecuritySettings.prototype, "dataRetention", { - get: $util.oneOfGetter($oneOfFields = ["retentionWindowDays", "retentionStrategy"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetExperimentRequest.prototype.name = ""; /** - * Creates a new SecuritySettings instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @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.IGetExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest instance */ - SecuritySettings.create = function create(properties) { - return new SecuritySettings(properties); + GetExperimentRequest.create = function create(properties) { + return new GetExperimentRequest(properties); }; /** - * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.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.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings 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 */ - SecuritySettings.encode = function encode(message, 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); - 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.retentionStrategy != null && Object.hasOwnProperty.call(message, "retentionStrategy")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.retentionStrategy); - 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.audioExportSettings != null && Object.hasOwnProperty.call(message, "audioExportSettings")) - $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.encode(message.audioExportSettings, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.insightsExportSettings != null && Object.hasOwnProperty.call(message, "insightsExportSettings")) - $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.encode(message.insightsExportSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.deidentifyTemplate != null && Object.hasOwnProperty.call(message, "deidentifyTemplate")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.deidentifyTemplate); 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 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.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings 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 */ - SecuritySettings.encodeDelimited = function encodeDelimited(message, writer) { + GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SecuritySettings 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.SecuritySettings + * @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.SecuritySettings} SecuritySettings + * @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 */ - SecuritySettings.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.SecuritySettings(); + 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) { @@ -73413,53 +73231,6 @@ 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 17: { - message.deidentifyTemplate = reader.string(); - break; - } - case 6: { - message.retentionWindowDays = reader.int32(); - break; - } - case 7: { - message.retentionStrategy = 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; - } - case 12: { - message.audioExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.decode(reader, reader.uint32()); - break; - } - case 13: { - message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -73469,1234 +73240,213 @@ }; /** - * Decodes a SecuritySettings 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.SecuritySettings + * @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.SecuritySettings} SecuritySettings + * @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 */ - SecuritySettings.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 SecuritySettings message. + * Verifies a GetExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @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 */ - SecuritySettings.verify = function verify(message) { + GetExperimentRequest.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.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) - if (!$util.isString(message.inspectTemplate)) - return "inspectTemplate: string expected"; - if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) - if (!$util.isString(message.deidentifyTemplate)) - return "deidentifyTemplate: string expected"; - if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { - properties.dataRetention = 1; - if (!$util.isInteger(message.retentionWindowDays)) - return "retentionWindowDays: integer expected"; - } - if (message.retentionStrategy != null && message.hasOwnProperty("retentionStrategy")) { - if (properties.dataRetention === 1) - return "dataRetention: multiple values"; - properties.dataRetention = 1; - switch (message.retentionStrategy) { - default: - return "retentionStrategy: enum value expected"; - case 0: - case 1: - break; - } - } - 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; - } - } - if (message.audioExportSettings != null && message.hasOwnProperty("audioExportSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify(message.audioExportSettings); - if (error) - return "audioExportSettings." + error; - } - if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify(message.insightsExportSettings); - if (error) - return "insightsExportSettings." + error; - } return null; }; /** - * Creates a SecuritySettings 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.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest */ - SecuritySettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings) + 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.SecuritySettings(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.redactionStrategy) { - default: - if (typeof object.redactionStrategy === "number") { - message.redactionStrategy = object.redactionStrategy; - break; - } - break; - case "REDACTION_STRATEGY_UNSPECIFIED": - case 0: - message.redactionStrategy = 0; - break; - case "REDACT_WITH_SERVICE": - case 1: - message.redactionStrategy = 1; - break; - } - switch (object.redactionScope) { - default: - if (typeof object.redactionScope === "number") { - message.redactionScope = object.redactionScope; - break; - } - break; - 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.deidentifyTemplate != null) - message.deidentifyTemplate = String(object.deidentifyTemplate); - if (object.retentionWindowDays != null) - message.retentionWindowDays = object.retentionWindowDays | 0; - switch (object.retentionStrategy) { - default: - if (typeof object.retentionStrategy === "number") { - message.retentionStrategy = object.retentionStrategy; - break; - } - break; - case "RETENTION_STRATEGY_UNSPECIFIED": - case 0: - message.retentionStrategy = 0; - break; - case "REMOVE_AFTER_CONVERSATION": - case 1: - message.retentionStrategy = 1; - break; - } - 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: - if (typeof object.purgeDataTypes[i] === "number") { - message.purgeDataTypes[i] = object.purgeDataTypes[i]; - break; - } - case "PURGE_DATA_TYPE_UNSPECIFIED": - case 0: - message.purgeDataTypes[i] = 0; - break; - case "DIALOGFLOW_HISTORY": - case 1: - message.purgeDataTypes[i] = 1; - break; - } - } - if (object.audioExportSettings != null) { - if (typeof object.audioExportSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.audioExportSettings: object expected"); - message.audioExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.fromObject(object.audioExportSettings); - } - if (object.insightsExportSettings != null) { - if (typeof object.insightsExportSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.insightsExportSettings: object expected"); - message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.fromObject(object.insightsExportSettings); - } return message; }; /** - * Creates a plain object from a SecuritySettings 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.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} message SecuritySettings + * @param {google.cloud.dialogflow.cx.v3.GetExperimentRequest} message GetExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SecuritySettings.toObject = function toObject(message, options) { + GetExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.purgeDataTypes = []; - if (options.defaults) { + 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 = ""; - object.audioExportSettings = null; - object.insightsExportSettings = null; - object.deidentifyTemplate = ""; - } 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] === undefined ? message.redactionStrategy : $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] === undefined ? message.redactionScope : $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.retentionStrategy != null && message.hasOwnProperty("retentionStrategy")) { - object.retentionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy[message.retentionStrategy] === undefined ? message.retentionStrategy : $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy[message.retentionStrategy] : message.retentionStrategy; - if (options.oneofs) - object.dataRetention = "retentionStrategy"; - } - 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]] === undefined ? message.purgeDataTypes[j] : $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; - if (message.audioExportSettings != null && message.hasOwnProperty("audioExportSettings")) - object.audioExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.toObject(message.audioExportSettings, options); - if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) - object.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.toObject(message.insightsExportSettings, options); - if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) - object.deidentifyTemplate = message.deidentifyTemplate; return object; }; /** - * Converts this SecuritySettings to JSON. + * Converts this GetExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @instance * @returns {Object.} JSON object */ - SecuritySettings.prototype.toJSON = function toJSON() { + GetExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SecuritySettings + * Gets the default type url for GetExperimentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SecuritySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SecuritySettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetExperimentRequest"; }; + return GetExperimentRequest; + })(); + + v3.CreateExperimentRequest = (function() { + /** - * 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 + * Properties of a CreateExperimentRequest. + * @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 */ - 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 + * Constructs a new CreateExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateExperimentRequest. + * @implements ICreateExperimentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set */ - 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; - })(); + function CreateExperimentRequest(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]]; + } /** - * RetentionStrategy enum. - * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy - * @enum {number} - * @property {number} RETENTION_STRATEGY_UNSPECIFIED=0 RETENTION_STRATEGY_UNSPECIFIED value - * @property {number} REMOVE_AFTER_CONVERSATION=1 REMOVE_AFTER_CONVERSATION value + * CreateExperimentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @instance */ - SecuritySettings.RetentionStrategy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETENTION_STRATEGY_UNSPECIFIED"] = 0; - values[valuesById[1] = "REMOVE_AFTER_CONVERSATION"] = 1; - return values; - })(); + CreateExperimentRequest.prototype.parent = ""; /** - * 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 + * CreateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @instance */ - 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; - })(); - - SecuritySettings.AudioExportSettings = (function() { + CreateExperimentRequest.prototype.experiment = null; - /** - * Properties of an AudioExportSettings. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @interface IAudioExportSettings - * @property {string|null} [gcsBucket] AudioExportSettings gcsBucket - * @property {string|null} [audioExportPattern] AudioExportSettings audioExportPattern - * @property {boolean|null} [enableAudioRedaction] AudioExportSettings enableAudioRedaction - * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat|null} [audioFormat] AudioExportSettings audioFormat - */ - - /** - * Constructs a new AudioExportSettings. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @classdesc Represents an AudioExportSettings. - * @implements IAudioExportSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings=} [properties] Properties to set - */ - function AudioExportSettings(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]]; - } - - /** - * AudioExportSettings gcsBucket. - * @member {string} gcsBucket - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @instance - */ - AudioExportSettings.prototype.gcsBucket = ""; - - /** - * AudioExportSettings audioExportPattern. - * @member {string} audioExportPattern - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @instance - */ - AudioExportSettings.prototype.audioExportPattern = ""; - - /** - * AudioExportSettings enableAudioRedaction. - * @member {boolean} enableAudioRedaction - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @instance - */ - AudioExportSettings.prototype.enableAudioRedaction = false; - - /** - * AudioExportSettings audioFormat. - * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat} audioFormat - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @instance - */ - AudioExportSettings.prototype.audioFormat = 0; - - /** - * Creates a new AudioExportSettings instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings} AudioExportSettings instance - */ - AudioExportSettings.create = function create(properties) { - return new AudioExportSettings(properties); - }; - - /** - * Encodes the specified AudioExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings} message AudioExportSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AudioExportSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gcsBucket != null && Object.hasOwnProperty.call(message, "gcsBucket")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsBucket); - if (message.audioExportPattern != null && Object.hasOwnProperty.call(message, "audioExportPattern")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.audioExportPattern); - if (message.enableAudioRedaction != null && Object.hasOwnProperty.call(message, "enableAudioRedaction")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enableAudioRedaction); - if (message.audioFormat != null && Object.hasOwnProperty.call(message, "audioFormat")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.audioFormat); - return writer; - }; - - /** - * Encodes the specified AudioExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings} message AudioExportSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AudioExportSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AudioExportSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @static - * @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.AudioExportSettings} AudioExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AudioExportSettings.decode = function decode(reader, length) { - 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.AudioExportSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.gcsBucket = reader.string(); - break; - } - case 2: { - message.audioExportPattern = reader.string(); - break; - } - case 3: { - message.enableAudioRedaction = reader.bool(); - break; - } - case 4: { - message.audioFormat = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AudioExportSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings} AudioExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AudioExportSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AudioExportSettings message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AudioExportSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) - if (!$util.isString(message.gcsBucket)) - return "gcsBucket: string expected"; - if (message.audioExportPattern != null && message.hasOwnProperty("audioExportPattern")) - if (!$util.isString(message.audioExportPattern)) - return "audioExportPattern: string expected"; - if (message.enableAudioRedaction != null && message.hasOwnProperty("enableAudioRedaction")) - if (typeof message.enableAudioRedaction !== "boolean") - return "enableAudioRedaction: boolean expected"; - if (message.audioFormat != null && message.hasOwnProperty("audioFormat")) - switch (message.audioFormat) { - default: - return "audioFormat: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - - /** - * Creates an AudioExportSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings} AudioExportSettings - */ - AudioExportSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings(); - if (object.gcsBucket != null) - message.gcsBucket = String(object.gcsBucket); - if (object.audioExportPattern != null) - message.audioExportPattern = String(object.audioExportPattern); - if (object.enableAudioRedaction != null) - message.enableAudioRedaction = Boolean(object.enableAudioRedaction); - switch (object.audioFormat) { - default: - if (typeof object.audioFormat === "number") { - message.audioFormat = object.audioFormat; - break; - } - break; - case "AUDIO_FORMAT_UNSPECIFIED": - case 0: - message.audioFormat = 0; - break; - case "MULAW": - case 1: - message.audioFormat = 1; - break; - case "MP3": - case 2: - message.audioFormat = 2; - break; - case "OGG": - case 3: - message.audioFormat = 3; - break; - } - return message; - }; - - /** - * Creates a plain object from an AudioExportSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings} message AudioExportSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AudioExportSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.gcsBucket = ""; - object.audioExportPattern = ""; - object.enableAudioRedaction = false; - object.audioFormat = options.enums === String ? "AUDIO_FORMAT_UNSPECIFIED" : 0; - } - if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) - object.gcsBucket = message.gcsBucket; - if (message.audioExportPattern != null && message.hasOwnProperty("audioExportPattern")) - object.audioExportPattern = message.audioExportPattern; - if (message.enableAudioRedaction != null && message.hasOwnProperty("enableAudioRedaction")) - object.enableAudioRedaction = message.enableAudioRedaction; - if (message.audioFormat != null && message.hasOwnProperty("audioFormat")) - object.audioFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat[message.audioFormat] === undefined ? message.audioFormat : $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat[message.audioFormat] : message.audioFormat; - return object; - }; - - /** - * Converts this AudioExportSettings to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @instance - * @returns {Object.} JSON object - */ - AudioExportSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for AudioExportSettings - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AudioExportSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings"; - }; - - /** - * AudioFormat enum. - * @name google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat - * @enum {number} - * @property {number} AUDIO_FORMAT_UNSPECIFIED=0 AUDIO_FORMAT_UNSPECIFIED value - * @property {number} MULAW=1 MULAW value - * @property {number} MP3=2 MP3 value - * @property {number} OGG=3 OGG value - */ - AudioExportSettings.AudioFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIO_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[1] = "MULAW"] = 1; - values[valuesById[2] = "MP3"] = 2; - values[valuesById[3] = "OGG"] = 3; - return values; - })(); - - return AudioExportSettings; - })(); - - SecuritySettings.InsightsExportSettings = (function() { - - /** - * Properties of an InsightsExportSettings. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @interface IInsightsExportSettings - * @property {boolean|null} [enableInsightsExport] InsightsExportSettings enableInsightsExport - */ - - /** - * Constructs a new InsightsExportSettings. - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings - * @classdesc Represents an InsightsExportSettings. - * @implements IInsightsExportSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set - */ - function InsightsExportSettings(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]]; - } - - /** - * InsightsExportSettings enableInsightsExport. - * @member {boolean} enableInsightsExport - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @instance - */ - InsightsExportSettings.prototype.enableInsightsExport = false; - - /** - * Creates a new InsightsExportSettings instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings instance - */ - InsightsExportSettings.create = function create(properties) { - return new InsightsExportSettings(properties); - }; - - /** - * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InsightsExportSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enableInsightsExport != null && Object.hasOwnProperty.call(message, "enableInsightsExport")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableInsightsExport); - return writer; - }; - - /** - * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InsightsExportSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @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.InsightsExportSettings} InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InsightsExportSettings.decode = function decode(reader, length) { - 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.InsightsExportSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.enableInsightsExport = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InsightsExportSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InsightsExportSettings message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InsightsExportSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) - if (typeof message.enableInsightsExport !== "boolean") - return "enableInsightsExport: boolean expected"; - return null; - }; - - /** - * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings - */ - InsightsExportSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(); - if (object.enableInsightsExport != null) - message.enableInsightsExport = Boolean(object.enableInsightsExport); - return message; - }; - - /** - * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} message InsightsExportSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InsightsExportSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.enableInsightsExport = false; - if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) - object.enableInsightsExport = message.enableInsightsExport; - return object; - }; - - /** - * Converts this InsightsExportSettings to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @instance - * @returns {Object.} JSON object - */ - InsightsExportSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InsightsExportSettings - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InsightsExportSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings"; - }; - - return InsightsExportSettings; - })(); - - return SecuritySettings; - })(); - - v3.Versions = (function() { - - /** - * Constructs a new Versions service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Versions - * @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 Versions(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Versions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Versions; - - /** - * Creates new Versions service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @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 {Versions} RPC service. Useful where requests and/or responses are streamed. - */ - Versions.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|listVersions}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef ListVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} [response] ListVersionsResponse - */ - - /** - * Calls ListVersions. - * @function listVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback} callback Node-style callback called with the error, if any, and ListVersionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.listVersions = function listVersions(request, callback) { - return this.rpcCall(listVersions, $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest, $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse, request, callback); - }, "name", { value: "ListVersions" }); - - /** - * Calls ListVersions. - * @function listVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|getVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef GetVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version - */ - - /** - * Calls GetVersion. - * @function getVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback} callback Node-style callback called with the error, if any, and Version - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.getVersion = function getVersion(request, callback) { - return this.rpcCall(getVersion, $root.google.cloud.dialogflow.cx.v3.GetVersionRequest, $root.google.cloud.dialogflow.cx.v3.Version, request, callback); - }, "name", { value: "GetVersion" }); - - /** - * Calls GetVersion. - * @function getVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|createVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef CreateVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateVersion. - * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.createVersion = function createVersion(request, callback) { - return this.rpcCall(createVersion, $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateVersion" }); - - /** - * Calls CreateVersion. - * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|updateVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef UpdateVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version - */ - - /** - * Calls UpdateVersion. - * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback} callback Node-style callback called with the error, if any, and Version - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.updateVersion = function updateVersion(request, callback) { - return this.rpcCall(updateVersion, $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest, $root.google.cloud.dialogflow.cx.v3.Version, request, callback); - }, "name", { value: "UpdateVersion" }); - - /** - * Calls UpdateVersion. - * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|deleteVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef DeleteVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteVersion. - * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.deleteVersion = function deleteVersion(request, callback) { - return this.rpcCall(deleteVersion, $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteVersion" }); - - /** - * Calls DeleteVersion. - * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|loadVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef LoadVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls LoadVersion. - * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.loadVersion = function loadVersion(request, callback) { - return this.rpcCall(loadVersion, $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "LoadVersion" }); - - /** - * Calls LoadVersion. - * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|compareVersions}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef CompareVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} [response] CompareVersionsResponse - */ - - /** - * Calls CompareVersions. - * @function compareVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback} callback Node-style callback called with the error, if any, and CompareVersionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Versions.prototype.compareVersions = function compareVersions(request, callback) { - return this.rpcCall(compareVersions, $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest, $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse, request, callback); - }, "name", { value: "CompareVersions" }); - - /** - * Calls CompareVersions. - * @function compareVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Versions; - })(); - - v3.CreateVersionOperationMetadata = (function() { - - /** - * Properties of a CreateVersionOperationMetadata. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateVersionOperationMetadata - * @property {string|null} [version] CreateVersionOperationMetadata version - */ - - /** - * Constructs a new CreateVersionOperationMetadata. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateVersionOperationMetadata. - * @implements ICreateVersionOperationMetadata - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set - */ - function CreateVersionOperationMetadata(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]]; - } - - /** - * CreateVersionOperationMetadata version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata - * @instance - */ - CreateVersionOperationMetadata.prototype.version = ""; - - /** - * Creates a new CreateVersionOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata instance - */ - CreateVersionOperationMetadata.create = function create(properties) { - return new CreateVersionOperationMetadata(properties); - }; + /** + * Creates a new CreateExperimentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest instance + */ + CreateExperimentRequest.create = function create(properties) { + return new CreateExperimentRequest(properties); + }; /** - * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.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.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata 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 */ - CreateVersionOperationMetadata.encode = function encode(message, writer) { + CreateExperimentRequest.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.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 CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.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.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata 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 */ - CreateVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVersionOperationMetadata 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.CreateVersionOperationMetadata + * @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.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @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 */ - CreateVersionOperationMetadata.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.CreateVersionOperationMetadata(); + 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) { case 1: { - message.version = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); break; } default: @@ -74708,127 +73458,137 @@ }; /** - * Decodes a CreateVersionOperationMetadata 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.CreateVersionOperationMetadata + * @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.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @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 */ - CreateVersionOperationMetadata.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 CreateVersionOperationMetadata message. + * Verifies a CreateExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @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 */ - CreateVersionOperationMetadata.verify = function verify(message) { + CreateExperimentRequest.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.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; + } return null; }; /** - * Creates a CreateVersionOperationMetadata 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.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest */ - CreateVersionOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata) + 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.CreateVersionOperationMetadata(); - if (object.version != null) - message.version = String(object.version); + 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); + } return message; }; /** - * Creates a plain object from a CreateVersionOperationMetadata 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.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} message CreateVersionOperationMetadata + * @param {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} message CreateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVersionOperationMetadata.toObject = function toObject(message, options) { + CreateExperimentRequest.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; + if (options.defaults) { + object.parent = ""; + object.experiment = null; + } + 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); return object; }; /** - * Converts this CreateVersionOperationMetadata to JSON. + * Converts this CreateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @instance * @returns {Object.} JSON object */ - CreateVersionOperationMetadata.prototype.toJSON = function toJSON() { + CreateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateVersionOperationMetadata + * Gets the default type url for CreateExperimentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateVersionOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateExperimentRequest"; }; - return CreateVersionOperationMetadata; + return CreateExperimentRequest; })(); - v3.Version = (function() { + v3.UpdateExperimentRequest = (function() { /** - * Properties of a Version. + * Properties of an UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IVersion - * @property {string|null} [name] Version name - * @property {string|null} [displayName] Version displayName - * @property {string|null} [description] Version description - * @property {google.cloud.dialogflow.cx.v3.INluSettings|null} [nluSettings] Version nluSettings - * @property {google.protobuf.ITimestamp|null} [createTime] Version createTime - * @property {google.cloud.dialogflow.cx.v3.Version.State|null} [state] Version state + * @interface IUpdateExperimentRequest + * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] UpdateExperimentRequest experiment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask */ /** - * Constructs a new Version. + * Constructs a new UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Version. - * @implements IVersion + * @classdesc Represents an UpdateExperimentRequest. + * @implements IUpdateExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set */ - function Version(properties) { + function UpdateExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -74836,145 +73596,89 @@ } /** - * Version name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Version - * @instance - */ - Version.prototype.name = ""; - - /** - * Version displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Version - * @instance - */ - Version.prototype.displayName = ""; - - /** - * Version description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Version - * @instance - */ - Version.prototype.description = ""; - - /** - * Version nluSettings. - * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings - * @memberof google.cloud.dialogflow.cx.v3.Version - * @instance - */ - Version.prototype.nluSettings = null; - - /** - * Version createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3.Version + * UpdateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @instance */ - Version.prototype.createTime = null; + UpdateExperimentRequest.prototype.experiment = null; /** - * Version state. - * @member {google.cloud.dialogflow.cx.v3.Version.State} state - * @memberof google.cloud.dialogflow.cx.v3.Version + * UpdateExperimentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @instance */ - Version.prototype.state = 0; + UpdateExperimentRequest.prototype.updateMask = null; /** - * Creates a new Version instance using the specified properties. + * Creates a new UpdateExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Version} Version instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest instance */ - Version.create = function create(properties) { - return new Version(properties); + UpdateExperimentRequest.create = function create(properties) { + return new UpdateExperimentRequest(properties); }; /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.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.Version + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version 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 */ - Version.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.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.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) - $root.google.cloud.dialogflow.cx.v3.NluSettings.encode(message.nluSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + 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 Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.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.Version + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version 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 */ - Version.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Version 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.Version + * @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.Version} Version + * @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 */ - Version.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.Version(); + 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.name = reader.string(); + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.state = reader.int32(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -74986,222 +73690,141 @@ }; /** - * Decodes a Version 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.Version + * @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.Version} Version + * @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 */ - Version.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 Version message. + * Verifies an UpdateExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Version + * @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 */ - Version.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.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.nluSettings != null && message.hasOwnProperty("nluSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3.NluSettings.verify(message.nluSettings); + if (message.experiment != null && message.hasOwnProperty("experiment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); if (error) - return "nluSettings." + error; + return "experiment." + error; } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "createTime." + error; + return "updateMask." + error; } - 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; - } return null; }; /** - * Creates a Version 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.Version + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Version} Version + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest */ - Version.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Version) + 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.Version(); - 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.nluSettings != null) { - if (typeof object.nluSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Version.nluSettings: object expected"); - message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.fromObject(object.nluSettings); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Version.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + 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); } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "RUNNING": - case 1: - message.state = 1; - break; - case "SUCCEEDED": - case 2: - message.state = 2; - break; - case "FAILED": - case 3: - message.state = 3; - break; + 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 a Version 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.Version + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Version} message Version + * @param {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} message UpdateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Version.toObject = function toObject(message, options) { + UpdateExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.nluSettings = null; - object.createTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.experiment = null; + object.updateMask = 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.nluSettings != null && message.hasOwnProperty("nluSettings")) - object.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.toObject(message.nluSettings, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Version.State[message.state] === undefined ? message.state : $root.google.cloud.dialogflow.cx.v3.Version.State[message.state] : message.state; + 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 Version to JSON. + * Converts this UpdateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @instance * @returns {Object.} JSON object */ - Version.prototype.toJSON = function toJSON() { + UpdateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Version + * Gets the default type url for UpdateExperimentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Version.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Version"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateExperimentRequest"; }; - /** - * State enum. - * @name google.cloud.dialogflow.cx.v3.Version.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} RUNNING=1 RUNNING value - * @property {number} SUCCEEDED=2 SUCCEEDED value - * @property {number} FAILED=3 FAILED value - */ - Version.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RUNNING"] = 1; - values[valuesById[2] = "SUCCEEDED"] = 2; - values[valuesById[3] = "FAILED"] = 3; - return values; - })(); - - return Version; + return UpdateExperimentRequest; })(); - v3.ListVersionsRequest = (function() { + v3.DeleteExperimentRequest = (function() { /** - * Properties of a ListVersionsRequest. + * Properties of a DeleteExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListVersionsRequest - * @property {string|null} [parent] ListVersionsRequest parent - * @property {number|null} [pageSize] ListVersionsRequest pageSize - * @property {string|null} [pageToken] ListVersionsRequest pageToken + * @interface IDeleteExperimentRequest + * @property {string|null} [name] DeleteExperimentRequest name */ /** - * Constructs a new ListVersionsRequest. + * Constructs a new DeleteExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListVersionsRequest. - * @implements IListVersionsRequest + * @classdesc Represents a DeleteExperimentRequest. + * @implements IDeleteExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set */ - function ListVersionsRequest(properties) { + function DeleteExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75209,103 +73832,75 @@ } /** - * ListVersionsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @instance - */ - ListVersionsRequest.prototype.parent = ""; - - /** - * ListVersionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @instance - */ - ListVersionsRequest.prototype.pageSize = 0; - - /** - * ListVersionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * DeleteExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @instance */ - ListVersionsRequest.prototype.pageToken = ""; + DeleteExperimentRequest.prototype.name = ""; /** - * Creates a new ListVersionsRequest instance using the specified properties. + * Creates a new DeleteExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest instance */ - ListVersionsRequest.create = function create(properties) { - return new ListVersionsRequest(properties); + DeleteExperimentRequest.create = function create(properties) { + return new DeleteExperimentRequest(properties); }; /** - * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.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.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest 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 */ - ListVersionsRequest.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.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.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.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest 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 */ - ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVersionsRequest 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.ListVersionsRequest + * @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.ListVersionsRequest} ListVersionsRequest + * @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 */ - ListVersionsRequest.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.ListVersionsRequest(); + 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.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -75317,141 +73912,122 @@ }; /** - * Decodes a ListVersionsRequest 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.ListVersionsRequest + * @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.ListVersionsRequest} ListVersionsRequest + * @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 */ - ListVersionsRequest.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 ListVersionsRequest message. + * Verifies a DeleteExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @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 */ - ListVersionsRequest.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.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"; return null; }; /** - * Creates a ListVersionsRequest 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.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest */ - ListVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest) + DeleteExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest(); - 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.DeleteExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListVersionsRequest 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.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListVersionsRequest} message ListVersionsRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} message DeleteExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVersionsRequest.toObject = function toObject(message, options) { + DeleteExperimentRequest.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; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this DeleteExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @instance * @returns {Object.} JSON object */ - ListVersionsRequest.prototype.toJSON = function toJSON() { + DeleteExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVersionsRequest + * Gets the default type url for DeleteExperimentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListVersionsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteExperimentRequest"; }; - return ListVersionsRequest; + return DeleteExperimentRequest; })(); - v3.ListVersionsResponse = (function() { + v3.StartExperimentRequest = (function() { /** - * Properties of a ListVersionsResponse. + * Properties of a StartExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListVersionsResponse - * @property {Array.|null} [versions] ListVersionsResponse versions - * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken + * @interface IStartExperimentRequest + * @property {string|null} [name] StartExperimentRequest name */ /** - * Constructs a new ListVersionsResponse. + * Constructs a new StartExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListVersionsResponse. - * @implements IListVersionsResponse + * @classdesc Represents a StartExperimentRequest. + * @implements IStartExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set */ - function ListVersionsResponse(properties) { - this.versions = []; + function StartExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75459,92 +74035,75 @@ } /** - * ListVersionsResponse versions. - * @member {Array.} versions - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @instance - */ - ListVersionsResponse.prototype.versions = $util.emptyArray; - - /** - * ListVersionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * StartExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @instance */ - ListVersionsResponse.prototype.nextPageToken = ""; + StartExperimentRequest.prototype.name = ""; /** - * Creates a new ListVersionsResponse instance using the specified properties. + * Creates a new StartExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest instance */ - ListVersionsResponse.create = function create(properties) { - return new ListVersionsResponse(properties); + StartExperimentRequest.create = function create(properties) { + return new StartExperimentRequest(properties); }; /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.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.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse 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 */ - ListVersionsResponse.encode = function encode(message, writer) { + StartExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.versions != null && message.versions.length) - for (var i = 0; i < message.versions.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Version.encode(message.versions[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 ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.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.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse 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 */ - ListVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListVersionsResponse 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.ListVersionsResponse + * @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.ListVersionsResponse} ListVersionsResponse + * @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 */ - ListVersionsResponse.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.ListVersionsResponse(); + 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: { - if (!(message.versions && message.versions.length)) - message.versions = []; - message.versions.push($root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -75556,148 +74115,122 @@ }; /** - * Decodes a ListVersionsResponse 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.ListVersionsResponse + * @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.ListVersionsResponse} ListVersionsResponse + * @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 */ - ListVersionsResponse.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 ListVersionsResponse message. + * Verifies a StartExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @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 */ - ListVersionsResponse.verify = function verify(message) { + StartExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.versions != null && message.hasOwnProperty("versions")) { - if (!Array.isArray(message.versions)) - return "versions: array expected"; - for (var i = 0; i < message.versions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.versions[i]); - if (error) - return "versions." + 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 ListVersionsResponse 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.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest */ - ListVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse) + 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.ListVersionsResponse(); - if (object.versions) { - if (!Array.isArray(object.versions)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListVersionsResponse.versions: array expected"); - message.versions = []; - for (var i = 0; i < object.versions.length; ++i) { - if (typeof object.versions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListVersionsResponse.versions: object expected"); - message.versions[i] = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.versions[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + 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 ListVersionsResponse 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.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} message ListVersionsResponse + * @param {google.cloud.dialogflow.cx.v3.StartExperimentRequest} message StartExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListVersionsResponse.toObject = function toObject(message, options) { + StartExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versions = []; if (options.defaults) - object.nextPageToken = ""; - if (message.versions && message.versions.length) { - object.versions = []; - for (var j = 0; j < message.versions.length; ++j) - object.versions[j] = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.versions[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 ListVersionsResponse to JSON. + * Converts this StartExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @instance * @returns {Object.} JSON object */ - ListVersionsResponse.prototype.toJSON = function toJSON() { + StartExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListVersionsResponse + * Gets the default type url for StartExperimentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StartExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListVersionsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StartExperimentRequest"; }; - return ListVersionsResponse; + return StartExperimentRequest; })(); - v3.GetVersionRequest = (function() { + v3.StopExperimentRequest = (function() { /** - * Properties of a GetVersionRequest. + * Properties of a StopExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetVersionRequest - * @property {string|null} [name] GetVersionRequest name + * @interface IStopExperimentRequest + * @property {string|null} [name] StopExperimentRequest name */ /** - * Constructs a new GetVersionRequest. + * Constructs a new StopExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetVersionRequest. - * @implements IGetVersionRequest + * @classdesc Represents a StopExperimentRequest. + * @implements IStopExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set */ - function GetVersionRequest(properties) { + function StopExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75705,35 +74238,35 @@ } /** - * GetVersionRequest name. + * StopExperimentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @instance */ - GetVersionRequest.prototype.name = ""; + StopExperimentRequest.prototype.name = ""; /** - * Creates a new GetVersionRequest instance using the specified properties. + * Creates a new StopExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest instance + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest instance */ - GetVersionRequest.create = function create(properties) { - return new GetVersionRequest(properties); + StopExperimentRequest.create = function create(properties) { + return new StopExperimentRequest(properties); }; /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.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.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest 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 */ - GetVersionRequest.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")) @@ -75742,33 +74275,33 @@ }; /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.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.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest 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 */ - GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetVersionRequest 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.GetVersionRequest + * @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.GetVersionRequest} GetVersionRequest + * @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 */ - GetVersionRequest.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.GetVersionRequest(); + 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) { @@ -75785,30 +74318,30 @@ }; /** - * Decodes a GetVersionRequest 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.GetVersionRequest + * @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.GetVersionRequest} GetVersionRequest + * @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 */ - GetVersionRequest.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 GetVersionRequest message. + * Verifies a StopExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @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 */ - GetVersionRequest.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")) @@ -75818,32 +74351,32 @@ }; /** - * Creates a GetVersionRequest 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.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest */ - GetVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetVersionRequest) + 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.GetVersionRequest(); + 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 GetVersionRequest 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.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetVersionRequest} message GetVersionRequest + * @param {google.cloud.dialogflow.cx.v3.StopExperimentRequest} message StopExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetVersionRequest.toObject = function toObject(message, options) { + StopExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -75855,53 +74388,252 @@ }; /** - * Converts this GetVersionRequest to JSON. + * Converts this StopExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @instance * @returns {Object.} JSON object */ - GetVersionRequest.prototype.toJSON = function toJSON() { + StopExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetVersionRequest + * Gets the default type url for StopExperimentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + StopExperimentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetVersionRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.StopExperimentRequest"; }; - return GetVersionRequest; + return StopExperimentRequest; })(); - v3.CreateVersionRequest = (function() { + v3.SecuritySettingsService = (function() { /** - * Properties of a CreateVersionRequest. + * Constructs a new SecuritySettingsService service. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateVersionRequest - * @property {string|null} [parent] CreateVersionRequest parent - * @property {google.cloud.dialogflow.cx.v3.IVersion|null} [version] CreateVersionRequest version + * @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; /** - * Constructs a new CreateVersionRequest. + * 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); + }; + + /** + * 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 + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SecuritySettingsService; + })(); + + v3.GetSecuritySettingsRequest = (function() { + + /** + * Properties of a GetSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateVersionRequest. - * @implements ICreateVersionRequest + * @interface IGetSecuritySettingsRequest + * @property {string|null} [name] GetSecuritySettingsRequest name + */ + + /** + * Constructs a new GetSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetSecuritySettingsRequest. + * @implements IGetSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set */ - function CreateVersionRequest(properties) { + function GetSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75909,89 +74641,75 @@ } /** - * CreateVersionRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @instance - */ - CreateVersionRequest.prototype.parent = ""; - - /** - * CreateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest + * GetSecuritySettingsRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @instance */ - CreateVersionRequest.prototype.version = null; + GetSecuritySettingsRequest.prototype.name = ""; /** - * Creates a new CreateVersionRequest instance using the specified properties. + * Creates a new GetSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest instance */ - CreateVersionRequest.create = function create(properties) { - return new CreateVersionRequest(properties); + GetSecuritySettingsRequest.create = function create(properties) { + return new GetSecuritySettingsRequest(properties); }; /** - * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.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.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest 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 */ - CreateVersionRequest.encode = function encode(message, writer) { + GetSecuritySettingsRequest.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.version != null && Object.hasOwnProperty.call(message, "version")) - $root.google.cloud.dialogflow.cx.v3.Version.encode(message.version, 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 CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.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.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest 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 */ - CreateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateVersionRequest 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.CreateVersionRequest + * @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.CreateVersionRequest} CreateVersionRequest + * @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 */ - CreateVersionRequest.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.CreateVersionRequest(); + 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.parent = reader.string(); - break; - } - case 2: { - message.version = $root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -76003,137 +74721,123 @@ }; /** - * Decodes a CreateVersionRequest 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.CreateVersionRequest + * @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.CreateVersionRequest} CreateVersionRequest + * @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 */ - CreateVersionRequest.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 CreateVersionRequest message. + * Verifies a GetSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest + * @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 */ - CreateVersionRequest.verify = function verify(message) { + GetSecuritySettingsRequest.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.version != null && message.hasOwnProperty("version")) { - var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); - if (error) - return "version." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateVersionRequest 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.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest */ - CreateVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateVersionRequest.version: object expected"); - message.version = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.version); - } + 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.GetSecuritySettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateVersionRequest 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.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateVersionRequest} message CreateVersionRequest + * @param {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} message GetSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateVersionRequest.toObject = function toObject(message, options) { + GetSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.version = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.version, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateVersionRequest to JSON. + * Converts this GetSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - CreateVersionRequest.prototype.toJSON = function toJSON() { + GetSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateVersionRequest + * Gets the default type url for GetSecuritySettingsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateVersionRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest"; }; - return CreateVersionRequest; + return GetSecuritySettingsRequest; })(); - v3.UpdateVersionRequest = (function() { + v3.UpdateSecuritySettingsRequest = (function() { /** - * Properties of an UpdateVersionRequest. + * Properties of an UpdateSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateVersionRequest - * @property {google.cloud.dialogflow.cx.v3.IVersion|null} [version] UpdateVersionRequest version - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVersionRequest updateMask + * @interface IUpdateSecuritySettingsRequest + * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] UpdateSecuritySettingsRequest securitySettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSecuritySettingsRequest updateMask */ /** - * Constructs a new UpdateVersionRequest. + * Constructs a new UpdateSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateVersionRequest. - * @implements IUpdateVersionRequest + * @classdesc Represents an UpdateSecuritySettingsRequest. + * @implements IUpdateSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set */ - function UpdateVersionRequest(properties) { + function UpdateSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76141,85 +74845,85 @@ } /** - * UpdateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * UpdateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance */ - UpdateVersionRequest.prototype.version = null; + UpdateSecuritySettingsRequest.prototype.securitySettings = null; /** - * UpdateVersionRequest updateMask. + * UpdateSecuritySettingsRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance */ - UpdateVersionRequest.prototype.updateMask = null; + UpdateSecuritySettingsRequest.prototype.updateMask = null; /** - * Creates a new UpdateVersionRequest instance using the specified properties. + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest instance */ - UpdateVersionRequest.create = function create(properties) { - return new UpdateVersionRequest(properties); + UpdateSecuritySettingsRequest.create = function create(properties) { + return new UpdateSecuritySettingsRequest(properties); }; /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.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.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} message UpdateVersionRequest 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 */ - UpdateVersionRequest.encode = function encode(message, writer) { + UpdateSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.google.cloud.dialogflow.cx.v3.Version.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.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.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} message UpdateVersionRequest 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 */ - UpdateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateVersionRequest 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.UpdateVersionRequest + * @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.UpdateVersionRequest} UpdateVersionRequest + * @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 */ - UpdateVersionRequest.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.UpdateVersionRequest(); + 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.version = $root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32()); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); break; } case 2: { @@ -76235,36 +74939,36 @@ }; /** - * Decodes an UpdateVersionRequest 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.UpdateVersionRequest + * @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.UpdateVersionRequest} UpdateVersionRequest + * @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 */ - UpdateVersionRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateVersionRequest message. + * Verifies an UpdateSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @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 */ - UpdateVersionRequest.verify = function verify(message) { + UpdateSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); if (error) - return "version." + error; + return "securitySettings." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); @@ -76275,101 +74979,103 @@ }; /** - * Creates an UpdateVersionRequest 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.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest */ - UpdateVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest) + 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.UpdateVersionRequest(); - if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateVersionRequest.version: object expected"); - message.version = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.version); + 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.UpdateVersionRequest.updateMask: object expected"); + 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 an UpdateVersionRequest 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.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} message UpdateVersionRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateVersionRequest.toObject = function toObject(message, options) { + UpdateSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.version = null; + object.securitySettings = null; object.updateMask = null; } - if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.version, 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 UpdateVersionRequest to JSON. + * Converts this UpdateSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - UpdateVersionRequest.prototype.toJSON = function toJSON() { + UpdateSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateVersionRequest + * Gets the default type url for UpdateSecuritySettingsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateVersionRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest"; }; - return UpdateVersionRequest; + return UpdateSecuritySettingsRequest; })(); - v3.DeleteVersionRequest = (function() { + v3.ListSecuritySettingsRequest = (function() { /** - * Properties of a DeleteVersionRequest. + * Properties of a ListSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteVersionRequest - * @property {string|null} [name] DeleteVersionRequest name + * @interface IListSecuritySettingsRequest + * @property {string|null} [parent] ListSecuritySettingsRequest parent + * @property {number|null} [pageSize] ListSecuritySettingsRequest pageSize + * @property {string|null} [pageToken] ListSecuritySettingsRequest pageToken */ /** - * Constructs a new DeleteVersionRequest. + * Constructs a new ListSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteVersionRequest. - * @implements IDeleteVersionRequest + * @classdesc Represents a ListSecuritySettingsRequest. + * @implements IListSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set */ - function DeleteVersionRequest(properties) { + function ListSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76377,75 +75083,103 @@ } /** - * DeleteVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * ListSecuritySettingsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @instance */ - DeleteVersionRequest.prototype.name = ""; + ListSecuritySettingsRequest.prototype.parent = ""; /** - * Creates a new DeleteVersionRequest instance using the specified properties. + * 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 + * @instance + */ + ListSecuritySettingsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest instance */ - DeleteVersionRequest.create = function create(properties) { - return new DeleteVersionRequest(properties); + ListSecuritySettingsRequest.create = function create(properties) { + return new ListSecuritySettingsRequest(properties); }; /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.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.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest 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 */ - DeleteVersionRequest.encode = function encode(message, writer) { + ListSecuritySettingsRequest.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); return writer; }; /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.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.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest 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 */ - DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteVersionRequest 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.DeleteVersionRequest + * @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.DeleteVersionRequest} DeleteVersionRequest + * @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 */ - DeleteVersionRequest.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.DeleteVersionRequest(); + 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: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -76457,123 +75191,141 @@ }; /** - * Decodes a DeleteVersionRequest 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.DeleteVersionRequest + * @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.DeleteVersionRequest} DeleteVersionRequest + * @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 */ - DeleteVersionRequest.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 DeleteVersionRequest message. + * Verifies a ListSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @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 */ - DeleteVersionRequest.verify = function verify(message) { + ListSecuritySettingsRequest.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"; return null; }; /** - * Creates a DeleteVersionRequest 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.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest */ - DeleteVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest) + 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.DeleteVersionRequest(); - if (object.name != null) - message.name = String(object.name); + 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 DeleteVersionRequest 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.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} message DeleteVersionRequest + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} message ListSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteVersionRequest.toObject = function toObject(message, options) { + ListSecuritySettingsRequest.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 = ""; + } + 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 DeleteVersionRequest to JSON. + * Converts this ListSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - DeleteVersionRequest.prototype.toJSON = function toJSON() { + ListSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteVersionRequest + * Gets the default type url for ListSecuritySettingsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteVersionRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest"; }; - return DeleteVersionRequest; + return ListSecuritySettingsRequest; })(); - v3.LoadVersionRequest = (function() { + v3.ListSecuritySettingsResponse = (function() { /** - * Properties of a LoadVersionRequest. + * Properties of a ListSecuritySettingsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ILoadVersionRequest - * @property {string|null} [name] LoadVersionRequest name - * @property {boolean|null} [allowOverrideAgentResources] LoadVersionRequest allowOverrideAgentResources + * @interface IListSecuritySettingsResponse + * @property {Array.|null} [securitySettings] ListSecuritySettingsResponse securitySettings + * @property {string|null} [nextPageToken] ListSecuritySettingsResponse nextPageToken */ /** - * Constructs a new LoadVersionRequest. + * Constructs a new ListSecuritySettingsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a LoadVersionRequest. - * @implements ILoadVersionRequest + * @classdesc Represents a ListSecuritySettingsResponse. + * @implements IListSecuritySettingsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set */ - function LoadVersionRequest(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) @@ -76581,89 +75333,92 @@ } /** - * LoadVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * ListSecuritySettingsResponse securitySettings. + * @member {Array.} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance */ - LoadVersionRequest.prototype.name = ""; + ListSecuritySettingsResponse.prototype.securitySettings = $util.emptyArray; /** - * LoadVersionRequest allowOverrideAgentResources. - * @member {boolean} allowOverrideAgentResources - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * ListSecuritySettingsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance */ - LoadVersionRequest.prototype.allowOverrideAgentResources = false; + ListSecuritySettingsResponse.prototype.nextPageToken = ""; /** - * Creates a new LoadVersionRequest instance using the specified properties. + * Creates a new ListSecuritySettingsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse instance */ - LoadVersionRequest.create = function create(properties) { - return new LoadVersionRequest(properties); + ListSecuritySettingsResponse.create = function create(properties) { + return new ListSecuritySettingsResponse(properties); }; /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.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.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest 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 */ - LoadVersionRequest.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.allowOverrideAgentResources != null && Object.hasOwnProperty.call(message, "allowOverrideAgentResources")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowOverrideAgentResources); + 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 LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.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.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest 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 */ - LoadVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSecuritySettingsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LoadVersionRequest 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.LoadVersionRequest + * @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.LoadVersionRequest} LoadVersionRequest + * @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 */ - LoadVersionRequest.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.LoadVersionRequest(); + 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.allowOverrideAgentResources = reader.bool(); + message.nextPageToken = reader.string(); break; } default: @@ -76675,133 +75430,149 @@ }; /** - * Decodes a LoadVersionRequest 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.LoadVersionRequest + * @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.LoadVersionRequest} LoadVersionRequest + * @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 */ - LoadVersionRequest.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 LoadVersionRequest message. + * Verifies a ListSecuritySettingsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @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 */ - LoadVersionRequest.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.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) - if (typeof message.allowOverrideAgentResources !== "boolean") - return "allowOverrideAgentResources: boolean 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 LoadVersionRequest 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.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse */ - LoadVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest) + 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.LoadVersionRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.allowOverrideAgentResources != null) - message.allowOverrideAgentResources = Boolean(object.allowOverrideAgentResources); + 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 LoadVersionRequest 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.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.LoadVersionRequest} message LoadVersionRequest + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} message ListSecuritySettingsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoadVersionRequest.toObject = function toObject(message, options) { + ListSecuritySettingsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.allowOverrideAgentResources = false; + 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.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) - object.allowOverrideAgentResources = message.allowOverrideAgentResources; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this LoadVersionRequest to JSON. + * Converts this ListSecuritySettingsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance * @returns {Object.} JSON object */ - LoadVersionRequest.prototype.toJSON = function toJSON() { + ListSecuritySettingsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LoadVersionRequest + * Gets the default type url for ListSecuritySettingsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LoadVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListSecuritySettingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.LoadVersionRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse"; }; - return LoadVersionRequest; + return ListSecuritySettingsResponse; })(); - v3.CompareVersionsRequest = (function() { + v3.CreateSecuritySettingsRequest = (function() { /** - * Properties of a CompareVersionsRequest. + * Properties of a CreateSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICompareVersionsRequest - * @property {string|null} [baseVersion] CompareVersionsRequest baseVersion - * @property {string|null} [targetVersion] CompareVersionsRequest targetVersion - * @property {string|null} [languageCode] CompareVersionsRequest languageCode + * @interface ICreateSecuritySettingsRequest + * @property {string|null} [parent] CreateSecuritySettingsRequest parent + * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] CreateSecuritySettingsRequest securitySettings */ /** - * Constructs a new CompareVersionsRequest. + * Constructs a new CreateSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CompareVersionsRequest. - * @implements ICompareVersionsRequest + * @classdesc Represents a CreateSecuritySettingsRequest. + * @implements ICreateSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set */ - function CompareVersionsRequest(properties) { + function CreateSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76809,103 +75580,89 @@ } /** - * CompareVersionsRequest baseVersion. - * @member {string} baseVersion - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest - * @instance - */ - CompareVersionsRequest.prototype.baseVersion = ""; - - /** - * CompareVersionsRequest targetVersion. - * @member {string} targetVersion - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * CreateSecuritySettingsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance */ - CompareVersionsRequest.prototype.targetVersion = ""; + CreateSecuritySettingsRequest.prototype.parent = ""; /** - * CompareVersionsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * CreateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance */ - CompareVersionsRequest.prototype.languageCode = ""; + CreateSecuritySettingsRequest.prototype.securitySettings = null; /** - * Creates a new CompareVersionsRequest instance using the specified properties. + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest instance */ - CompareVersionsRequest.create = function create(properties) { - return new CompareVersionsRequest(properties); + CreateSecuritySettingsRequest.create = function create(properties) { + return new CreateSecuritySettingsRequest(properties); }; /** - * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.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.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest 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 */ - CompareVersionsRequest.encode = function encode(message, writer) { + CreateSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.baseVersion != null && Object.hasOwnProperty.call(message, "baseVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersion); - if (message.targetVersion != null && Object.hasOwnProperty.call(message, "targetVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersion); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + 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(); return writer; }; /** - * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.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.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest 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 */ - CompareVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompareVersionsRequest 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.CompareVersionsRequest + * @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.CompareVersionsRequest} CompareVersionsRequest + * @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 */ - CompareVersionsRequest.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.CompareVersionsRequest(); + 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) { case 1: { - message.baseVersion = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.targetVersion = reader.string(); - break; - } - case 3: { - message.languageCode = reader.string(); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); break; } default: @@ -76917,141 +75674,136 @@ }; /** - * Decodes a CompareVersionsRequest 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.CompareVersionsRequest + * @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.CompareVersionsRequest} CompareVersionsRequest + * @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 */ - CompareVersionsRequest.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 CompareVersionsRequest message. + * Verifies a CreateSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @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 */ - CompareVersionsRequest.verify = function verify(message) { + CreateSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) - if (!$util.isString(message.baseVersion)) - return "baseVersion: string expected"; - if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) - if (!$util.isString(message.targetVersion)) - return "targetVersion: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + 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; + } return null; }; /** - * Creates a CompareVersionsRequest 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.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest */ - CompareVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) + 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.CompareVersionsRequest(); - if (object.baseVersion != null) - message.baseVersion = String(object.baseVersion); - if (object.targetVersion != null) - message.targetVersion = String(object.targetVersion); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); + 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); + } return message; }; /** - * Creates a plain object from a CompareVersionsRequest 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.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} message CompareVersionsRequest + * @param {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} message CreateSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompareVersionsRequest.toObject = function toObject(message, options) { + CreateSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.baseVersion = ""; - object.targetVersion = ""; - object.languageCode = ""; + object.parent = ""; + object.securitySettings = null; } - if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) - object.baseVersion = message.baseVersion; - if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) - object.targetVersion = message.targetVersion; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + 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); return object; }; /** - * Converts this CompareVersionsRequest to JSON. + * Converts this CreateSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - CompareVersionsRequest.prototype.toJSON = function toJSON() { + CreateSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CompareVersionsRequest + * Gets the default type url for CreateSecuritySettingsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CompareVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CompareVersionsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest"; }; - return CompareVersionsRequest; + return CreateSecuritySettingsRequest; })(); - v3.CompareVersionsResponse = (function() { + v3.DeleteSecuritySettingsRequest = (function() { /** - * Properties of a CompareVersionsResponse. + * Properties of a DeleteSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICompareVersionsResponse - * @property {string|null} [baseVersionContentJson] CompareVersionsResponse baseVersionContentJson - * @property {string|null} [targetVersionContentJson] CompareVersionsResponse targetVersionContentJson - * @property {google.protobuf.ITimestamp|null} [compareTime] CompareVersionsResponse compareTime + * @interface IDeleteSecuritySettingsRequest + * @property {string|null} [name] DeleteSecuritySettingsRequest name */ /** - * Constructs a new CompareVersionsResponse. + * Constructs a new DeleteSecuritySettingsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CompareVersionsResponse. - * @implements ICompareVersionsResponse + * @classdesc Represents a DeleteSecuritySettingsRequest. + * @implements IDeleteSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set */ - function CompareVersionsResponse(properties) { + function DeleteSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77059,103 +75811,75 @@ } /** - * CompareVersionsResponse baseVersionContentJson. - * @member {string} baseVersionContentJson - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse - * @instance - */ - CompareVersionsResponse.prototype.baseVersionContentJson = ""; - - /** - * CompareVersionsResponse targetVersionContentJson. - * @member {string} targetVersionContentJson - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse - * @instance - */ - CompareVersionsResponse.prototype.targetVersionContentJson = ""; - - /** - * CompareVersionsResponse compareTime. - * @member {google.protobuf.ITimestamp|null|undefined} compareTime - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * DeleteSecuritySettingsRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @instance */ - CompareVersionsResponse.prototype.compareTime = null; + DeleteSecuritySettingsRequest.prototype.name = ""; /** - * Creates a new CompareVersionsResponse instance using the specified properties. + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest instance */ - CompareVersionsResponse.create = function create(properties) { - return new CompareVersionsResponse(properties); + DeleteSecuritySettingsRequest.create = function create(properties) { + return new DeleteSecuritySettingsRequest(properties); }; /** - * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.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.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse 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 */ - CompareVersionsResponse.encode = function encode(message, writer) { + DeleteSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.baseVersionContentJson != null && Object.hasOwnProperty.call(message, "baseVersionContentJson")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersionContentJson); - if (message.targetVersionContentJson != null && Object.hasOwnProperty.call(message, "targetVersionContentJson")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersionContentJson); - if (message.compareTime != null && Object.hasOwnProperty.call(message, "compareTime")) - $root.google.protobuf.Timestamp.encode(message.compareTime, 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); return writer; }; /** - * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.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.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse 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 */ - CompareVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompareVersionsResponse 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.CompareVersionsResponse + * @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.CompareVersionsResponse} CompareVersionsResponse + * @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 */ - CompareVersionsResponse.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.CompareVersionsResponse(); + 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.baseVersionContentJson = reader.string(); - break; - } - case 2: { - message.targetVersionContentJson = reader.string(); - break; - } - case 3: { - message.compareTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -77167,157 +75891,133 @@ }; /** - * Decodes a CompareVersionsResponse 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.CompareVersionsResponse + * @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.CompareVersionsResponse} CompareVersionsResponse + * @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 */ - CompareVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompareVersionsResponse message. + * Verifies a DeleteSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @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 */ - CompareVersionsResponse.verify = function verify(message) { + DeleteSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) - if (!$util.isString(message.baseVersionContentJson)) - return "baseVersionContentJson: string expected"; - if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) - if (!$util.isString(message.targetVersionContentJson)) - return "targetVersionContentJson: string expected"; - if (message.compareTime != null && message.hasOwnProperty("compareTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.compareTime); - if (error) - return "compareTime." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CompareVersionsResponse 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.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest */ - CompareVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse) + 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.CompareVersionsResponse(); - if (object.baseVersionContentJson != null) - message.baseVersionContentJson = String(object.baseVersionContentJson); - if (object.targetVersionContentJson != null) - message.targetVersionContentJson = String(object.targetVersionContentJson); - if (object.compareTime != null) { - if (typeof object.compareTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CompareVersionsResponse.compareTime: object expected"); - message.compareTime = $root.google.protobuf.Timestamp.fromObject(object.compareTime); - } + 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 a CompareVersionsResponse 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.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} message CompareVersionsResponse + * @param {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompareVersionsResponse.toObject = function toObject(message, options) { + DeleteSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.baseVersionContentJson = ""; - object.targetVersionContentJson = ""; - object.compareTime = null; - } - if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) - object.baseVersionContentJson = message.baseVersionContentJson; - if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) - object.targetVersionContentJson = message.targetVersionContentJson; - if (message.compareTime != null && message.hasOwnProperty("compareTime")) - object.compareTime = $root.google.protobuf.Timestamp.toObject(message.compareTime, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CompareVersionsResponse to JSON. + * Converts this DeleteSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - CompareVersionsResponse.prototype.toJSON = function toJSON() { + DeleteSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CompareVersionsResponse + * Gets the default type url for DeleteSecuritySettingsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CompareVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteSecuritySettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CompareVersionsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest"; }; - return CompareVersionsResponse; + return DeleteSecuritySettingsRequest; })(); - return v3; - })(); - - cx.v3beta1 = (function() { - - /** - * Namespace v3beta1. - * @memberof google.cloud.dialogflow.cx - * @namespace - */ - var v3beta1 = {}; - - v3beta1.AdvancedSettings = (function() { + v3.SecuritySettings = (function() { /** - * Properties of an AdvancedSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IAdvancedSettings - * @property {google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null} [audioExportGcsDestination] AdvancedSettings audioExportGcsDestination - * @property {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null} [loggingSettings] AdvancedSettings loggingSettings + * Properties of a SecuritySettings. + * @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 {string|null} [deidentifyTemplate] SecuritySettings deidentifyTemplate + * @property {number|null} [retentionWindowDays] SecuritySettings retentionWindowDays + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|null} [retentionStrategy] SecuritySettings retentionStrategy + * @property {Array.|null} [purgeDataTypes] SecuritySettings purgeDataTypes + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings|null} [audioExportSettings] SecuritySettings audioExportSettings + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null} [insightsExportSettings] SecuritySettings insightsExportSettings */ /** - * Constructs a new AdvancedSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an AdvancedSettings. - * @implements IAdvancedSettings + * Constructs a new SecuritySettings. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a SecuritySettings. + * @implements ISecuritySettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set */ - function AdvancedSettings(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) @@ -77325,89 +76025,240 @@ } /** - * AdvancedSettings audioExportGcsDestination. - * @member {google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null|undefined} audioExportGcsDestination - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * SecuritySettings name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @instance */ - AdvancedSettings.prototype.audioExportGcsDestination = null; + SecuritySettings.prototype.name = ""; /** - * AdvancedSettings loggingSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null|undefined} loggingSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * SecuritySettings displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @instance */ - AdvancedSettings.prototype.loggingSettings = null; + SecuritySettings.prototype.displayName = ""; /** - * Creates a new AdvancedSettings 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 deidentifyTemplate. + * @member {string} deidentifyTemplate + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.deidentifyTemplate = ""; + + /** + * SecuritySettings retentionWindowDays. + * @member {number|null|undefined} retentionWindowDays + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.retentionWindowDays = null; + + /** + * SecuritySettings retentionStrategy. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy|null|undefined} retentionStrategy + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.retentionStrategy = null; + + /** + * SecuritySettings purgeDataTypes. + * @member {Array.} purgeDataTypes + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.purgeDataTypes = $util.emptyArray; + + /** + * SecuritySettings audioExportSettings. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings|null|undefined} audioExportSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.audioExportSettings = null; + + /** + * SecuritySettings insightsExportSettings. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings|null|undefined} insightsExportSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.insightsExportSettings = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecuritySettings dataRetention. + * @member {"retentionWindowDays"|"retentionStrategy"|undefined} dataRetention + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + Object.defineProperty(SecuritySettings.prototype, "dataRetention", { + get: $util.oneOfGetter($oneOfFields = ["retentionWindowDays", "retentionStrategy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecuritySettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings} AdvancedSettings instance + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings instance */ - AdvancedSettings.create = function create(properties) { - return new AdvancedSettings(properties); + SecuritySettings.create = function create(properties) { + return new SecuritySettings(properties); }; /** - * Encodes the specified AdvancedSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.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.v3beta1.AdvancedSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings} message AdvancedSettings 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 */ - AdvancedSettings.encode = function encode(message, writer) { + SecuritySettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audioExportGcsDestination != null && Object.hasOwnProperty.call(message, "audioExportGcsDestination")) - $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.encode(message.audioExportGcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.loggingSettings != null && Object.hasOwnProperty.call(message, "loggingSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.encode(message.loggingSettings, writer.uint32(/* id 6, wireType 2 =*/50).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.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.retentionStrategy != null && Object.hasOwnProperty.call(message, "retentionStrategy")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.retentionStrategy); + 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.audioExportSettings != null && Object.hasOwnProperty.call(message, "audioExportSettings")) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.encode(message.audioExportSettings, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.insightsExportSettings != null && Object.hasOwnProperty.call(message, "insightsExportSettings")) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.encode(message.insightsExportSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.deidentifyTemplate != null && Object.hasOwnProperty.call(message, "deidentifyTemplate")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.deidentifyTemplate); return writer; }; /** - * Encodes the specified AdvancedSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.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.v3beta1.AdvancedSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings} message AdvancedSettings 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 */ - AdvancedSettings.encodeDelimited = function encodeDelimited(message, writer) { + SecuritySettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AdvancedSettings message from the specified reader or buffer. + * Decodes a SecuritySettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @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.v3beta1.AdvancedSettings} AdvancedSettings + * @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 */ - AdvancedSettings.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.v3beta1.AdvancedSettings(); + 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) { + case 1: { + message.name = reader.string(); + break; + } case 2: { - message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.decode(reader, reader.uint32()); + 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 17: { + message.deidentifyTemplate = reader.string(); break; } case 6: { - message.loggingSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.decode(reader, reader.uint32()); + message.retentionWindowDays = reader.int32(); + break; + } + case 7: { + message.retentionStrategy = 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; + } + case 12: { + message.audioExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.decode(reader, reader.uint32()); + break; + } + case 13: { + message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.decode(reader, reader.uint32()); break; } default: @@ -77419,139 +76270,369 @@ }; /** - * Decodes an AdvancedSettings 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.v3beta1.AdvancedSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings} AdvancedSettings + * @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 */ - AdvancedSettings.decodeDelimited = function decodeDelimited(reader) { + SecuritySettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AdvancedSettings message. + * Verifies a SecuritySettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @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 */ - AdvancedSettings.verify = function verify(message) { + SecuritySettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audioExportGcsDestination != null && message.hasOwnProperty("audioExportGcsDestination")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify(message.audioExportGcsDestination); + 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.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) + if (!$util.isString(message.inspectTemplate)) + return "inspectTemplate: string expected"; + if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) + if (!$util.isString(message.deidentifyTemplate)) + return "deidentifyTemplate: string expected"; + if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { + properties.dataRetention = 1; + if (!$util.isInteger(message.retentionWindowDays)) + return "retentionWindowDays: integer expected"; + } + if (message.retentionStrategy != null && message.hasOwnProperty("retentionStrategy")) { + if (properties.dataRetention === 1) + return "dataRetention: multiple values"; + properties.dataRetention = 1; + switch (message.retentionStrategy) { + default: + return "retentionStrategy: enum value expected"; + case 0: + case 1: + break; + } + } + 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; + } + } + if (message.audioExportSettings != null && message.hasOwnProperty("audioExportSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify(message.audioExportSettings); if (error) - return "audioExportGcsDestination." + error; + return "audioExportSettings." + error; } - if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify(message.loggingSettings); + if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify(message.insightsExportSettings); if (error) - return "loggingSettings." + error; + return "insightsExportSettings." + error; } return null; }; /** - * Creates an AdvancedSettings 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.v3beta1.AdvancedSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings} AdvancedSettings + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings */ - AdvancedSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings) + 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.v3beta1.AdvancedSettings(); - if (object.audioExportGcsDestination != null) { - if (typeof object.audioExportGcsDestination !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.audioExportGcsDestination: object expected"); - message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.fromObject(object.audioExportGcsDestination); + 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) { + default: + if (typeof object.redactionStrategy === "number") { + message.redactionStrategy = object.redactionStrategy; + break; + } + break; + case "REDACTION_STRATEGY_UNSPECIFIED": + case 0: + message.redactionStrategy = 0; + break; + case "REDACT_WITH_SERVICE": + case 1: + message.redactionStrategy = 1; + break; } - if (object.loggingSettings != null) { - if (typeof object.loggingSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.loggingSettings: object expected"); - message.loggingSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.fromObject(object.loggingSettings); + switch (object.redactionScope) { + default: + if (typeof object.redactionScope === "number") { + message.redactionScope = object.redactionScope; + break; + } + break; + 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.deidentifyTemplate != null) + message.deidentifyTemplate = String(object.deidentifyTemplate); + if (object.retentionWindowDays != null) + message.retentionWindowDays = object.retentionWindowDays | 0; + switch (object.retentionStrategy) { + default: + if (typeof object.retentionStrategy === "number") { + message.retentionStrategy = object.retentionStrategy; + break; + } + break; + case "RETENTION_STRATEGY_UNSPECIFIED": + case 0: + message.retentionStrategy = 0; + break; + case "REMOVE_AFTER_CONVERSATION": + case 1: + message.retentionStrategy = 1; + break; + } + 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: + if (typeof object.purgeDataTypes[i] === "number") { + message.purgeDataTypes[i] = object.purgeDataTypes[i]; + break; + } + case "PURGE_DATA_TYPE_UNSPECIFIED": + case 0: + message.purgeDataTypes[i] = 0; + break; + case "DIALOGFLOW_HISTORY": + case 1: + message.purgeDataTypes[i] = 1; + break; + } + } + if (object.audioExportSettings != null) { + if (typeof object.audioExportSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.audioExportSettings: object expected"); + message.audioExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.fromObject(object.audioExportSettings); + } + if (object.insightsExportSettings != null) { + if (typeof object.insightsExportSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.insightsExportSettings: object expected"); + message.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.fromObject(object.insightsExportSettings); } return message; }; /** - * Creates a plain object from an AdvancedSettings 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.v3beta1.AdvancedSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings} message AdvancedSettings + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} message SecuritySettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AdvancedSettings.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.audioExportGcsDestination = null; - object.loggingSettings = null; + object.name = ""; + object.displayName = ""; + object.redactionStrategy = options.enums === String ? "REDACTION_STRATEGY_UNSPECIFIED" : 0; + object.redactionScope = options.enums === String ? "REDACTION_SCOPE_UNSPECIFIED" : 0; + object.inspectTemplate = ""; + object.audioExportSettings = null; + object.insightsExportSettings = null; + object.deidentifyTemplate = ""; } - if (message.audioExportGcsDestination != null && message.hasOwnProperty("audioExportGcsDestination")) - object.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.toObject(message.audioExportGcsDestination, options); - if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) - object.loggingSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.toObject(message.loggingSettings, 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.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) + object.redactionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy[message.redactionStrategy] === undefined ? message.redactionStrategy : $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] === undefined ? message.redactionScope : $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.retentionStrategy != null && message.hasOwnProperty("retentionStrategy")) { + object.retentionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy[message.retentionStrategy] === undefined ? message.retentionStrategy : $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy[message.retentionStrategy] : message.retentionStrategy; + if (options.oneofs) + object.dataRetention = "retentionStrategy"; + } + 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]] === undefined ? message.purgeDataTypes[j] : $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; + if (message.audioExportSettings != null && message.hasOwnProperty("audioExportSettings")) + object.audioExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.toObject(message.audioExportSettings, options); + if (message.insightsExportSettings != null && message.hasOwnProperty("insightsExportSettings")) + object.insightsExportSettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.toObject(message.insightsExportSettings, options); + if (message.deidentifyTemplate != null && message.hasOwnProperty("deidentifyTemplate")) + object.deidentifyTemplate = message.deidentifyTemplate; return object; }; /** - * Converts this AdvancedSettings to JSON. + * Converts this SecuritySettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @instance * @returns {Object.} JSON object */ - AdvancedSettings.prototype.toJSON = function toJSON() { + SecuritySettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AdvancedSettings + * Gets the default type url for SecuritySettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AdvancedSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SecuritySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.AdvancedSettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SecuritySettings"; }; - AdvancedSettings.LoggingSettings = (function() { + /** + * 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; + })(); + + /** + * RetentionStrategy enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy + * @enum {number} + * @property {number} RETENTION_STRATEGY_UNSPECIFIED=0 RETENTION_STRATEGY_UNSPECIFIED value + * @property {number} REMOVE_AFTER_CONVERSATION=1 REMOVE_AFTER_CONVERSATION value + */ + SecuritySettings.RetentionStrategy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETENTION_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[1] = "REMOVE_AFTER_CONVERSATION"] = 1; + 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; + })(); + + SecuritySettings.AudioExportSettings = (function() { /** - * Properties of a LoggingSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings - * @interface ILoggingSettings - * @property {boolean|null} [enableStackdriverLogging] LoggingSettings enableStackdriverLogging - * @property {boolean|null} [enableInteractionLogging] LoggingSettings enableInteractionLogging + * Properties of an AudioExportSettings. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @interface IAudioExportSettings + * @property {string|null} [gcsBucket] AudioExportSettings gcsBucket + * @property {string|null} [audioExportPattern] AudioExportSettings audioExportPattern + * @property {boolean|null} [enableAudioRedaction] AudioExportSettings enableAudioRedaction + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat|null} [audioFormat] AudioExportSettings audioFormat */ /** - * Constructs a new LoggingSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings - * @classdesc Represents a LoggingSettings. - * @implements ILoggingSettings + * Constructs a new AudioExportSettings. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @classdesc Represents an AudioExportSettings. + * @implements IAudioExportSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings=} [properties] Properties to set */ - function LoggingSettings(properties) { + function AudioExportSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77559,89 +76640,117 @@ } /** - * LoggingSettings enableStackdriverLogging. - * @member {boolean} enableStackdriverLogging - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * AudioExportSettings gcsBucket. + * @member {string} gcsBucket + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @instance */ - LoggingSettings.prototype.enableStackdriverLogging = false; + AudioExportSettings.prototype.gcsBucket = ""; /** - * LoggingSettings enableInteractionLogging. - * @member {boolean} enableInteractionLogging - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * AudioExportSettings audioExportPattern. + * @member {string} audioExportPattern + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @instance */ - LoggingSettings.prototype.enableInteractionLogging = false; + AudioExportSettings.prototype.audioExportPattern = ""; /** - * Creates a new LoggingSettings instance using the specified properties. + * AudioExportSettings enableAudioRedaction. + * @member {boolean} enableAudioRedaction + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings + * @instance + */ + AudioExportSettings.prototype.enableAudioRedaction = false; + + /** + * AudioExportSettings audioFormat. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat} audioFormat + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings + * @instance + */ + AudioExportSettings.prototype.audioFormat = 0; + + /** + * Creates a new AudioExportSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings} LoggingSettings instance + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings} AudioExportSettings instance */ - LoggingSettings.create = function create(properties) { - return new LoggingSettings(properties); + AudioExportSettings.create = function create(properties) { + return new AudioExportSettings(properties); }; /** - * Encodes the specified LoggingSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify|verify} messages. + * Encodes the specified AudioExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings} message LoggingSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings} message AudioExportSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoggingSettings.encode = function encode(message, writer) { + AudioExportSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableStackdriverLogging != null && Object.hasOwnProperty.call(message, "enableStackdriverLogging")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableStackdriverLogging); - if (message.enableInteractionLogging != null && Object.hasOwnProperty.call(message, "enableInteractionLogging")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enableInteractionLogging); + if (message.gcsBucket != null && Object.hasOwnProperty.call(message, "gcsBucket")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.gcsBucket); + if (message.audioExportPattern != null && Object.hasOwnProperty.call(message, "audioExportPattern")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.audioExportPattern); + if (message.enableAudioRedaction != null && Object.hasOwnProperty.call(message, "enableAudioRedaction")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enableAudioRedaction); + if (message.audioFormat != null && Object.hasOwnProperty.call(message, "audioFormat")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.audioFormat); return writer; }; /** - * Encodes the specified LoggingSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify|verify} messages. + * Encodes the specified AudioExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings} message LoggingSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IAudioExportSettings} message AudioExportSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LoggingSettings.encodeDelimited = function encodeDelimited(message, writer) { + AudioExportSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LoggingSettings message from the specified reader or buffer. + * Decodes an AudioExportSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @static * @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.AdvancedSettings.LoggingSettings} LoggingSettings + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings} AudioExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoggingSettings.decode = function decode(reader, length) { + AudioExportSettings.decode = function decode(reader, length) { 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.AdvancedSettings.LoggingSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.gcsBucket = reader.string(); + break; + } case 2: { - message.enableStackdriverLogging = reader.bool(); + message.audioExportPattern = reader.string(); break; } case 3: { - message.enableInteractionLogging = reader.bool(); + message.enableAudioRedaction = reader.bool(); + break; + } + case 4: { + message.audioFormat = reader.int32(); break; } default: @@ -77653,735 +76762,666 @@ }; /** - * Decodes a LoggingSettings message from the specified reader or buffer, length delimited. + * Decodes an AudioExportSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings} LoggingSettings + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings} AudioExportSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LoggingSettings.decodeDelimited = function decodeDelimited(reader) { + AudioExportSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LoggingSettings message. + * Verifies an AudioExportSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LoggingSettings.verify = function verify(message) { + AudioExportSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) - if (typeof message.enableStackdriverLogging !== "boolean") - return "enableStackdriverLogging: boolean expected"; - if (message.enableInteractionLogging != null && message.hasOwnProperty("enableInteractionLogging")) - if (typeof message.enableInteractionLogging !== "boolean") - return "enableInteractionLogging: boolean expected"; + if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) + if (!$util.isString(message.gcsBucket)) + return "gcsBucket: string expected"; + if (message.audioExportPattern != null && message.hasOwnProperty("audioExportPattern")) + if (!$util.isString(message.audioExportPattern)) + return "audioExportPattern: string expected"; + if (message.enableAudioRedaction != null && message.hasOwnProperty("enableAudioRedaction")) + if (typeof message.enableAudioRedaction !== "boolean") + return "enableAudioRedaction: boolean expected"; + if (message.audioFormat != null && message.hasOwnProperty("audioFormat")) + switch (message.audioFormat) { + default: + return "audioFormat: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates a LoggingSettings message from a plain object. Also converts values to their respective internal types. + * Creates an AudioExportSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings} LoggingSettings + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings} AudioExportSettings */ - LoggingSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings) + AudioExportSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings(); - if (object.enableStackdriverLogging != null) - message.enableStackdriverLogging = Boolean(object.enableStackdriverLogging); - if (object.enableInteractionLogging != null) - message.enableInteractionLogging = Boolean(object.enableInteractionLogging); + var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings(); + if (object.gcsBucket != null) + message.gcsBucket = String(object.gcsBucket); + if (object.audioExportPattern != null) + message.audioExportPattern = String(object.audioExportPattern); + if (object.enableAudioRedaction != null) + message.enableAudioRedaction = Boolean(object.enableAudioRedaction); + switch (object.audioFormat) { + default: + if (typeof object.audioFormat === "number") { + message.audioFormat = object.audioFormat; + break; + } + break; + case "AUDIO_FORMAT_UNSPECIFIED": + case 0: + message.audioFormat = 0; + break; + case "MULAW": + case 1: + message.audioFormat = 1; + break; + case "MP3": + case 2: + message.audioFormat = 2; + break; + case "OGG": + case 3: + message.audioFormat = 3; + break; + } return message; }; /** - * Creates a plain object from a LoggingSettings message. Also converts values to other types if specified. + * Creates a plain object from an AudioExportSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings} message LoggingSettings + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings} message AudioExportSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoggingSettings.toObject = function toObject(message, options) { + AudioExportSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.enableStackdriverLogging = false; - object.enableInteractionLogging = false; + object.gcsBucket = ""; + object.audioExportPattern = ""; + object.enableAudioRedaction = false; + object.audioFormat = options.enums === String ? "AUDIO_FORMAT_UNSPECIFIED" : 0; } - if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) - object.enableStackdriverLogging = message.enableStackdriverLogging; - if (message.enableInteractionLogging != null && message.hasOwnProperty("enableInteractionLogging")) - object.enableInteractionLogging = message.enableInteractionLogging; + if (message.gcsBucket != null && message.hasOwnProperty("gcsBucket")) + object.gcsBucket = message.gcsBucket; + if (message.audioExportPattern != null && message.hasOwnProperty("audioExportPattern")) + object.audioExportPattern = message.audioExportPattern; + if (message.enableAudioRedaction != null && message.hasOwnProperty("enableAudioRedaction")) + object.enableAudioRedaction = message.enableAudioRedaction; + if (message.audioFormat != null && message.hasOwnProperty("audioFormat")) + object.audioFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat[message.audioFormat] === undefined ? message.audioFormat : $root.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat[message.audioFormat] : message.audioFormat; return object; }; /** - * Converts this LoggingSettings to JSON. + * Converts this AudioExportSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @instance * @returns {Object.} JSON object */ - LoggingSettings.prototype.toJSON = function toJSON() { + AudioExportSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LoggingSettings + * Gets the default type url for AudioExportSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LoggingSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudioExportSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings"; }; - return LoggingSettings; - })(); + /** + * AudioFormat enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat + * @enum {number} + * @property {number} AUDIO_FORMAT_UNSPECIFIED=0 AUDIO_FORMAT_UNSPECIFIED value + * @property {number} MULAW=1 MULAW value + * @property {number} MP3=2 MP3 value + * @property {number} OGG=3 OGG value + */ + AudioExportSettings.AudioFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIO_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "MULAW"] = 1; + values[valuesById[2] = "MP3"] = 2; + values[valuesById[3] = "OGG"] = 3; + return values; + })(); - return AdvancedSettings; - })(); + return AudioExportSettings; + })(); - v3beta1.GcsDestination = (function() { + SecuritySettings.InsightsExportSettings = (function() { - /** - * Properties of a GcsDestination. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGcsDestination - * @property {string|null} [uri] GcsDestination uri - */ + /** + * Properties of an InsightsExportSettings. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @interface IInsightsExportSettings + * @property {boolean|null} [enableInsightsExport] InsightsExportSettings enableInsightsExport + */ - /** - * Constructs a new GcsDestination. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GcsDestination. - * @implements IGcsDestination - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination=} [properties] Properties to set - */ - function GcsDestination(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 InsightsExportSettings. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @classdesc Represents an InsightsExportSettings. + * @implements IInsightsExportSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set + */ + function InsightsExportSettings(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]]; + } - /** - * GcsDestination uri. - * @member {string} uri - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @instance - */ - GcsDestination.prototype.uri = ""; + /** + * InsightsExportSettings enableInsightsExport. + * @member {boolean} enableInsightsExport + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @instance + */ + InsightsExportSettings.prototype.enableInsightsExport = false; - /** - * Creates a new GcsDestination instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination instance - */ - GcsDestination.create = function create(properties) { - return new GcsDestination(properties); - }; + /** + * Creates a new InsightsExportSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @static + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings instance + */ + InsightsExportSettings.create = function create(properties) { + return new InsightsExportSettings(properties); + }; - /** - * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination} message GcsDestination message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GcsDestination.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - return writer; - }; + /** + * Encodes the specified InsightsExportSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @static + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightsExportSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enableInsightsExport != null && Object.hasOwnProperty.call(message, "enableInsightsExport")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableInsightsExport); + return writer; + }; - /** - * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination} message GcsDestination message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GcsDestination.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified InsightsExportSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @static + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.IInsightsExportSettings} message InsightsExportSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsightsExportSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a GcsDestination message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @static - * @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.GcsDestination} GcsDestination - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GcsDestination.decode = function decode(reader, length) { - 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.GcsDestination(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.uri = reader.string(); + /** + * Decodes an InsightsExportSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @static + * @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.InsightsExportSettings} InsightsExportSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightsExportSettings.decode = function decode(reader, length) { + 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.InsightsExportSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enableInsightsExport = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a GcsDestination message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GcsDestination.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; - /** - * Verifies a GcsDestination message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GcsDestination.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - return null; - }; + /** + * Decodes an InsightsExportSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsightsExportSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination - */ - GcsDestination.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination) + /** + * Verifies an InsightsExportSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsightsExportSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) + if (typeof message.enableInsightsExport !== "boolean") + return "enableInsightsExport: boolean expected"; + return null; + }; + + /** + * Creates an InsightsExportSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} InsightsExportSettings + */ + InsightsExportSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(); + if (object.enableInsightsExport != null) + message.enableInsightsExport = Boolean(object.enableInsightsExport); + return message; + }; + + /** + * Creates a plain object from an InsightsExportSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @static + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} message InsightsExportSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsightsExportSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enableInsightsExport = false; + if (message.enableInsightsExport != null && message.hasOwnProperty("enableInsightsExport")) + object.enableInsightsExport = message.enableInsightsExport; return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination(); - if (object.uri != null) - message.uri = String(object.uri); - return message; - }; + }; - /** - * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GcsDestination} message GcsDestination - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GcsDestination.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.uri = ""; - if (message.uri != null && message.hasOwnProperty("uri")) - object.uri = message.uri; - return object; - }; + /** + * Converts this InsightsExportSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @instance + * @returns {Object.} JSON object + */ + InsightsExportSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GcsDestination to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @instance - * @returns {Object.} JSON object - */ - GcsDestination.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for InsightsExportSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsightsExportSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings"; + }; - /** - * Gets the default type url for GcsDestination - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GcsDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GcsDestination"; - }; + return InsightsExportSettings; + })(); - return GcsDestination; + return SecuritySettings; })(); - v3beta1.Agents = (function() { + v3.Versions = (function() { /** - * Constructs a new Agents service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Agents + * Constructs a new Versions service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Versions * @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 Agents(rpcImpl, requestDelimited, responseDelimited) { + function Versions(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (Agents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Agents; + (Versions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Versions; /** - * Creates new Agents service using the specified rpc implementation. + * Creates new Versions service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Versions * @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 {Agents} RPC service. Useful where requests and/or responses are streamed. + * @returns {Versions} RPC service. Useful where requests and/or responses are streamed. */ - Agents.create = function create(rpcImpl, requestDelimited, responseDelimited) { + Versions.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|listAgents}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef ListAgentsCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|listVersions}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef ListVersionsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} [response] ListAgentsResponse + * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} [response] ListVersionsResponse */ /** - * Calls ListAgents. - * @function listAgents - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls ListVersions. + * @function listVersions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} request ListAgentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback} callback Node-style callback called with the error, if any, and ListAgentsResponse + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback} callback Node-style callback called with the error, if any, and ListVersionsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Agents.prototype.listAgents = function listAgents(request, callback) { - return this.rpcCall(listAgents, $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse, request, callback); - }, "name", { value: "ListAgents" }); + Object.defineProperty(Versions.prototype.listVersions = function listVersions(request, callback) { + return this.rpcCall(listVersions, $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest, $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse, request, callback); + }, "name", { value: "ListVersions" }); /** - * Calls ListAgents. - * @function listAgents - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls ListVersions. + * @function listVersions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} request ListAgentsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef GetAgentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|getVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef GetVersionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} [response] Agent + * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version */ /** - * Calls GetAgent. - * @function getAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} request GetAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback} callback Node-style callback called with the error, if any, and Agent + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback} callback Node-style callback called with the error, if any, and Version * @returns {undefined} * @variation 1 */ - Object.defineProperty(Agents.prototype.getAgent = function getAgent(request, callback) { - return this.rpcCall(getAgent, $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Agent, request, callback); - }, "name", { value: "GetAgent" }); + Object.defineProperty(Versions.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.google.cloud.dialogflow.cx.v3.GetVersionRequest, $root.google.cloud.dialogflow.cx.v3.Version, request, callback); + }, "name", { value: "GetVersion" }); /** - * Calls GetAgent. - * @function getAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls GetVersion. + * @function getVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} request GetAgentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|createAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef CreateAgentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|createVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef CreateVersionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} [response] Agent + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls CreateAgent. - * @function createAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls CreateVersion. + * @function createVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} request CreateAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback} callback Node-style callback called with the error, if any, and Agent + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(Agents.prototype.createAgent = function createAgent(request, callback) { - return this.rpcCall(createAgent, $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Agent, request, callback); - }, "name", { value: "CreateAgent" }); + Object.defineProperty(Versions.prototype.createVersion = function createVersion(request, callback) { + return this.rpcCall(createVersion, $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateVersion" }); /** - * Calls CreateAgent. - * @function createAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls CreateVersion. + * @function createVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} request CreateAgentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|updateAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef UpdateAgentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|updateVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef UpdateVersionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} [response] Agent + * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version */ /** - * Calls UpdateAgent. - * @function updateAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls UpdateVersion. + * @function updateVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} request UpdateAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback} callback Node-style callback called with the error, if any, and Agent + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback} callback Node-style callback called with the error, if any, and Version * @returns {undefined} * @variation 1 */ - Object.defineProperty(Agents.prototype.updateAgent = function updateAgent(request, callback) { - return this.rpcCall(updateAgent, $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Agent, request, callback); - }, "name", { value: "UpdateAgent" }); + Object.defineProperty(Versions.prototype.updateVersion = function updateVersion(request, callback) { + return this.rpcCall(updateVersion, $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest, $root.google.cloud.dialogflow.cx.v3.Version, request, callback); + }, "name", { value: "UpdateVersion" }); /** - * Calls UpdateAgent. - * @function updateAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls UpdateVersion. + * @function updateVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} request UpdateAgentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|deleteAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef DeleteAgentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|deleteVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef DeleteVersionCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls DeleteAgent. - * @function deleteAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls DeleteVersion. + * @function deleteVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} request DeleteAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(Agents.prototype.deleteAgent = function deleteAgent(request, callback) { - return this.rpcCall(deleteAgent, $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteAgent" }); + Object.defineProperty(Versions.prototype.deleteVersion = function deleteVersion(request, callback) { + return this.rpcCall(deleteVersion, $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteVersion" }); /** - * Calls DeleteAgent. - * @function deleteAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls DeleteVersion. + * @function deleteVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} request DeleteAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|exportAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef ExportAgentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ExportAgent. - * @function exportAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} request ExportAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Agents.prototype.exportAgent = function exportAgent(request, callback) { - return this.rpcCall(exportAgent, $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportAgent" }); - - /** - * Calls ExportAgent. - * @function exportAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} request ExportAgentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|restoreAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef RestoreAgentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|loadVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef LoadVersionCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls RestoreAgent. - * @function restoreAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls LoadVersion. + * @function loadVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} request RestoreAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(Agents.prototype.restoreAgent = function restoreAgent(request, callback) { - return this.rpcCall(restoreAgent, $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RestoreAgent" }); + Object.defineProperty(Versions.prototype.loadVersion = function loadVersion(request, callback) { + return this.rpcCall(loadVersion, $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "LoadVersion" }); /** - * Calls RestoreAgent. - * @function restoreAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls LoadVersion. + * @function loadVersion + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} request RestoreAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|validateAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef ValidateAgentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} [response] AgentValidationResult - */ - - /** - * Calls ValidateAgent. - * @function validateAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest} request ValidateAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgentCallback} callback Node-style callback called with the error, if any, and AgentValidationResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Agents.prototype.validateAgent = function validateAgent(request, callback) { - return this.rpcCall(validateAgent, $root.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult, request, callback); - }, "name", { value: "ValidateAgent" }); - - /** - * Calls ValidateAgent. - * @function validateAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest} request ValidateAgentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getAgentValidationResult}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef GetAgentValidationResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} [response] AgentValidationResult - */ - - /** - * Calls GetAgentValidationResult. - * @function getAgentValidationResult - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest} request GetAgentValidationResultRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResultCallback} callback Node-style callback called with the error, if any, and AgentValidationResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Agents.prototype.getAgentValidationResult = function getAgentValidationResult(request, callback) { - return this.rpcCall(getAgentValidationResult, $root.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult, request, callback); - }, "name", { value: "GetAgentValidationResult" }); - - /** - * Calls GetAgentValidationResult. - * @function getAgentValidationResult - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest} request GetAgentValidationResultRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getGenerativeSettings}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef GetGenerativeSettingsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} [response] GenerativeSettings - */ - - /** - * Calls GetGenerativeSettings. - * @function getGenerativeSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest} request GetGenerativeSettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.GetGenerativeSettingsCallback} callback Node-style callback called with the error, if any, and GenerativeSettings - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Agents.prototype.getGenerativeSettings = function getGenerativeSettings(request, callback) { - return this.rpcCall(getGenerativeSettings, $root.google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings, request, callback); - }, "name", { value: "GetGenerativeSettings" }); - - /** - * Calls GetGenerativeSettings. - * @function getGenerativeSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest} request GetGenerativeSettingsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|updateGenerativeSettings}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents - * @typedef UpdateGenerativeSettingsCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions|compareVersions}. + * @memberof google.cloud.dialogflow.cx.v3.Versions + * @typedef CompareVersionsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} [response] GenerativeSettings + * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} [response] CompareVersionsResponse */ /** - * Calls UpdateGenerativeSettings. - * @function updateGenerativeSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls CompareVersions. + * @function compareVersions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest} request UpdateGenerativeSettingsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.UpdateGenerativeSettingsCallback} callback Node-style callback called with the error, if any, and GenerativeSettings + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback} callback Node-style callback called with the error, if any, and CompareVersionsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(Agents.prototype.updateGenerativeSettings = function updateGenerativeSettings(request, callback) { - return this.rpcCall(updateGenerativeSettings, $root.google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings, request, callback); - }, "name", { value: "UpdateGenerativeSettings" }); + Object.defineProperty(Versions.prototype.compareVersions = function compareVersions(request, callback) { + return this.rpcCall(compareVersions, $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest, $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse, request, callback); + }, "name", { value: "CompareVersions" }); /** - * Calls UpdateGenerativeSettings. - * @function updateGenerativeSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Calls CompareVersions. + * @function compareVersions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest} request UpdateGenerativeSettingsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return Agents; + return Versions; })(); - v3beta1.SpeechToTextSettings = (function() { + v3.CreateVersionOperationMetadata = (function() { /** - * Properties of a SpeechToTextSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISpeechToTextSettings - * @property {boolean|null} [enableSpeechAdaptation] SpeechToTextSettings enableSpeechAdaptation + * Properties of a CreateVersionOperationMetadata. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateVersionOperationMetadata + * @property {string|null} [version] CreateVersionOperationMetadata version */ /** - * Constructs a new SpeechToTextSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SpeechToTextSettings. - * @implements ISpeechToTextSettings + * Constructs a new CreateVersionOperationMetadata. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateVersionOperationMetadata. + * @implements ICreateVersionOperationMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set */ - function SpeechToTextSettings(properties) { + function CreateVersionOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78389,75 +77429,75 @@ } /** - * SpeechToTextSettings enableSpeechAdaptation. - * @member {boolean} enableSpeechAdaptation - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * CreateVersionOperationMetadata version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @instance */ - SpeechToTextSettings.prototype.enableSpeechAdaptation = false; + CreateVersionOperationMetadata.prototype.version = ""; /** - * Creates a new SpeechToTextSettings instance using the specified properties. + * Creates a new CreateVersionOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings instance + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata instance */ - SpeechToTextSettings.create = function create(properties) { - return new SpeechToTextSettings(properties); + CreateVersionOperationMetadata.create = function create(properties) { + return new CreateVersionOperationMetadata(properties); }; /** - * Encodes the specified SpeechToTextSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. + * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings} message SpeechToTextSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SpeechToTextSettings.encode = function encode(message, writer) { + CreateVersionOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableSpeechAdaptation != null && Object.hasOwnProperty.call(message, "enableSpeechAdaptation")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableSpeechAdaptation); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); return writer; }; /** - * Encodes the specified SpeechToTextSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. + * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings} message SpeechToTextSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SpeechToTextSettings.encodeDelimited = function encodeDelimited(message, writer) { + CreateVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SpeechToTextSettings message from the specified reader or buffer. + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static * @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.SpeechToTextSettings} SpeechToTextSettings + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SpeechToTextSettings.decode = function decode(reader, length) { + CreateVersionOperationMetadata.decode = function decode(reader, length) { 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.SpeechToTextSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enableSpeechAdaptation = reader.bool(); + message.version = reader.string(); break; } default: @@ -78469,139 +77509,127 @@ }; /** - * Decodes a SpeechToTextSettings message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SpeechToTextSettings.decodeDelimited = function decodeDelimited(reader) { + CreateVersionOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SpeechToTextSettings message. + * Verifies a CreateVersionOperationMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SpeechToTextSettings.verify = function verify(message) { + CreateVersionOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enableSpeechAdaptation != null && message.hasOwnProperty("enableSpeechAdaptation")) - if (typeof message.enableSpeechAdaptation !== "boolean") - return "enableSpeechAdaptation: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates a SpeechToTextSettings 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata */ - SpeechToTextSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings) + CreateVersionOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings(); - if (object.enableSpeechAdaptation != null) - message.enableSpeechAdaptation = Boolean(object.enableSpeechAdaptation); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata(); + if (object.version != null) + message.version = String(object.version); return message; }; /** - * Creates a plain object from a SpeechToTextSettings message. Also converts values to other types if specified. + * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} message SpeechToTextSettings + * @param {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} message CreateVersionOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SpeechToTextSettings.toObject = function toObject(message, options) { + CreateVersionOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.enableSpeechAdaptation = false; - if (message.enableSpeechAdaptation != null && message.hasOwnProperty("enableSpeechAdaptation")) - object.enableSpeechAdaptation = message.enableSpeechAdaptation; + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; return object; }; /** - * Converts this SpeechToTextSettings to JSON. + * Converts this CreateVersionOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @instance * @returns {Object.} JSON object */ - SpeechToTextSettings.prototype.toJSON = function toJSON() { + CreateVersionOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SpeechToTextSettings + * Gets the default type url for CreateVersionOperationMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SpeechToTextSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateVersionOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata"; }; - return SpeechToTextSettings; + return CreateVersionOperationMetadata; })(); - v3beta1.Agent = (function() { + v3.Version = (function() { /** - * Properties of an Agent. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IAgent - * @property {string|null} [name] Agent name - * @property {string|null} [displayName] Agent displayName - * @property {string|null} [defaultLanguageCode] Agent defaultLanguageCode - * @property {Array.|null} [supportedLanguageCodes] Agent supportedLanguageCodes - * @property {string|null} [timeZone] Agent timeZone - * @property {string|null} [description] Agent description - * @property {string|null} [avatarUri] Agent avatarUri - * @property {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null} [speechToTextSettings] Agent speechToTextSettings - * @property {string|null} [startFlow] Agent startFlow - * @property {string|null} [securitySettings] Agent securitySettings - * @property {boolean|null} [enableStackdriverLogging] Agent enableStackdriverLogging - * @property {boolean|null} [enableSpellCorrection] Agent enableSpellCorrection - * @property {boolean|null} [locked] Agent locked - * @property {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null} [advancedSettings] Agent advancedSettings - * @property {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings|null} [gitIntegrationSettings] Agent gitIntegrationSettings - * @property {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null} [textToSpeechSettings] Agent textToSpeechSettings - * @property {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings|null} [genAppBuilderSettings] Agent genAppBuilderSettings + * Properties of a Version. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IVersion + * @property {string|null} [name] Version name + * @property {string|null} [displayName] Version displayName + * @property {string|null} [description] Version description + * @property {google.cloud.dialogflow.cx.v3.INluSettings|null} [nluSettings] Version nluSettings + * @property {google.protobuf.ITimestamp|null} [createTime] Version createTime + * @property {google.cloud.dialogflow.cx.v3.Version.State|null} [state] Version state */ /** - * Constructs a new Agent. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Agent. - * @implements IAgent + * Constructs a new Version. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Version. + * @implements IVersion * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IAgent=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set */ - function Agent(properties) { - this.supportedLanguageCodes = []; + function Version(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78609,245 +77637,120 @@ } /** - * Agent name. + * Version name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - Agent.prototype.name = ""; + Version.prototype.name = ""; /** - * Agent displayName. + * Version displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.displayName = ""; - - /** - * Agent defaultLanguageCode. - * @member {string} defaultLanguageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.defaultLanguageCode = ""; - - /** - * Agent supportedLanguageCodes. - * @member {Array.} supportedLanguageCodes - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.supportedLanguageCodes = $util.emptyArray; - - /** - * Agent timeZone. - * @member {string} timeZone - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - Agent.prototype.timeZone = ""; + Version.prototype.displayName = ""; /** - * Agent description. + * Version description. * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.description = ""; - - /** - * Agent avatarUri. - * @member {string} avatarUri - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.avatarUri = ""; - - /** - * Agent speechToTextSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null|undefined} speechToTextSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.speechToTextSettings = null; - - /** - * Agent startFlow. - * @member {string} startFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.startFlow = ""; - - /** - * Agent securitySettings. - * @member {string} securitySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.securitySettings = ""; - - /** - * Agent enableStackdriverLogging. - * @member {boolean} enableStackdriverLogging - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.enableStackdriverLogging = false; - - /** - * Agent enableSpellCorrection. - * @member {boolean} enableSpellCorrection - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.enableSpellCorrection = false; - - /** - * Agent locked. - * @member {boolean} locked - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.locked = false; - - /** - * Agent advancedSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null|undefined} advancedSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @instance - */ - Agent.prototype.advancedSettings = null; - - /** - * Agent gitIntegrationSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings|null|undefined} gitIntegrationSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - Agent.prototype.gitIntegrationSettings = null; + Version.prototype.description = ""; /** - * Agent textToSpeechSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null|undefined} textToSpeechSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * Version nluSettings. + * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - Agent.prototype.textToSpeechSettings = null; + Version.prototype.nluSettings = null; /** - * Agent genAppBuilderSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings|null|undefined} genAppBuilderSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * Version createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - Agent.prototype.genAppBuilderSettings = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Version.prototype.createTime = null; /** - * Agent _genAppBuilderSettings. - * @member {"genAppBuilderSettings"|undefined} _genAppBuilderSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * Version state. + * @member {google.cloud.dialogflow.cx.v3.Version.State} state + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - Object.defineProperty(Agent.prototype, "_genAppBuilderSettings", { - get: $util.oneOfGetter($oneOfFields = ["genAppBuilderSettings"]), - set: $util.oneOfSetter($oneOfFields) - }); + Version.prototype.state = 0; /** - * Creates a new Agent instance using the specified properties. + * Creates a new Version instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAgent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent instance + * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Version} Version instance */ - Agent.create = function create(properties) { - return new Agent(properties); + Version.create = function create(properties) { + return new Version(properties); }; /** - * Encodes the specified Agent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. + * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAgent} message Agent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Agent.encode = function encode(message, writer) { + Version.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.defaultLanguageCode != null && Object.hasOwnProperty.call(message, "defaultLanguageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultLanguageCode); - if (message.supportedLanguageCodes != null && message.supportedLanguageCodes.length) - for (var i = 0; i < message.supportedLanguageCodes.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.supportedLanguageCodes[i]); - if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.timeZone); if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); - if (message.avatarUri != null && Object.hasOwnProperty.call(message, "avatarUri")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.avatarUri); - if (message.speechToTextSettings != null && Object.hasOwnProperty.call(message, "speechToTextSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.encode(message.speechToTextSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.startFlow != null && Object.hasOwnProperty.call(message, "startFlow")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.startFlow); - if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.securitySettings); - if (message.enableStackdriverLogging != null && Object.hasOwnProperty.call(message, "enableStackdriverLogging")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.enableStackdriverLogging); - if (message.enableSpellCorrection != null && Object.hasOwnProperty.call(message, "enableSpellCorrection")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.enableSpellCorrection); - if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.locked); - if (message.gitIntegrationSettings != null && Object.hasOwnProperty.call(message, "gitIntegrationSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.encode(message.gitIntegrationSettings, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); - if (message.textToSpeechSettings != null && Object.hasOwnProperty.call(message, "textToSpeechSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.encode(message.textToSpeechSettings, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); - if (message.genAppBuilderSettings != null && Object.hasOwnProperty.call(message, "genAppBuilderSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.encode(message.genAppBuilderSettings, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) + $root.google.cloud.dialogflow.cx.v3.NluSettings.encode(message.nluSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); return writer; }; /** - * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAgent} message Agent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Agent.encodeDelimited = function encodeDelimited(message, writer) { + Version.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Agent message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @static * @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.Agent} Agent + * @returns {google.cloud.dialogflow.cx.v3.Version} Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Agent.decode = function decode(reader, length) { + Version.decode = function decode(reader, length) { 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.Agent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Version(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -78860,65 +77763,19 @@ break; } case 3: { - message.defaultLanguageCode = reader.string(); + message.description = reader.string(); break; } case 4: { - if (!(message.supportedLanguageCodes && message.supportedLanguageCodes.length)) - message.supportedLanguageCodes = []; - message.supportedLanguageCodes.push(reader.string()); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); break; } case 5: { - message.timeZone = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 6: { - message.description = reader.string(); - break; - } - case 7: { - message.avatarUri = reader.string(); - break; - } - case 13: { - message.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.decode(reader, reader.uint32()); - break; - } - case 16: { - message.startFlow = reader.string(); - break; - } - case 17: { - message.securitySettings = reader.string(); - break; - } - case 18: { - message.enableStackdriverLogging = reader.bool(); - break; - } - case 20: { - message.enableSpellCorrection = reader.bool(); - break; - } - case 27: { - message.locked = reader.bool(); - break; - } - case 22: { - message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.decode(reader, reader.uint32()); - break; - } - case 30: { - message.gitIntegrationSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.decode(reader, reader.uint32()); - break; - } - case 31: { - message.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.decode(reader, reader.uint32()); - break; - } - case 33: { - message.genAppBuilderSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.decode(reader, reader.uint32()); + message.state = reader.int32(); break; } default: @@ -78930,1040 +77787,222 @@ }; /** - * Decodes an Agent message from the specified reader or buffer, length delimited. + * Decodes a Version message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent + * @returns {google.cloud.dialogflow.cx.v3.Version} Version * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Agent.decodeDelimited = function decodeDelimited(reader) { + Version.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Agent message. + * Verifies a Version message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Agent.verify = function verify(message) { + Version.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.defaultLanguageCode != null && message.hasOwnProperty("defaultLanguageCode")) - if (!$util.isString(message.defaultLanguageCode)) - return "defaultLanguageCode: string expected"; - if (message.supportedLanguageCodes != null && message.hasOwnProperty("supportedLanguageCodes")) { - if (!Array.isArray(message.supportedLanguageCodes)) - return "supportedLanguageCodes: array expected"; - for (var i = 0; i < message.supportedLanguageCodes.length; ++i) - if (!$util.isString(message.supportedLanguageCodes[i])) - return "supportedLanguageCodes: string[] expected"; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - if (!$util.isString(message.timeZone)) - return "timeZone: string expected"; if (message.description != null && message.hasOwnProperty("description")) if (!$util.isString(message.description)) return "description: string expected"; - if (message.avatarUri != null && message.hasOwnProperty("avatarUri")) - if (!$util.isString(message.avatarUri)) - return "avatarUri: string expected"; - if (message.speechToTextSettings != null && message.hasOwnProperty("speechToTextSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify(message.speechToTextSettings); + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.NluSettings.verify(message.nluSettings); if (error) - return "speechToTextSettings." + error; + return "nluSettings." + error; } - if (message.startFlow != null && message.hasOwnProperty("startFlow")) - if (!$util.isString(message.startFlow)) - return "startFlow: string expected"; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) - if (!$util.isString(message.securitySettings)) - return "securitySettings: string expected"; - if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) - if (typeof message.enableStackdriverLogging !== "boolean") - return "enableStackdriverLogging: boolean expected"; - if (message.enableSpellCorrection != null && message.hasOwnProperty("enableSpellCorrection")) - if (typeof message.enableSpellCorrection !== "boolean") - return "enableSpellCorrection: boolean expected"; - if (message.locked != null && message.hasOwnProperty("locked")) - if (typeof message.locked !== "boolean") - return "locked: boolean expected"; - if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify(message.advancedSettings); - if (error) - return "advancedSettings." + error; - } - if (message.gitIntegrationSettings != null && message.hasOwnProperty("gitIntegrationSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify(message.gitIntegrationSettings); - if (error) - return "gitIntegrationSettings." + error; - } - if (message.textToSpeechSettings != null && message.hasOwnProperty("textToSpeechSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify(message.textToSpeechSettings); + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "textToSpeechSettings." + error; + return "createTime." + error; } - if (message.genAppBuilderSettings != null && message.hasOwnProperty("genAppBuilderSettings")) { - properties._genAppBuilderSettings = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify(message.genAppBuilderSettings); - if (error) - return "genAppBuilderSettings." + error; + 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; } - } return null; }; /** - * Creates an Agent 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent + * @returns {google.cloud.dialogflow.cx.v3.Version} Version */ - Agent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Agent) + Version.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Version) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent(); + var message = new $root.google.cloud.dialogflow.cx.v3.Version(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) message.displayName = String(object.displayName); - if (object.defaultLanguageCode != null) - message.defaultLanguageCode = String(object.defaultLanguageCode); - if (object.supportedLanguageCodes) { - if (!Array.isArray(object.supportedLanguageCodes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.supportedLanguageCodes: array expected"); - message.supportedLanguageCodes = []; - for (var i = 0; i < object.supportedLanguageCodes.length; ++i) - message.supportedLanguageCodes[i] = String(object.supportedLanguageCodes[i]); - } - if (object.timeZone != null) - message.timeZone = String(object.timeZone); if (object.description != null) message.description = String(object.description); - if (object.avatarUri != null) - message.avatarUri = String(object.avatarUri); - if (object.speechToTextSettings != null) { - if (typeof object.speechToTextSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.speechToTextSettings: object expected"); - message.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.fromObject(object.speechToTextSettings); - } - if (object.startFlow != null) - message.startFlow = String(object.startFlow); - if (object.securitySettings != null) - message.securitySettings = String(object.securitySettings); - if (object.enableStackdriverLogging != null) - message.enableStackdriverLogging = Boolean(object.enableStackdriverLogging); - if (object.enableSpellCorrection != null) - message.enableSpellCorrection = Boolean(object.enableSpellCorrection); - if (object.locked != null) - message.locked = Boolean(object.locked); - if (object.advancedSettings != null) { - if (typeof object.advancedSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.advancedSettings: object expected"); - message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.fromObject(object.advancedSettings); - } - if (object.gitIntegrationSettings != null) { - if (typeof object.gitIntegrationSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.gitIntegrationSettings: object expected"); - message.gitIntegrationSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.fromObject(object.gitIntegrationSettings); + if (object.nluSettings != null) { + if (typeof object.nluSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Version.nluSettings: object expected"); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.fromObject(object.nluSettings); } - if (object.textToSpeechSettings != null) { - if (typeof object.textToSpeechSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.textToSpeechSettings: object expected"); - message.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.fromObject(object.textToSpeechSettings); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Version.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.genAppBuilderSettings != null) { - if (typeof object.genAppBuilderSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.genAppBuilderSettings: object expected"); - message.genAppBuilderSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.fromObject(object.genAppBuilderSettings); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "RUNNING": + case 1: + message.state = 1; + break; + case "SUCCEEDED": + case 2: + message.state = 2; + break; + case "FAILED": + case 3: + message.state = 3; + break; } return message; }; /** - * Creates a plain object from an Agent message. Also converts values to other types if specified. + * Creates a plain object from a Version message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} message Agent + * @param {google.cloud.dialogflow.cx.v3.Version} message Version * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Agent.toObject = function toObject(message, options) { + Version.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.supportedLanguageCodes = []; if (options.defaults) { object.name = ""; object.displayName = ""; - object.defaultLanguageCode = ""; - object.timeZone = ""; object.description = ""; - object.avatarUri = ""; - object.speechToTextSettings = null; - object.startFlow = ""; - object.securitySettings = ""; - object.enableStackdriverLogging = false; - object.enableSpellCorrection = false; - object.advancedSettings = null; - object.locked = false; - object.gitIntegrationSettings = null; - object.textToSpeechSettings = null; + object.nluSettings = null; + object.createTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.defaultLanguageCode != null && message.hasOwnProperty("defaultLanguageCode")) - object.defaultLanguageCode = message.defaultLanguageCode; - if (message.supportedLanguageCodes && message.supportedLanguageCodes.length) { - object.supportedLanguageCodes = []; - for (var j = 0; j < message.supportedLanguageCodes.length; ++j) - object.supportedLanguageCodes[j] = message.supportedLanguageCodes[j]; - } - if (message.timeZone != null && message.hasOwnProperty("timeZone")) - object.timeZone = message.timeZone; if (message.description != null && message.hasOwnProperty("description")) object.description = message.description; - if (message.avatarUri != null && message.hasOwnProperty("avatarUri")) - object.avatarUri = message.avatarUri; - if (message.speechToTextSettings != null && message.hasOwnProperty("speechToTextSettings")) - object.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.toObject(message.speechToTextSettings, options); - if (message.startFlow != null && message.hasOwnProperty("startFlow")) - object.startFlow = message.startFlow; - if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) - object.securitySettings = message.securitySettings; - if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) - object.enableStackdriverLogging = message.enableStackdriverLogging; - if (message.enableSpellCorrection != null && message.hasOwnProperty("enableSpellCorrection")) - object.enableSpellCorrection = message.enableSpellCorrection; - if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) - object.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.toObject(message.advancedSettings, options); - if (message.locked != null && message.hasOwnProperty("locked")) - object.locked = message.locked; - if (message.gitIntegrationSettings != null && message.hasOwnProperty("gitIntegrationSettings")) - object.gitIntegrationSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.toObject(message.gitIntegrationSettings, options); - if (message.textToSpeechSettings != null && message.hasOwnProperty("textToSpeechSettings")) - object.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.toObject(message.textToSpeechSettings, options); - if (message.genAppBuilderSettings != null && message.hasOwnProperty("genAppBuilderSettings")) { - object.genAppBuilderSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.toObject(message.genAppBuilderSettings, options); - if (options.oneofs) - object._genAppBuilderSettings = "genAppBuilderSettings"; - } + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) + object.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.toObject(message.nluSettings, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Version.State[message.state] === undefined ? message.state : $root.google.cloud.dialogflow.cx.v3.Version.State[message.state] : message.state; return object; }; /** - * Converts this Agent to JSON. + * Converts this Version to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance * @returns {Object.} JSON object */ - Agent.prototype.toJSON = function toJSON() { + Version.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Agent + * Gets the default type url for Version * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Version * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Agent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Version.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Agent"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Version"; }; - Agent.GitIntegrationSettings = (function() { - - /** - * Properties of a GitIntegrationSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @interface IGitIntegrationSettings - * @property {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings|null} [githubSettings] GitIntegrationSettings githubSettings - */ - - /** - * Constructs a new GitIntegrationSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @classdesc Represents a GitIntegrationSettings. - * @implements IGitIntegrationSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings=} [properties] Properties to set - */ - function GitIntegrationSettings(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]]; - } - - /** - * GitIntegrationSettings githubSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings|null|undefined} githubSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @instance - */ - GitIntegrationSettings.prototype.githubSettings = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GitIntegrationSettings gitSettings. - * @member {"githubSettings"|undefined} gitSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @instance - */ - Object.defineProperty(GitIntegrationSettings.prototype, "gitSettings", { - get: $util.oneOfGetter($oneOfFields = ["githubSettings"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GitIntegrationSettings instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} GitIntegrationSettings instance - */ - GitIntegrationSettings.create = function create(properties) { - return new GitIntegrationSettings(properties); - }; - - /** - * Encodes the specified GitIntegrationSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings} message GitIntegrationSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GitIntegrationSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.githubSettings != null && Object.hasOwnProperty.call(message, "githubSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.encode(message.githubSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GitIntegrationSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings} message GitIntegrationSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GitIntegrationSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GitIntegrationSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @static - * @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.Agent.GitIntegrationSettings} GitIntegrationSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GitIntegrationSettings.decode = function decode(reader, length) { - 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.Agent.GitIntegrationSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.githubSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GitIntegrationSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} GitIntegrationSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GitIntegrationSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GitIntegrationSettings message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GitIntegrationSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.githubSettings != null && message.hasOwnProperty("githubSettings")) { - properties.gitSettings = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify(message.githubSettings); - if (error) - return "githubSettings." + error; - } - } - return null; - }; - - /** - * Creates a GitIntegrationSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} GitIntegrationSettings - */ - GitIntegrationSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings(); - if (object.githubSettings != null) { - if (typeof object.githubSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.githubSettings: object expected"); - message.githubSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.fromObject(object.githubSettings); - } - return message; - }; - - /** - * Creates a plain object from a GitIntegrationSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} message GitIntegrationSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GitIntegrationSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.githubSettings != null && message.hasOwnProperty("githubSettings")) { - object.githubSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.toObject(message.githubSettings, options); - if (options.oneofs) - object.gitSettings = "githubSettings"; - } - return object; - }; - - /** - * Converts this GitIntegrationSettings to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @instance - * @returns {Object.} JSON object - */ - GitIntegrationSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GitIntegrationSettings - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GitIntegrationSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings"; - }; - - GitIntegrationSettings.GithubSettings = (function() { - - /** - * Properties of a GithubSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @interface IGithubSettings - * @property {string|null} [displayName] GithubSettings displayName - * @property {string|null} [repositoryUri] GithubSettings repositoryUri - * @property {string|null} [trackingBranch] GithubSettings trackingBranch - * @property {string|null} [accessToken] GithubSettings accessToken - * @property {Array.|null} [branches] GithubSettings branches - */ - - /** - * Constructs a new GithubSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings - * @classdesc Represents a GithubSettings. - * @implements IGithubSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings=} [properties] Properties to set - */ - function GithubSettings(properties) { - this.branches = []; - 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]]; - } - - /** - * GithubSettings displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @instance - */ - GithubSettings.prototype.displayName = ""; - - /** - * GithubSettings repositoryUri. - * @member {string} repositoryUri - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @instance - */ - GithubSettings.prototype.repositoryUri = ""; - - /** - * GithubSettings trackingBranch. - * @member {string} trackingBranch - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @instance - */ - GithubSettings.prototype.trackingBranch = ""; - - /** - * GithubSettings accessToken. - * @member {string} accessToken - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @instance - */ - GithubSettings.prototype.accessToken = ""; - - /** - * GithubSettings branches. - * @member {Array.} branches - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @instance - */ - GithubSettings.prototype.branches = $util.emptyArray; - - /** - * Creates a new GithubSettings instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} GithubSettings instance - */ - GithubSettings.create = function create(properties) { - return new GithubSettings(properties); - }; - - /** - * Encodes the specified GithubSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings} message GithubSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GithubSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.repositoryUri != null && Object.hasOwnProperty.call(message, "repositoryUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.repositoryUri); - if (message.trackingBranch != null && Object.hasOwnProperty.call(message, "trackingBranch")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingBranch); - if (message.accessToken != null && Object.hasOwnProperty.call(message, "accessToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.accessToken); - if (message.branches != null && message.branches.length) - for (var i = 0; i < message.branches.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.branches[i]); - return writer; - }; - - /** - * Encodes the specified GithubSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings} message GithubSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GithubSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GithubSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @static - * @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.Agent.GitIntegrationSettings.GithubSettings} GithubSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GithubSettings.decode = function decode(reader, length) { - 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.Agent.GitIntegrationSettings.GithubSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.displayName = reader.string(); - break; - } - case 2: { - message.repositoryUri = reader.string(); - break; - } - case 3: { - message.trackingBranch = reader.string(); - break; - } - case 4: { - message.accessToken = reader.string(); - break; - } - case 5: { - if (!(message.branches && message.branches.length)) - message.branches = []; - message.branches.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GithubSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} GithubSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GithubSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GithubSettings message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GithubSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.repositoryUri != null && message.hasOwnProperty("repositoryUri")) - if (!$util.isString(message.repositoryUri)) - return "repositoryUri: string expected"; - if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) - if (!$util.isString(message.trackingBranch)) - return "trackingBranch: string expected"; - if (message.accessToken != null && message.hasOwnProperty("accessToken")) - if (!$util.isString(message.accessToken)) - return "accessToken: string expected"; - if (message.branches != null && message.hasOwnProperty("branches")) { - if (!Array.isArray(message.branches)) - return "branches: array expected"; - for (var i = 0; i < message.branches.length; ++i) - if (!$util.isString(message.branches[i])) - return "branches: string[] expected"; - } - return null; - }; - - /** - * Creates a GithubSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} GithubSettings - */ - GithubSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.repositoryUri != null) - message.repositoryUri = String(object.repositoryUri); - if (object.trackingBranch != null) - message.trackingBranch = String(object.trackingBranch); - if (object.accessToken != null) - message.accessToken = String(object.accessToken); - if (object.branches) { - if (!Array.isArray(object.branches)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.branches: array expected"); - message.branches = []; - for (var i = 0; i < object.branches.length; ++i) - message.branches[i] = String(object.branches[i]); - } - return message; - }; - - /** - * Creates a plain object from a GithubSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} message GithubSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GithubSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.branches = []; - if (options.defaults) { - object.displayName = ""; - object.repositoryUri = ""; - object.trackingBranch = ""; - object.accessToken = ""; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.repositoryUri != null && message.hasOwnProperty("repositoryUri")) - object.repositoryUri = message.repositoryUri; - if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) - object.trackingBranch = message.trackingBranch; - if (message.accessToken != null && message.hasOwnProperty("accessToken")) - object.accessToken = message.accessToken; - if (message.branches && message.branches.length) { - object.branches = []; - for (var j = 0; j < message.branches.length; ++j) - object.branches[j] = message.branches[j]; - } - return object; - }; - - /** - * Converts this GithubSettings to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @instance - * @returns {Object.} JSON object - */ - GithubSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GithubSettings - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GithubSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings"; - }; - - return GithubSettings; - })(); - - return GitIntegrationSettings; - })(); - - Agent.GenAppBuilderSettings = (function() { - - /** - * Properties of a GenAppBuilderSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @interface IGenAppBuilderSettings - * @property {string|null} [engine] GenAppBuilderSettings engine - */ - - /** - * Constructs a new GenAppBuilderSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent - * @classdesc Represents a GenAppBuilderSettings. - * @implements IGenAppBuilderSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings=} [properties] Properties to set - */ - function GenAppBuilderSettings(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]]; - } - - /** - * GenAppBuilderSettings engine. - * @member {string} engine - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @instance - */ - GenAppBuilderSettings.prototype.engine = ""; - - /** - * Creates a new GenAppBuilderSettings instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings} GenAppBuilderSettings instance - */ - GenAppBuilderSettings.create = function create(properties) { - return new GenAppBuilderSettings(properties); - }; - - /** - * Encodes the specified GenAppBuilderSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings} message GenAppBuilderSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenAppBuilderSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.engine != null && Object.hasOwnProperty.call(message, "engine")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.engine); - return writer; - }; - - /** - * Encodes the specified GenAppBuilderSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings} message GenAppBuilderSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenAppBuilderSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GenAppBuilderSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @static - * @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.Agent.GenAppBuilderSettings} GenAppBuilderSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenAppBuilderSettings.decode = function decode(reader, length) { - 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.Agent.GenAppBuilderSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.engine = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GenAppBuilderSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings} GenAppBuilderSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenAppBuilderSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GenAppBuilderSettings message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenAppBuilderSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.engine != null && message.hasOwnProperty("engine")) - if (!$util.isString(message.engine)) - return "engine: string expected"; - return null; - }; - - /** - * Creates a GenAppBuilderSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings} GenAppBuilderSettings - */ - GenAppBuilderSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings(); - if (object.engine != null) - message.engine = String(object.engine); - return message; - }; - - /** - * Creates a plain object from a GenAppBuilderSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings} message GenAppBuilderSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenAppBuilderSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.engine = ""; - if (message.engine != null && message.hasOwnProperty("engine")) - object.engine = message.engine; - return object; - }; - - /** - * Converts this GenAppBuilderSettings to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @instance - * @returns {Object.} JSON object - */ - GenAppBuilderSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GenAppBuilderSettings - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GenAppBuilderSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings"; - }; - - return GenAppBuilderSettings; + /** + * State enum. + * @name google.cloud.dialogflow.cx.v3.Version.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} RUNNING=1 RUNNING value + * @property {number} SUCCEEDED=2 SUCCEEDED value + * @property {number} FAILED=3 FAILED value + */ + Version.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RUNNING"] = 1; + values[valuesById[2] = "SUCCEEDED"] = 2; + values[valuesById[3] = "FAILED"] = 3; + return values; })(); - return Agent; + return Version; })(); - v3beta1.ListAgentsRequest = (function() { + v3.ListVersionsRequest = (function() { /** - * Properties of a ListAgentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListAgentsRequest - * @property {string|null} [parent] ListAgentsRequest parent - * @property {number|null} [pageSize] ListAgentsRequest pageSize - * @property {string|null} [pageToken] ListAgentsRequest pageToken + * Properties of a ListVersionsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListVersionsRequest + * @property {string|null} [parent] ListVersionsRequest parent + * @property {number|null} [pageSize] ListVersionsRequest pageSize + * @property {string|null} [pageToken] ListVersionsRequest pageToken */ /** - * Constructs a new ListAgentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListAgentsRequest. - * @implements IListAgentsRequest + * Constructs a new ListVersionsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListVersionsRequest. + * @implements IListVersionsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set */ - function ListAgentsRequest(properties) { + function ListVersionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79971,51 +78010,51 @@ } /** - * ListAgentsRequest parent. + * ListVersionsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @instance */ - ListAgentsRequest.prototype.parent = ""; + ListVersionsRequest.prototype.parent = ""; /** - * ListAgentsRequest pageSize. + * ListVersionsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @instance */ - ListAgentsRequest.prototype.pageSize = 0; + ListVersionsRequest.prototype.pageSize = 0; /** - * ListAgentsRequest pageToken. + * ListVersionsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @instance */ - ListAgentsRequest.prototype.pageToken = ""; + ListVersionsRequest.prototype.pageToken = ""; /** - * Creates a new ListAgentsRequest instance using the specified properties. + * Creates a new ListVersionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest instance */ - ListAgentsRequest.create = function create(properties) { - return new ListAgentsRequest(properties); + ListVersionsRequest.create = function create(properties) { + return new ListVersionsRequest(properties); }; /** - * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. + * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} message ListAgentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAgentsRequest.encode = function encode(message, writer) { + ListVersionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -80028,33 +78067,33 @@ }; /** - * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. + * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} message ListAgentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAgentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAgentsRequest message from the specified reader or buffer. + * Decodes a ListVersionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static * @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.ListAgentsRequest} ListAgentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAgentsRequest.decode = function decode(reader, length) { + ListVersionsRequest.decode = function decode(reader, length) { 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.ListAgentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -80079,30 +78118,30 @@ }; /** - * Decodes a ListAgentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAgentsRequest.decodeDelimited = function decodeDelimited(reader) { + ListVersionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAgentsRequest message. + * Verifies a ListVersionsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAgentsRequest.verify = function verify(message) { + ListVersionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -80118,17 +78157,17 @@ }; /** - * Creates a ListAgentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest */ - ListAgentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest) + ListVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -80139,15 +78178,15 @@ }; /** - * Creates a plain object from a ListAgentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} message ListAgentsRequest + * @param {google.cloud.dialogflow.cx.v3.ListVersionsRequest} message ListVersionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAgentsRequest.toObject = function toObject(message, options) { + ListVersionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -80166,54 +78205,54 @@ }; /** - * Converts this ListAgentsRequest to JSON. + * Converts this ListVersionsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @instance * @returns {Object.} JSON object */ - ListAgentsRequest.prototype.toJSON = function toJSON() { + ListVersionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListAgentsRequest + * Gets the default type url for ListVersionsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListAgentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListVersionsRequest"; }; - return ListAgentsRequest; + return ListVersionsRequest; })(); - v3beta1.ListAgentsResponse = (function() { + v3.ListVersionsResponse = (function() { /** - * Properties of a ListAgentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListAgentsResponse - * @property {Array.|null} [agents] ListAgentsResponse agents - * @property {string|null} [nextPageToken] ListAgentsResponse nextPageToken + * Properties of a ListVersionsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListVersionsResponse + * @property {Array.|null} [versions] ListVersionsResponse versions + * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken */ /** - * Constructs a new ListAgentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListAgentsResponse. - * @implements IListAgentsResponse + * Constructs a new ListVersionsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListVersionsResponse. + * @implements IListVersionsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set */ - function ListAgentsResponse(properties) { - this.agents = []; + function ListVersionsResponse(properties) { + this.versions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80221,88 +78260,88 @@ } /** - * ListAgentsResponse agents. - * @member {Array.} agents - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * ListVersionsResponse versions. + * @member {Array.} versions + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @instance */ - ListAgentsResponse.prototype.agents = $util.emptyArray; + ListVersionsResponse.prototype.versions = $util.emptyArray; /** - * ListAgentsResponse nextPageToken. + * ListVersionsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @instance */ - ListAgentsResponse.prototype.nextPageToken = ""; + ListVersionsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListAgentsResponse instance using the specified properties. + * Creates a new ListVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse instance */ - ListAgentsResponse.create = function create(properties) { - return new ListAgentsResponse(properties); + ListVersionsResponse.create = function create(properties) { + return new ListVersionsResponse(properties); }; /** - * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse} message ListAgentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAgentsResponse.encode = function encode(message, writer) { + ListVersionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.agents != null && message.agents.length) - for (var i = 0; i < message.agents.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.versions != null && message.versions.length) + for (var i = 0; i < message.versions.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Version.encode(message.versions[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 ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse} message ListAgentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAgentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAgentsResponse message from the specified reader or buffer. + * Decodes a ListVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static * @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.ListAgentsResponse} ListAgentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAgentsResponse.decode = function decode(reader, length) { + ListVersionsResponse.decode = function decode(reader, length) { 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.ListAgentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.agents && message.agents.length)) - message.agents = []; - message.agents.push($root.google.cloud.dialogflow.cx.v3beta1.Agent.decode(reader, reader.uint32())); + if (!(message.versions && message.versions.length)) + message.versions = []; + message.versions.push($root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32())); break; } case 2: { @@ -80318,39 +78357,39 @@ }; /** - * Decodes a ListAgentsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAgentsResponse.decodeDelimited = function decodeDelimited(reader) { + ListVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAgentsResponse message. + * Verifies a ListVersionsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAgentsResponse.verify = function verify(message) { + ListVersionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.agents != null && message.hasOwnProperty("agents")) { - if (!Array.isArray(message.agents)) - return "agents: array expected"; - for (var i = 0; i < message.agents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.verify(message.agents[i]); + if (message.versions != null && message.hasOwnProperty("versions")) { + if (!Array.isArray(message.versions)) + return "versions: array expected"; + for (var i = 0; i < message.versions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.versions[i]); if (error) - return "agents." + error; + return "versions." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -80360,25 +78399,25 @@ }; /** - * Creates a ListAgentsResponse 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse */ - ListAgentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse) + ListVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse(); - if (object.agents) { - if (!Array.isArray(object.agents)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.agents: array expected"); - message.agents = []; - for (var i = 0; i < object.agents.length; ++i) { - if (typeof object.agents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.agents: object expected"); - message.agents[i] = $root.google.cloud.dialogflow.cx.v3beta1.Agent.fromObject(object.agents[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse(); + if (object.versions) { + if (!Array.isArray(object.versions)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListVersionsResponse.versions: array expected"); + message.versions = []; + for (var i = 0; i < object.versions.length; ++i) { + if (typeof object.versions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListVersionsResponse.versions: object expected"); + message.versions[i] = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.versions[i]); } } if (object.nextPageToken != null) @@ -80387,26 +78426,26 @@ }; /** - * Creates a plain object from a ListAgentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} message ListAgentsResponse + * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} message ListVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAgentsResponse.toObject = function toObject(message, options) { + ListVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.agents = []; + object.versions = []; if (options.defaults) object.nextPageToken = ""; - if (message.agents && message.agents.length) { - object.agents = []; - for (var j = 0; j < message.agents.length; ++j) - object.agents[j] = $root.google.cloud.dialogflow.cx.v3beta1.Agent.toObject(message.agents[j], options); + if (message.versions && message.versions.length) { + object.versions = []; + for (var j = 0; j < message.versions.length; ++j) + object.versions[j] = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.versions[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -80414,52 +78453,52 @@ }; /** - * Converts this ListAgentsResponse to JSON. + * Converts this ListVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @instance * @returns {Object.} JSON object */ - ListAgentsResponse.prototype.toJSON = function toJSON() { + ListVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListAgentsResponse + * Gets the default type url for ListVersionsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListAgentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListVersionsResponse"; }; - return ListAgentsResponse; + return ListVersionsResponse; })(); - v3beta1.GetAgentRequest = (function() { + v3.GetVersionRequest = (function() { /** - * Properties of a GetAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetAgentRequest - * @property {string|null} [name] GetAgentRequest name + * Properties of a GetVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetVersionRequest + * @property {string|null} [name] GetVersionRequest name */ /** - * Constructs a new GetAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetAgentRequest. - * @implements IGetAgentRequest + * Constructs a new GetVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetVersionRequest. + * @implements IGetVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set */ - function GetAgentRequest(properties) { + function GetVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80467,35 +78506,35 @@ } /** - * GetAgentRequest name. + * GetVersionRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @instance */ - GetAgentRequest.prototype.name = ""; + GetVersionRequest.prototype.name = ""; /** - * Creates a new GetAgentRequest instance using the specified properties. + * Creates a new GetVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest instance */ - GetAgentRequest.create = function create(properties) { - return new GetAgentRequest(properties); + GetVersionRequest.create = function create(properties) { + return new GetVersionRequest(properties); }; /** - * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. + * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} message GetAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAgentRequest.encode = function encode(message, writer) { + GetVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -80504,33 +78543,33 @@ }; /** - * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} message GetAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAgentRequest message from the specified reader or buffer. + * Decodes a GetVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @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.GetAgentRequest} GetAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAgentRequest.decode = function decode(reader, length) { + GetVersionRequest.decode = function decode(reader, length) { 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.GetAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -80547,30 +78586,30 @@ }; /** - * Decodes a GetAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAgentRequest.decodeDelimited = function decodeDelimited(reader) { + GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetAgentRequest message. + * Verifies a GetVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAgentRequest.verify = function verify(message) { + GetVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -80580,32 +78619,32 @@ }; /** - * Creates a GetAgentRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest */ - GetAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest) + GetVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetVersionRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetAgentRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} message GetAgentRequest + * @param {google.cloud.dialogflow.cx.v3.GetVersionRequest} message GetVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAgentRequest.toObject = function toObject(message, options) { + GetVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -80617,53 +78656,53 @@ }; /** - * Converts this GetAgentRequest to JSON. + * Converts this GetVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @instance * @returns {Object.} JSON object */ - GetAgentRequest.prototype.toJSON = function toJSON() { + GetVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetAgentRequest + * Gets the default type url for GetVersionRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetAgentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetVersionRequest"; }; - return GetAgentRequest; + return GetVersionRequest; })(); - v3beta1.CreateAgentRequest = (function() { + v3.CreateVersionRequest = (function() { /** - * Properties of a CreateAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateAgentRequest - * @property {string|null} [parent] CreateAgentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IAgent|null} [agent] CreateAgentRequest agent + * Properties of a CreateVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateVersionRequest + * @property {string|null} [parent] CreateVersionRequest parent + * @property {google.cloud.dialogflow.cx.v3.IVersion|null} [version] CreateVersionRequest version */ /** - * Constructs a new CreateAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateAgentRequest. - * @implements ICreateAgentRequest + * Constructs a new CreateVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateVersionRequest. + * @implements ICreateVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set */ - function CreateAgentRequest(properties) { + function CreateVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80671,80 +78710,80 @@ } /** - * CreateAgentRequest parent. + * CreateVersionRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance */ - CreateAgentRequest.prototype.parent = ""; + CreateVersionRequest.prototype.parent = ""; /** - * CreateAgentRequest agent. - * @member {google.cloud.dialogflow.cx.v3beta1.IAgent|null|undefined} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * CreateVersionRequest version. + * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance */ - CreateAgentRequest.prototype.agent = null; + CreateVersionRequest.prototype.version = null; /** - * Creates a new CreateAgentRequest instance using the specified properties. + * Creates a new CreateVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest instance */ - CreateAgentRequest.create = function create(properties) { - return new CreateAgentRequest(properties); + CreateVersionRequest.create = function create(properties) { + return new CreateVersionRequest(properties); }; /** - * Encodes the specified CreateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. + * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} message CreateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateAgentRequest.encode = function encode(message, writer) { + CreateVersionRequest.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.agent != null && Object.hasOwnProperty.call(message, "agent")) - $root.google.cloud.dialogflow.cx.v3beta1.Agent.encode(message.agent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.google.cloud.dialogflow.cx.v3.Version.encode(message.version, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. + * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} message CreateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateAgentRequest message from the specified reader or buffer. + * Decodes a CreateVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @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.CreateAgentRequest} CreateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateAgentRequest.decode = function decode(reader, length) { + CreateVersionRequest.decode = function decode(reader, length) { 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.CreateAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -80753,7 +78792,7 @@ break; } case 2: { - message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.decode(reader, reader.uint32()); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32()); break; } default: @@ -80765,137 +78804,137 @@ }; /** - * Decodes a CreateAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateAgentRequest.decodeDelimited = function decodeDelimited(reader) { + CreateVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateAgentRequest message. + * Verifies a CreateVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateAgentRequest.verify = function verify(message) { + CreateVersionRequest.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.agent != null && message.hasOwnProperty("agent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.verify(message.agent); + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); if (error) - return "agent." + error; + return "version." + error; } return null; }; /** - * Creates a CreateAgentRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest */ - CreateAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest) + CreateVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.agent != null) { - if (typeof object.agent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.agent: object expected"); - message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.fromObject(object.agent); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateVersionRequest.version: object expected"); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.version); } return message; }; /** - * Creates a plain object from a CreateAgentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} message CreateAgentRequest + * @param {google.cloud.dialogflow.cx.v3.CreateVersionRequest} message CreateVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateAgentRequest.toObject = function toObject(message, options) { + CreateVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.agent = null; + object.version = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.toObject(message.agent, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.version, options); return object; }; /** - * Converts this CreateAgentRequest to JSON. + * Converts this CreateVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance * @returns {Object.} JSON object */ - CreateAgentRequest.prototype.toJSON = function toJSON() { + CreateVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateAgentRequest + * Gets the default type url for CreateVersionRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateVersionRequest"; }; - return CreateAgentRequest; + return CreateVersionRequest; })(); - v3beta1.UpdateAgentRequest = (function() { + v3.UpdateVersionRequest = (function() { /** - * Properties of an UpdateAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateAgentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IAgent|null} [agent] UpdateAgentRequest agent - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAgentRequest updateMask + * Properties of an UpdateVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdateVersionRequest + * @property {google.cloud.dialogflow.cx.v3.IVersion|null} [version] UpdateVersionRequest version + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateVersionRequest updateMask */ /** - * Constructs a new UpdateAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateAgentRequest. - * @implements IUpdateAgentRequest + * Constructs a new UpdateVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdateVersionRequest. + * @implements IUpdateVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set */ - function UpdateAgentRequest(properties) { + function UpdateVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80903,85 +78942,85 @@ } /** - * UpdateAgentRequest agent. - * @member {google.cloud.dialogflow.cx.v3beta1.IAgent|null|undefined} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * UpdateVersionRequest version. + * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance */ - UpdateAgentRequest.prototype.agent = null; + UpdateVersionRequest.prototype.version = null; /** - * UpdateAgentRequest updateMask. + * UpdateVersionRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance */ - UpdateAgentRequest.prototype.updateMask = null; + UpdateVersionRequest.prototype.updateMask = null; /** - * Creates a new UpdateAgentRequest instance using the specified properties. + * Creates a new UpdateVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} UpdateAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest instance */ - UpdateAgentRequest.create = function create(properties) { - return new UpdateAgentRequest(properties); + UpdateVersionRequest.create = function create(properties) { + return new UpdateVersionRequest(properties); }; /** - * Encodes the specified UpdateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. + * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} message UpdateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAgentRequest.encode = function encode(message, writer) { + UpdateVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - $root.google.cloud.dialogflow.cx.v3beta1.Agent.encode(message.agent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + $root.google.cloud.dialogflow.cx.v3.Version.encode(message.version, 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 UpdateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. + * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} message UpdateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} message UpdateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateAgentRequest message from the specified reader or buffer. + * Decodes an UpdateVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @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.UpdateAgentRequest} UpdateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAgentRequest.decode = function decode(reader, length) { + UpdateVersionRequest.decode = function decode(reader, length) { 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.UpdateAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.decode(reader, reader.uint32()); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32()); break; } case 2: { @@ -80997,36 +79036,36 @@ }; /** - * Decodes an UpdateAgentRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} UpdateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateAgentRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateAgentRequest message. + * Verifies an UpdateVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateAgentRequest.verify = function verify(message) { + UpdateVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.agent != null && message.hasOwnProperty("agent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.verify(message.agent); + if (message.version != null && message.hasOwnProperty("version")) { + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); if (error) - return "agent." + error; + return "version." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); @@ -81037,101 +79076,101 @@ }; /** - * Creates an UpdateAgentRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} UpdateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest */ - UpdateAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest) + UpdateVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest(); - if (object.agent != null) { - if (typeof object.agent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.agent: object expected"); - message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.fromObject(object.agent); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest(); + if (object.version != null) { + if (typeof object.version !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateVersionRequest.version: object expected"); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.version); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateVersionRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an UpdateAgentRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} message UpdateAgentRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} message UpdateVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateAgentRequest.toObject = function toObject(message, options) { + UpdateVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.agent = null; + object.version = null; object.updateMask = null; } - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.toObject(message.agent, options); + if (message.version != null && message.hasOwnProperty("version")) + object.version = $root.google.cloud.dialogflow.cx.v3.Version.toObject(message.version, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateAgentRequest to JSON. + * Converts this UpdateVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance * @returns {Object.} JSON object */ - UpdateAgentRequest.prototype.toJSON = function toJSON() { + UpdateVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateAgentRequest + * Gets the default type url for UpdateVersionRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateVersionRequest"; }; - return UpdateAgentRequest; + return UpdateVersionRequest; })(); - v3beta1.DeleteAgentRequest = (function() { + v3.DeleteVersionRequest = (function() { /** - * Properties of a DeleteAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteAgentRequest - * @property {string|null} [name] DeleteAgentRequest name + * Properties of a DeleteVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteVersionRequest + * @property {string|null} [name] DeleteVersionRequest name */ /** - * Constructs a new DeleteAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteAgentRequest. - * @implements IDeleteAgentRequest + * Constructs a new DeleteVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeleteVersionRequest. + * @implements IDeleteVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set */ - function DeleteAgentRequest(properties) { + function DeleteVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81139,35 +79178,35 @@ } /** - * DeleteAgentRequest name. + * DeleteVersionRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @instance */ - DeleteAgentRequest.prototype.name = ""; + DeleteVersionRequest.prototype.name = ""; /** - * Creates a new DeleteAgentRequest instance using the specified properties. + * Creates a new DeleteVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest instance */ - DeleteAgentRequest.create = function create(properties) { - return new DeleteAgentRequest(properties); + DeleteVersionRequest.create = function create(properties) { + return new DeleteVersionRequest(properties); }; /** - * Encodes the specified DeleteAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. + * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} message DeleteAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteAgentRequest.encode = function encode(message, writer) { + DeleteVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -81176,33 +79215,33 @@ }; /** - * Encodes the specified DeleteAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. + * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} message DeleteAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteAgentRequest message from the specified reader or buffer. + * Decodes a DeleteVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static * @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.DeleteAgentRequest} DeleteAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteAgentRequest.decode = function decode(reader, length) { + DeleteVersionRequest.decode = function decode(reader, length) { 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.DeleteAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -81219,30 +79258,30 @@ }; /** - * Decodes a DeleteAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteAgentRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteAgentRequest message. + * Verifies a DeleteVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteAgentRequest.verify = function verify(message) { + DeleteVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -81252,32 +79291,32 @@ }; /** - * Creates a DeleteAgentRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest */ - DeleteAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest) + DeleteVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteAgentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} message DeleteAgentRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} message DeleteVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteAgentRequest.toObject = function toObject(message, options) { + DeleteVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -81289,57 +79328,53 @@ }; /** - * Converts this DeleteAgentRequest to JSON. + * Converts this DeleteVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @instance * @returns {Object.} JSON object */ - DeleteAgentRequest.prototype.toJSON = function toJSON() { + DeleteVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteAgentRequest + * Gets the default type url for DeleteVersionRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteVersionRequest"; }; - return DeleteAgentRequest; + return DeleteVersionRequest; })(); - v3beta1.ExportAgentRequest = (function() { + v3.LoadVersionRequest = (function() { /** - * Properties of an ExportAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportAgentRequest - * @property {string|null} [name] ExportAgentRequest name - * @property {string|null} [agentUri] ExportAgentRequest agentUri - * @property {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat|null} [dataFormat] ExportAgentRequest dataFormat - * @property {string|null} [environment] ExportAgentRequest environment - * @property {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination|null} [gitDestination] ExportAgentRequest gitDestination - * @property {boolean|null} [includeBigqueryExportSettings] ExportAgentRequest includeBigqueryExportSettings + * Properties of a LoadVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ILoadVersionRequest + * @property {string|null} [name] LoadVersionRequest name + * @property {boolean|null} [allowOverrideAgentResources] LoadVersionRequest allowOverrideAgentResources */ /** - * Constructs a new ExportAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportAgentRequest. - * @implements IExportAgentRequest + * Constructs a new LoadVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a LoadVersionRequest. + * @implements ILoadVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set */ - function ExportAgentRequest(properties) { + function LoadVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81347,120 +79382,80 @@ } /** - * ExportAgentRequest name. + * LoadVersionRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest - * @instance - */ - ExportAgentRequest.prototype.name = ""; - - /** - * ExportAgentRequest agentUri. - * @member {string} agentUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest - * @instance - */ - ExportAgentRequest.prototype.agentUri = ""; - - /** - * ExportAgentRequest dataFormat. - * @member {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat} dataFormat - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest - * @instance - */ - ExportAgentRequest.prototype.dataFormat = 0; - - /** - * ExportAgentRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest - * @instance - */ - ExportAgentRequest.prototype.environment = ""; - - /** - * ExportAgentRequest gitDestination. - * @member {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination|null|undefined} gitDestination - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance */ - ExportAgentRequest.prototype.gitDestination = null; + LoadVersionRequest.prototype.name = ""; /** - * ExportAgentRequest includeBigqueryExportSettings. - * @member {boolean} includeBigqueryExportSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * LoadVersionRequest allowOverrideAgentResources. + * @member {boolean} allowOverrideAgentResources + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance */ - ExportAgentRequest.prototype.includeBigqueryExportSettings = false; + LoadVersionRequest.prototype.allowOverrideAgentResources = false; /** - * Creates a new ExportAgentRequest instance using the specified properties. + * Creates a new LoadVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest instance */ - ExportAgentRequest.create = function create(properties) { - return new ExportAgentRequest(properties); + LoadVersionRequest.create = function create(properties) { + return new LoadVersionRequest(properties); }; /** - * Encodes the specified ExportAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. + * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} message ExportAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportAgentRequest.encode = function encode(message, writer) { + LoadVersionRequest.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.agentUri != null && Object.hasOwnProperty.call(message, "agentUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.agentUri); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.environment); - if (message.gitDestination != null && Object.hasOwnProperty.call(message, "gitDestination")) - $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.encode(message.gitDestination, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.includeBigqueryExportSettings != null && Object.hasOwnProperty.call(message, "includeBigqueryExportSettings")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.includeBigqueryExportSettings); + if (message.allowOverrideAgentResources != null && Object.hasOwnProperty.call(message, "allowOverrideAgentResources")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowOverrideAgentResources); return writer; }; /** - * Encodes the specified ExportAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. + * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} message ExportAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { + LoadVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportAgentRequest message from the specified reader or buffer. + * Decodes a LoadVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @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.ExportAgentRequest} ExportAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportAgentRequest.decode = function decode(reader, length) { + LoadVersionRequest.decode = function decode(reader, length) { 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.ExportAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -81469,23 +79464,7 @@ break; } case 2: { - message.agentUri = reader.string(); - break; - } - case 3: { - message.dataFormat = reader.int32(); - break; - } - case 5: { - message.environment = reader.string(); - break; - } - case 6: { - message.gitDestination = $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.decode(reader, reader.uint32()); - break; - } - case 7: { - message.includeBigqueryExportSettings = reader.bool(); + message.allowOverrideAgentResources = reader.bool(); break; } default: @@ -81497,437 +79476,383 @@ }; /** - * Decodes an ExportAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportAgentRequest.decodeDelimited = function decodeDelimited(reader) { + LoadVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportAgentRequest message. + * Verifies a LoadVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportAgentRequest.verify = function verify(message) { + LoadVersionRequest.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.agentUri != null && message.hasOwnProperty("agentUri")) - if (!$util.isString(message.agentUri)) - return "agentUri: string expected"; - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - switch (message.dataFormat) { - default: - return "dataFormat: enum value expected"; - case 0: - case 1: - case 4: - break; - } - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.gitDestination != null && message.hasOwnProperty("gitDestination")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify(message.gitDestination); - if (error) - return "gitDestination." + error; - } - if (message.includeBigqueryExportSettings != null && message.hasOwnProperty("includeBigqueryExportSettings")) - if (typeof message.includeBigqueryExportSettings !== "boolean") - return "includeBigqueryExportSettings: boolean expected"; + if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) + if (typeof message.allowOverrideAgentResources !== "boolean") + return "allowOverrideAgentResources: boolean expected"; return null; }; /** - * Creates an ExportAgentRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest */ - ExportAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest) + LoadVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest(); if (object.name != null) message.name = String(object.name); - if (object.agentUri != null) - message.agentUri = String(object.agentUri); - switch (object.dataFormat) { - default: - if (typeof object.dataFormat === "number") { - message.dataFormat = object.dataFormat; - break; - } - break; - case "DATA_FORMAT_UNSPECIFIED": - case 0: - message.dataFormat = 0; - break; - case "BLOB": - case 1: - message.dataFormat = 1; - break; - case "JSON_PACKAGE": - case 4: - message.dataFormat = 4; - break; - } - if (object.environment != null) - message.environment = String(object.environment); - if (object.gitDestination != null) { - if (typeof object.gitDestination !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.gitDestination: object expected"); - message.gitDestination = $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.fromObject(object.gitDestination); - } - if (object.includeBigqueryExportSettings != null) - message.includeBigqueryExportSettings = Boolean(object.includeBigqueryExportSettings); + if (object.allowOverrideAgentResources != null) + message.allowOverrideAgentResources = Boolean(object.allowOverrideAgentResources); return message; }; /** - * Creates a plain object from an ExportAgentRequest message. Also converts values to other types if specified. + * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} message ExportAgentRequest + * @param {google.cloud.dialogflow.cx.v3.LoadVersionRequest} message LoadVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportAgentRequest.toObject = function toObject(message, options) { + LoadVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.agentUri = ""; - object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; - object.environment = ""; - object.gitDestination = null; - object.includeBigqueryExportSettings = false; + object.allowOverrideAgentResources = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.agentUri != null && message.hasOwnProperty("agentUri")) - object.agentUri = message.agentUri; - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat[message.dataFormat] === undefined ? message.dataFormat : $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat[message.dataFormat] : message.dataFormat; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.gitDestination != null && message.hasOwnProperty("gitDestination")) - object.gitDestination = $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.toObject(message.gitDestination, options); - if (message.includeBigqueryExportSettings != null && message.hasOwnProperty("includeBigqueryExportSettings")) - object.includeBigqueryExportSettings = message.includeBigqueryExportSettings; + if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) + object.allowOverrideAgentResources = message.allowOverrideAgentResources; return object; }; /** - * Converts this ExportAgentRequest to JSON. + * Converts this LoadVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance * @returns {Object.} JSON object */ - ExportAgentRequest.prototype.toJSON = function toJSON() { + LoadVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportAgentRequest + * Gets the default type url for LoadVersionRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LoadVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.LoadVersionRequest"; }; + return LoadVersionRequest; + })(); + + v3.CompareVersionsRequest = (function() { + /** - * DataFormat enum. - * @name google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat - * @enum {number} - * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value - * @property {number} BLOB=1 BLOB value - * @property {number} JSON_PACKAGE=4 JSON_PACKAGE value + * Properties of a CompareVersionsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICompareVersionsRequest + * @property {string|null} [baseVersion] CompareVersionsRequest baseVersion + * @property {string|null} [targetVersion] CompareVersionsRequest targetVersion + * @property {string|null} [languageCode] CompareVersionsRequest languageCode */ - ExportAgentRequest.DataFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[1] = "BLOB"] = 1; - values[valuesById[4] = "JSON_PACKAGE"] = 4; - return values; - })(); - - ExportAgentRequest.GitDestination = (function() { - /** - * Properties of a GitDestination. - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest - * @interface IGitDestination - * @property {string|null} [trackingBranch] GitDestination trackingBranch - * @property {string|null} [commitMessage] GitDestination commitMessage - */ + /** + * Constructs a new CompareVersionsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CompareVersionsRequest. + * @implements ICompareVersionsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest=} [properties] Properties to set + */ + function CompareVersionsRequest(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 GitDestination. - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest - * @classdesc Represents a GitDestination. - * @implements IGitDestination - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination=} [properties] Properties to set - */ - function GitDestination(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]]; - } + /** + * CompareVersionsRequest baseVersion. + * @member {string} baseVersion + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @instance + */ + CompareVersionsRequest.prototype.baseVersion = ""; - /** - * GitDestination trackingBranch. - * @member {string} trackingBranch - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @instance - */ - GitDestination.prototype.trackingBranch = ""; + /** + * CompareVersionsRequest targetVersion. + * @member {string} targetVersion + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @instance + */ + CompareVersionsRequest.prototype.targetVersion = ""; - /** - * GitDestination commitMessage. - * @member {string} commitMessage - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @instance - */ - GitDestination.prototype.commitMessage = ""; + /** + * CompareVersionsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @instance + */ + CompareVersionsRequest.prototype.languageCode = ""; - /** - * Creates a new GitDestination instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} GitDestination instance - */ - GitDestination.create = function create(properties) { - return new GitDestination(properties); - }; + /** + * Creates a new CompareVersionsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest instance + */ + CompareVersionsRequest.create = function create(properties) { + return new CompareVersionsRequest(properties); + }; - /** - * Encodes the specified GitDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination} message GitDestination message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GitDestination.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.trackingBranch != null && Object.hasOwnProperty.call(message, "trackingBranch")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingBranch); - if (message.commitMessage != null && Object.hasOwnProperty.call(message, "commitMessage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.commitMessage); - return writer; - }; + /** + * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompareVersionsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.baseVersion != null && Object.hasOwnProperty.call(message, "baseVersion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersion); + if (message.targetVersion != null && Object.hasOwnProperty.call(message, "targetVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersion); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + return writer; + }; - /** - * Encodes the specified GitDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination} message GitDestination message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GitDestination.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompareVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a GitDestination message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @static - * @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.ExportAgentRequest.GitDestination} GitDestination - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GitDestination.decode = function decode(reader, length) { - 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.ExportAgentRequest.GitDestination(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.trackingBranch = reader.string(); - break; - } - case 2: { - message.commitMessage = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a CompareVersionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @static + * @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.CompareVersionsRequest} CompareVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompareVersionsRequest.decode = function decode(reader, length) { + 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.CompareVersionsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.baseVersion = reader.string(); + break; + } + case 2: { + message.targetVersion = reader.string(); + break; + } + case 3: { + message.languageCode = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a GitDestination message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} GitDestination - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GitDestination.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a GitDestination message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GitDestination.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) - if (!$util.isString(message.trackingBranch)) - return "trackingBranch: string expected"; - if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) - if (!$util.isString(message.commitMessage)) - return "commitMessage: string expected"; - return null; - }; + /** + * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompareVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a GitDestination message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} GitDestination - */ - GitDestination.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination(); - if (object.trackingBranch != null) - message.trackingBranch = String(object.trackingBranch); - if (object.commitMessage != null) - message.commitMessage = String(object.commitMessage); - return message; - }; + /** + * Verifies a CompareVersionsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompareVersionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) + if (!$util.isString(message.baseVersion)) + return "baseVersion: string expected"; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + if (!$util.isString(message.targetVersion)) + return "targetVersion: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; - /** - * Creates a plain object from a GitDestination message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} message GitDestination - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GitDestination.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.trackingBranch = ""; - object.commitMessage = ""; - } - if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) - object.trackingBranch = message.trackingBranch; - if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) - object.commitMessage = message.commitMessage; + /** + * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest + */ + CompareVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest(); + if (object.baseVersion != null) + message.baseVersion = String(object.baseVersion); + if (object.targetVersion != null) + message.targetVersion = String(object.targetVersion); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; - /** - * Converts this GitDestination to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @instance - * @returns {Object.} JSON object - */ - GitDestination.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a CompareVersionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} message CompareVersionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompareVersionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.baseVersion = ""; + object.targetVersion = ""; + object.languageCode = ""; + } + if (message.baseVersion != null && message.hasOwnProperty("baseVersion")) + object.baseVersion = message.baseVersion; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + object.targetVersion = message.targetVersion; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; - /** - * Gets the default type url for GitDestination - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GitDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination"; - }; + /** + * Converts this CompareVersionsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @instance + * @returns {Object.} JSON object + */ + CompareVersionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GitDestination; - })(); + /** + * Gets the default type url for CompareVersionsRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompareVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CompareVersionsRequest"; + }; - return ExportAgentRequest; + return CompareVersionsRequest; })(); - v3beta1.ExportAgentResponse = (function() { + v3.CompareVersionsResponse = (function() { /** - * Properties of an ExportAgentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportAgentResponse - * @property {string|null} [agentUri] ExportAgentResponse agentUri - * @property {Uint8Array|null} [agentContent] ExportAgentResponse agentContent - * @property {string|null} [commitSha] ExportAgentResponse commitSha + * Properties of a CompareVersionsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICompareVersionsResponse + * @property {string|null} [baseVersionContentJson] CompareVersionsResponse baseVersionContentJson + * @property {string|null} [targetVersionContentJson] CompareVersionsResponse targetVersionContentJson + * @property {google.protobuf.ITimestamp|null} [compareTime] CompareVersionsResponse compareTime */ /** - * Constructs a new ExportAgentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportAgentResponse. - * @implements IExportAgentResponse + * Constructs a new CompareVersionsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CompareVersionsResponse. + * @implements ICompareVersionsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set */ - function ExportAgentResponse(properties) { + function CompareVersionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81935,117 +79860,103 @@ } /** - * ExportAgentResponse agentUri. - * @member {string|null|undefined} agentUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse - * @instance - */ - ExportAgentResponse.prototype.agentUri = null; - - /** - * ExportAgentResponse agentContent. - * @member {Uint8Array|null|undefined} agentContent - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * CompareVersionsResponse baseVersionContentJson. + * @member {string} baseVersionContentJson + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance */ - ExportAgentResponse.prototype.agentContent = null; + CompareVersionsResponse.prototype.baseVersionContentJson = ""; /** - * ExportAgentResponse commitSha. - * @member {string|null|undefined} commitSha - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * CompareVersionsResponse targetVersionContentJson. + * @member {string} targetVersionContentJson + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance */ - ExportAgentResponse.prototype.commitSha = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + CompareVersionsResponse.prototype.targetVersionContentJson = ""; /** - * ExportAgentResponse agent. - * @member {"agentUri"|"agentContent"|"commitSha"|undefined} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * CompareVersionsResponse compareTime. + * @member {google.protobuf.ITimestamp|null|undefined} compareTime + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance */ - Object.defineProperty(ExportAgentResponse.prototype, "agent", { - get: $util.oneOfGetter($oneOfFields = ["agentUri", "agentContent", "commitSha"]), - set: $util.oneOfSetter($oneOfFields) - }); + CompareVersionsResponse.prototype.compareTime = null; /** - * Creates a new ExportAgentResponse instance using the specified properties. + * Creates a new CompareVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse instance + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse instance */ - ExportAgentResponse.create = function create(properties) { - return new ExportAgentResponse(properties); + CompareVersionsResponse.create = function create(properties) { + return new CompareVersionsResponse(properties); }; /** - * Encodes the specified ExportAgentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. + * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse} message ExportAgentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportAgentResponse.encode = function encode(message, writer) { + CompareVersionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.agentUri != null && Object.hasOwnProperty.call(message, "agentUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.agentUri); - if (message.agentContent != null && Object.hasOwnProperty.call(message, "agentContent")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.agentContent); - if (message.commitSha != null && Object.hasOwnProperty.call(message, "commitSha")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.commitSha); + if (message.baseVersionContentJson != null && Object.hasOwnProperty.call(message, "baseVersionContentJson")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.baseVersionContentJson); + if (message.targetVersionContentJson != null && Object.hasOwnProperty.call(message, "targetVersionContentJson")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetVersionContentJson); + if (message.compareTime != null && Object.hasOwnProperty.call(message, "compareTime")) + $root.google.protobuf.Timestamp.encode(message.compareTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportAgentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. + * Encodes the specified CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse} message ExportAgentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportAgentResponse.encodeDelimited = function encodeDelimited(message, writer) { + CompareVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportAgentResponse message from the specified reader or buffer. + * Decodes a CompareVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @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.ExportAgentResponse} ExportAgentResponse + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportAgentResponse.decode = function decode(reader, length) { + CompareVersionsResponse.decode = function decode(reader, length) { 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.ExportAgentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.agentUri = reader.string(); + message.baseVersionContentJson = reader.string(); break; } case 2: { - message.agentContent = reader.bytes(); + message.targetVersionContentJson = reader.string(); break; } case 3: { - message.commitSha = reader.string(); + message.compareTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -82057,161 +79968,158 @@ }; /** - * Decodes an ExportAgentResponse message from the specified reader or buffer, length delimited. + * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportAgentResponse.decodeDelimited = function decodeDelimited(reader) { + CompareVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportAgentResponse message. + * Verifies a CompareVersionsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportAgentResponse.verify = function verify(message) { + CompareVersionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.agentUri != null && message.hasOwnProperty("agentUri")) { - properties.agent = 1; - if (!$util.isString(message.agentUri)) - return "agentUri: string expected"; - } - if (message.agentContent != null && message.hasOwnProperty("agentContent")) { - if (properties.agent === 1) - return "agent: multiple values"; - properties.agent = 1; - if (!(message.agentContent && typeof message.agentContent.length === "number" || $util.isString(message.agentContent))) - return "agentContent: buffer expected"; - } - if (message.commitSha != null && message.hasOwnProperty("commitSha")) { - if (properties.agent === 1) - return "agent: multiple values"; - properties.agent = 1; - if (!$util.isString(message.commitSha)) - return "commitSha: string expected"; + if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) + if (!$util.isString(message.baseVersionContentJson)) + return "baseVersionContentJson: string expected"; + if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) + if (!$util.isString(message.targetVersionContentJson)) + return "targetVersionContentJson: string expected"; + if (message.compareTime != null && message.hasOwnProperty("compareTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.compareTime); + if (error) + return "compareTime." + error; } return null; }; /** - * Creates an ExportAgentResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CompareVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse */ - ExportAgentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse) + CompareVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse(); - if (object.agentUri != null) - message.agentUri = String(object.agentUri); - if (object.agentContent != null) - if (typeof object.agentContent === "string") - $util.base64.decode(object.agentContent, message.agentContent = $util.newBuffer($util.base64.length(object.agentContent)), 0); - else if (object.agentContent.length >= 0) - message.agentContent = object.agentContent; - if (object.commitSha != null) - message.commitSha = String(object.commitSha); + var message = new $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse(); + if (object.baseVersionContentJson != null) + message.baseVersionContentJson = String(object.baseVersionContentJson); + if (object.targetVersionContentJson != null) + message.targetVersionContentJson = String(object.targetVersionContentJson); + if (object.compareTime != null) { + if (typeof object.compareTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CompareVersionsResponse.compareTime: object expected"); + message.compareTime = $root.google.protobuf.Timestamp.fromObject(object.compareTime); + } return message; }; /** - * Creates a plain object from an ExportAgentResponse message. Also converts values to other types if specified. + * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} message ExportAgentResponse + * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} message CompareVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportAgentResponse.toObject = function toObject(message, options) { + CompareVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.agentUri != null && message.hasOwnProperty("agentUri")) { - object.agentUri = message.agentUri; - if (options.oneofs) - object.agent = "agentUri"; - } - if (message.agentContent != null && message.hasOwnProperty("agentContent")) { - object.agentContent = options.bytes === String ? $util.base64.encode(message.agentContent, 0, message.agentContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.agentContent) : message.agentContent; - if (options.oneofs) - object.agent = "agentContent"; - } - if (message.commitSha != null && message.hasOwnProperty("commitSha")) { - object.commitSha = message.commitSha; - if (options.oneofs) - object.agent = "commitSha"; + if (options.defaults) { + object.baseVersionContentJson = ""; + object.targetVersionContentJson = ""; + object.compareTime = null; } + if (message.baseVersionContentJson != null && message.hasOwnProperty("baseVersionContentJson")) + object.baseVersionContentJson = message.baseVersionContentJson; + if (message.targetVersionContentJson != null && message.hasOwnProperty("targetVersionContentJson")) + object.targetVersionContentJson = message.targetVersionContentJson; + if (message.compareTime != null && message.hasOwnProperty("compareTime")) + object.compareTime = $root.google.protobuf.Timestamp.toObject(message.compareTime, options); return object; }; /** - * Converts this ExportAgentResponse to JSON. + * Converts this CompareVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance * @returns {Object.} JSON object */ - ExportAgentResponse.prototype.toJSON = function toJSON() { + CompareVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportAgentResponse + * Gets the default type url for CompareVersionsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportAgentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CompareVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CompareVersionsResponse"; }; - return ExportAgentResponse; + return CompareVersionsResponse; })(); - v3beta1.RestoreAgentRequest = (function() { + return v3; + })(); + + cx.v3beta1 = (function() { + + /** + * Namespace v3beta1. + * @memberof google.cloud.dialogflow.cx + * @namespace + */ + var v3beta1 = {}; + + v3beta1.AdvancedSettings = (function() { /** - * Properties of a RestoreAgentRequest. + * Properties of an AdvancedSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRestoreAgentRequest - * @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.IGitSource|null} [gitSource] RestoreAgentRequest gitSource - * @property {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|null} [restoreOption] RestoreAgentRequest restoreOption + * @interface IAdvancedSettings + * @property {google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null} [audioExportGcsDestination] AdvancedSettings audioExportGcsDestination + * @property {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings|null} [dtmfSettings] AdvancedSettings dtmfSettings + * @property {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null} [loggingSettings] AdvancedSettings loggingSettings */ /** - * Constructs a new RestoreAgentRequest. + * Constructs a new AdvancedSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RestoreAgentRequest. - * @implements IRestoreAgentRequest + * @classdesc Represents an AdvancedSettings. + * @implements IAdvancedSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings=} [properties] Properties to set */ - function RestoreAgentRequest(properties) { + function AdvancedSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82219,145 +80127,103 @@ } /** - * RestoreAgentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest - * @instance - */ - RestoreAgentRequest.prototype.name = ""; - - /** - * RestoreAgentRequest agentUri. - * @member {string|null|undefined} agentUri - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest - * @instance - */ - RestoreAgentRequest.prototype.agentUri = null; - - /** - * RestoreAgentRequest agentContent. - * @member {Uint8Array|null|undefined} agentContent - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest - * @instance - */ - RestoreAgentRequest.prototype.agentContent = null; - - /** - * RestoreAgentRequest gitSource. - * @member {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource|null|undefined} gitSource - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * AdvancedSettings audioExportGcsDestination. + * @member {google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null|undefined} audioExportGcsDestination + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @instance */ - RestoreAgentRequest.prototype.gitSource = null; + AdvancedSettings.prototype.audioExportGcsDestination = null; /** - * RestoreAgentRequest restoreOption. - * @member {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption} restoreOption - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * AdvancedSettings dtmfSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings|null|undefined} dtmfSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @instance */ - RestoreAgentRequest.prototype.restoreOption = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + AdvancedSettings.prototype.dtmfSettings = null; /** - * RestoreAgentRequest agent. - * @member {"agentUri"|"agentContent"|"gitSource"|undefined} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * AdvancedSettings loggingSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null|undefined} loggingSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @instance */ - Object.defineProperty(RestoreAgentRequest.prototype, "agent", { - get: $util.oneOfGetter($oneOfFields = ["agentUri", "agentContent", "gitSource"]), - set: $util.oneOfSetter($oneOfFields) - }); + AdvancedSettings.prototype.loggingSettings = null; /** - * Creates a new RestoreAgentRequest instance using the specified properties. + * Creates a new AdvancedSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings} AdvancedSettings instance */ - RestoreAgentRequest.create = function create(properties) { - return new RestoreAgentRequest(properties); + AdvancedSettings.create = function create(properties) { + return new AdvancedSettings(properties); }; /** - * Encodes the specified RestoreAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. + * Encodes the specified AdvancedSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} message RestoreAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings} message AdvancedSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreAgentRequest.encode = function encode(message, writer) { + AdvancedSettings.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.agentUri != null && Object.hasOwnProperty.call(message, "agentUri")) - 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); - if (message.gitSource != null && Object.hasOwnProperty.call(message, "gitSource")) - $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.encode(message.gitSource, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.audioExportGcsDestination != null && Object.hasOwnProperty.call(message, "audioExportGcsDestination")) + $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.encode(message.audioExportGcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dtmfSettings != null && Object.hasOwnProperty.call(message, "dtmfSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.encode(message.dtmfSettings, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.loggingSettings != null && Object.hasOwnProperty.call(message, "loggingSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.encode(message.loggingSettings, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified RestoreAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. + * Encodes the specified AdvancedSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} message RestoreAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings} message AdvancedSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RestoreAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { + AdvancedSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RestoreAgentRequest message from the specified reader or buffer. + * Decodes an AdvancedSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @static * @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.RestoreAgentRequest} RestoreAgentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings} AdvancedSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreAgentRequest.decode = function decode(reader, length) { + AdvancedSettings.decode = function decode(reader, length) { 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.RestoreAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } case 2: { - message.agentUri = reader.string(); + message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.decode(reader, reader.uint32()); break; } - case 3: { - message.agentContent = reader.bytes(); + case 5: { + message.dtmfSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.decode(reader, reader.uint32()); break; } case 6: { - message.gitSource = $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.decode(reader, reader.uint32()); - break; - } - case 5: { - message.restoreOption = reader.int32(); + message.loggingSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.decode(reader, reader.uint32()); break; } default: @@ -82369,202 +80235,153 @@ }; /** - * Decodes a RestoreAgentRequest message from the specified reader or buffer, length delimited. + * Decodes an AdvancedSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings} AdvancedSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RestoreAgentRequest.decodeDelimited = function decodeDelimited(reader) { + AdvancedSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RestoreAgentRequest message. + * Verifies an AdvancedSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RestoreAgentRequest.verify = function verify(message) { + AdvancedSettings.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.agentUri != null && message.hasOwnProperty("agentUri")) { - properties.agent = 1; - if (!$util.isString(message.agentUri)) - return "agentUri: string expected"; + if (message.audioExportGcsDestination != null && message.hasOwnProperty("audioExportGcsDestination")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify(message.audioExportGcsDestination); + if (error) + return "audioExportGcsDestination." + error; } - if (message.agentContent != null && message.hasOwnProperty("agentContent")) { - if (properties.agent === 1) - return "agent: multiple values"; - properties.agent = 1; - if (!(message.agentContent && typeof message.agentContent.length === "number" || $util.isString(message.agentContent))) - return "agentContent: buffer expected"; + if (message.dtmfSettings != null && message.hasOwnProperty("dtmfSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.verify(message.dtmfSettings); + if (error) + return "dtmfSettings." + error; } - if (message.gitSource != null && message.hasOwnProperty("gitSource")) { - if (properties.agent === 1) - return "agent: multiple values"; - properties.agent = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify(message.gitSource); - if (error) - return "gitSource." + error; - } + if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify(message.loggingSettings); + if (error) + return "loggingSettings." + error; } - 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; }; /** - * Creates a RestoreAgentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AdvancedSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings} AdvancedSettings */ - RestoreAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest) + AdvancedSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.agentUri != null) - message.agentUri = String(object.agentUri); - if (object.agentContent != null) - if (typeof object.agentContent === "string") - $util.base64.decode(object.agentContent, message.agentContent = $util.newBuffer($util.base64.length(object.agentContent)), 0); - else if (object.agentContent.length >= 0) - message.agentContent = object.agentContent; - if (object.gitSource != null) { - if (typeof object.gitSource !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.gitSource: object expected"); - message.gitSource = $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.fromObject(object.gitSource); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings(); + if (object.audioExportGcsDestination != null) { + if (typeof object.audioExportGcsDestination !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.audioExportGcsDestination: object expected"); + message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.fromObject(object.audioExportGcsDestination); } - switch (object.restoreOption) { - default: - if (typeof object.restoreOption === "number") { - message.restoreOption = object.restoreOption; - break; - } - break; - 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; + if (object.dtmfSettings != null) { + if (typeof object.dtmfSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.dtmfSettings: object expected"); + message.dtmfSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.fromObject(object.dtmfSettings); + } + if (object.loggingSettings != null) { + if (typeof object.loggingSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.loggingSettings: object expected"); + message.loggingSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.fromObject(object.loggingSettings); } return message; }; /** - * Creates a plain object from a RestoreAgentRequest message. Also converts values to other types if specified. + * Creates a plain object from an AdvancedSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} message RestoreAgentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings} message AdvancedSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RestoreAgentRequest.toObject = function toObject(message, options) { + AdvancedSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; 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")) { - object.agentUri = message.agentUri; - if (options.oneofs) - object.agent = "agentUri"; - } - if (message.agentContent != null && message.hasOwnProperty("agentContent")) { - object.agentContent = options.bytes === String ? $util.base64.encode(message.agentContent, 0, message.agentContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.agentContent) : message.agentContent; - 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] === undefined ? message.restoreOption : $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption[message.restoreOption] : message.restoreOption; - if (message.gitSource != null && message.hasOwnProperty("gitSource")) { - object.gitSource = $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.toObject(message.gitSource, options); - if (options.oneofs) - object.agent = "gitSource"; + object.audioExportGcsDestination = null; + object.dtmfSettings = null; + object.loggingSettings = null; } + if (message.audioExportGcsDestination != null && message.hasOwnProperty("audioExportGcsDestination")) + object.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.toObject(message.audioExportGcsDestination, options); + if (message.dtmfSettings != null && message.hasOwnProperty("dtmfSettings")) + object.dtmfSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.toObject(message.dtmfSettings, options); + if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) + object.loggingSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.toObject(message.loggingSettings, options); return object; }; /** - * Converts this RestoreAgentRequest to JSON. + * Converts this AdvancedSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @instance * @returns {Object.} JSON object */ - RestoreAgentRequest.prototype.toJSON = function toJSON() { + AdvancedSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RestoreAgentRequest + * Gets the default type url for AdvancedSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RestoreAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AdvancedSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.AdvancedSettings"; }; - RestoreAgentRequest.GitSource = (function() { + AdvancedSettings.DtmfSettings = (function() { /** - * Properties of a GitSource. - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest - * @interface IGitSource - * @property {string|null} [trackingBranch] GitSource trackingBranch + * Properties of a DtmfSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @interface IDtmfSettings + * @property {boolean|null} [enabled] DtmfSettings enabled + * @property {number|null} [maxDigits] DtmfSettings maxDigits + * @property {string|null} [finishDigit] DtmfSettings finishDigit */ /** - * Constructs a new GitSource. - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest - * @classdesc Represents a GitSource. - * @implements IGitSource + * Constructs a new DtmfSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @classdesc Represents a DtmfSettings. + * @implements IDtmfSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings=} [properties] Properties to set */ - function GitSource(properties) { + function DtmfSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82572,75 +80389,103 @@ } /** - * GitSource trackingBranch. - * @member {string} trackingBranch - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * DtmfSettings enabled. + * @member {boolean} enabled + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @instance */ - GitSource.prototype.trackingBranch = ""; + DtmfSettings.prototype.enabled = false; /** - * Creates a new GitSource instance using the specified properties. + * DtmfSettings maxDigits. + * @member {number} maxDigits + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings + * @instance + */ + DtmfSettings.prototype.maxDigits = 0; + + /** + * DtmfSettings finishDigit. + * @member {string} finishDigit + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings + * @instance + */ + DtmfSettings.prototype.finishDigit = ""; + + /** + * Creates a new DtmfSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} GitSource instance + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings} DtmfSettings instance */ - GitSource.create = function create(properties) { - return new GitSource(properties); + DtmfSettings.create = function create(properties) { + return new DtmfSettings(properties); }; /** - * Encodes the specified GitSource message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify|verify} messages. + * Encodes the specified DtmfSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource} message GitSource message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings} message DtmfSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GitSource.encode = function encode(message, writer) { + DtmfSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trackingBranch != null && Object.hasOwnProperty.call(message, "trackingBranch")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingBranch); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.maxDigits != null && Object.hasOwnProperty.call(message, "maxDigits")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxDigits); + if (message.finishDigit != null && Object.hasOwnProperty.call(message, "finishDigit")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.finishDigit); return writer; }; /** - * Encodes the specified GitSource message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify|verify} messages. + * Encodes the specified DtmfSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource} message GitSource message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.IDtmfSettings} message DtmfSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GitSource.encodeDelimited = function encodeDelimited(message, writer) { + DtmfSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GitSource message from the specified reader or buffer. + * Decodes a DtmfSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @static * @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.RestoreAgentRequest.GitSource} GitSource + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings} DtmfSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GitSource.decode = function decode(reader, length) { + DtmfSettings.decode = function decode(reader, length) { 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.RestoreAgentRequest.GitSource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trackingBranch = reader.string(); + message.enabled = reader.bool(); + break; + } + case 2: { + message.maxDigits = reader.int32(); + break; + } + case 3: { + message.finishDigit = reader.string(); break; } default: @@ -82652,142 +80497,369 @@ }; /** - * Decodes a GitSource message from the specified reader or buffer, length delimited. + * Decodes a DtmfSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} GitSource + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings} DtmfSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GitSource.decodeDelimited = function decodeDelimited(reader) { + DtmfSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GitSource message. + * Verifies a DtmfSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GitSource.verify = function verify(message) { + DtmfSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) - if (!$util.isString(message.trackingBranch)) - return "trackingBranch: string expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.maxDigits != null && message.hasOwnProperty("maxDigits")) + if (!$util.isInteger(message.maxDigits)) + return "maxDigits: integer expected"; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + if (!$util.isString(message.finishDigit)) + return "finishDigit: string expected"; return null; }; /** - * Creates a GitSource message from a plain object. Also converts values to their respective internal types. + * Creates a DtmfSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} GitSource + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings} DtmfSettings */ - GitSource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) + DtmfSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource(); - if (object.trackingBranch != null) - message.trackingBranch = String(object.trackingBranch); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.maxDigits != null) + message.maxDigits = object.maxDigits | 0; + if (object.finishDigit != null) + message.finishDigit = String(object.finishDigit); return message; }; /** - * Creates a plain object from a GitSource message. Also converts values to other types if specified. + * Creates a plain object from a DtmfSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} message GitSource + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings} message DtmfSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GitSource.toObject = function toObject(message, options) { + DtmfSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.trackingBranch = ""; - if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) - object.trackingBranch = message.trackingBranch; + if (options.defaults) { + object.enabled = false; + object.maxDigits = 0; + object.finishDigit = ""; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.maxDigits != null && message.hasOwnProperty("maxDigits")) + object.maxDigits = message.maxDigits; + if (message.finishDigit != null && message.hasOwnProperty("finishDigit")) + object.finishDigit = message.finishDigit; return object; }; /** - * Converts this GitSource to JSON. + * Converts this DtmfSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @instance * @returns {Object.} JSON object */ - GitSource.prototype.toJSON = function toJSON() { + DtmfSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GitSource + * Gets the default type url for DtmfSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GitSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DtmfSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings"; }; - return GitSource; + return DtmfSettings; })(); - /** - * 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; + AdvancedSettings.LoggingSettings = (function() { + + /** + * Properties of a LoggingSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @interface ILoggingSettings + * @property {boolean|null} [enableStackdriverLogging] LoggingSettings enableStackdriverLogging + * @property {boolean|null} [enableInteractionLogging] LoggingSettings enableInteractionLogging + */ + + /** + * Constructs a new LoggingSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @classdesc Represents a LoggingSettings. + * @implements ILoggingSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings=} [properties] Properties to set + */ + function LoggingSettings(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]]; + } + + /** + * LoggingSettings enableStackdriverLogging. + * @member {boolean} enableStackdriverLogging + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @instance + */ + LoggingSettings.prototype.enableStackdriverLogging = false; + + /** + * LoggingSettings enableInteractionLogging. + * @member {boolean} enableInteractionLogging + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @instance + */ + LoggingSettings.prototype.enableInteractionLogging = false; + + /** + * Creates a new LoggingSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings} LoggingSettings instance + */ + LoggingSettings.create = function create(properties) { + return new LoggingSettings(properties); + }; + + /** + * Encodes the specified LoggingSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings} message LoggingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enableStackdriverLogging != null && Object.hasOwnProperty.call(message, "enableStackdriverLogging")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableStackdriverLogging); + if (message.enableInteractionLogging != null && Object.hasOwnProperty.call(message, "enableInteractionLogging")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enableInteractionLogging); + return writer; + }; + + /** + * Encodes the specified LoggingSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings} message LoggingSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LoggingSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @static + * @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.AdvancedSettings.LoggingSettings} LoggingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingSettings.decode = function decode(reader, length) { + 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.AdvancedSettings.LoggingSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.enableStackdriverLogging = reader.bool(); + break; + } + case 3: { + message.enableInteractionLogging = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LoggingSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings} LoggingSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LoggingSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LoggingSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) + if (typeof message.enableStackdriverLogging !== "boolean") + return "enableStackdriverLogging: boolean expected"; + if (message.enableInteractionLogging != null && message.hasOwnProperty("enableInteractionLogging")) + if (typeof message.enableInteractionLogging !== "boolean") + return "enableInteractionLogging: boolean expected"; + return null; + }; + + /** + * Creates a LoggingSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings} LoggingSettings + */ + LoggingSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings(); + if (object.enableStackdriverLogging != null) + message.enableStackdriverLogging = Boolean(object.enableStackdriverLogging); + if (object.enableInteractionLogging != null) + message.enableInteractionLogging = Boolean(object.enableInteractionLogging); + return message; + }; + + /** + * Creates a plain object from a LoggingSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings} message LoggingSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LoggingSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enableStackdriverLogging = false; + object.enableInteractionLogging = false; + } + if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) + object.enableStackdriverLogging = message.enableStackdriverLogging; + if (message.enableInteractionLogging != null && message.hasOwnProperty("enableInteractionLogging")) + object.enableInteractionLogging = message.enableInteractionLogging; + return object; + }; + + /** + * Converts this LoggingSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @instance + * @returns {Object.} JSON object + */ + LoggingSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LoggingSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LoggingSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings"; + }; + + return LoggingSettings; })(); - return RestoreAgentRequest; + return AdvancedSettings; })(); - v3beta1.ValidateAgentRequest = (function() { + v3beta1.GcsDestination = (function() { /** - * Properties of a ValidateAgentRequest. + * Properties of a GcsDestination. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IValidateAgentRequest - * @property {string|null} [name] ValidateAgentRequest name - * @property {string|null} [languageCode] ValidateAgentRequest languageCode + * @interface IGcsDestination + * @property {string|null} [uri] GcsDestination uri */ /** - * Constructs a new ValidateAgentRequest. + * Constructs a new GcsDestination. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ValidateAgentRequest. - * @implements IValidateAgentRequest + * @classdesc Represents a GcsDestination. + * @implements IGcsDestination * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination=} [properties] Properties to set */ - function ValidateAgentRequest(properties) { + function GcsDestination(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82795,89 +80867,75 @@ } /** - * ValidateAgentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest - * @instance - */ - ValidateAgentRequest.prototype.name = ""; - - /** - * ValidateAgentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * GcsDestination uri. + * @member {string} uri + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @instance */ - ValidateAgentRequest.prototype.languageCode = ""; + GcsDestination.prototype.uri = ""; /** - * Creates a new ValidateAgentRequest instance using the specified properties. + * Creates a new GcsDestination instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest} ValidateAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination instance */ - ValidateAgentRequest.create = function create(properties) { - return new ValidateAgentRequest(properties); + GcsDestination.create = function create(properties) { + return new GcsDestination(properties); }; /** - * Encodes the specified ValidateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest.verify|verify} messages. + * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest} message ValidateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination} message GcsDestination message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateAgentRequest.encode = function encode(message, writer) { + GcsDestination.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.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); return writer; }; /** - * Encodes the specified ValidateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest.verify|verify} messages. + * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest} message ValidateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination} message GcsDestination message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { + GcsDestination.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateAgentRequest message from the specified reader or buffer. + * Decodes a GcsDestination message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @static * @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.ValidateAgentRequest} ValidateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateAgentRequest.decode = function decode(reader, length) { + GcsDestination.decode = function decode(reader, length) { 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.ValidateAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.languageCode = reader.string(); + message.uri = reader.string(); break; } default: @@ -82889,132 +80947,520 @@ }; /** - * Decodes a ValidateAgentRequest message from the specified reader or buffer, length delimited. + * Decodes a GcsDestination message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest} ValidateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateAgentRequest.decodeDelimited = function decodeDelimited(reader) { + GcsDestination.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateAgentRequest message. + * Verifies a GcsDestination message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateAgentRequest.verify = function verify(message) { + GcsDestination.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.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; return null; }; /** - * Creates a ValidateAgentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest} ValidateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination */ - ValidateAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest) + GcsDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest(); - 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.GcsDestination(); + if (object.uri != null) + message.uri = String(object.uri); return message; }; /** - * Creates a plain object from a ValidateAgentRequest message. Also converts values to other types if specified. + * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest} message ValidateAgentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GcsDestination} message GcsDestination * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateAgentRequest.toObject = function toObject(message, options) { + GcsDestination.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; + if (options.defaults) + object.uri = ""; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; return object; }; /** - * Converts this ValidateAgentRequest to JSON. + * Converts this GcsDestination to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @instance * @returns {Object.} JSON object */ - ValidateAgentRequest.prototype.toJSON = function toJSON() { + GcsDestination.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateAgentRequest + * Gets the default type url for GcsDestination * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GcsDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GcsDestination"; }; - return ValidateAgentRequest; + return GcsDestination; })(); - v3beta1.GetAgentValidationResultRequest = (function() { + v3beta1.Agents = (function() { /** - * Properties of a GetAgentValidationResultRequest. + * Constructs a new Agents service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetAgentValidationResultRequest - * @property {string|null} [name] GetAgentValidationResultRequest name - * @property {string|null} [languageCode] GetAgentValidationResultRequest languageCode + * @classdesc Represents an Agents + * @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 Agents(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Agents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Agents; + + /** + * Creates new Agents service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @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 {Agents} RPC service. Useful where requests and/or responses are streamed. + */ + Agents.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|listAgents}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef ListAgentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} [response] ListAgentsResponse */ /** - * Constructs a new GetAgentValidationResultRequest. + * Calls ListAgents. + * @function listAgents + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} request ListAgentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback} callback Node-style callback called with the error, if any, and ListAgentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.listAgents = function listAgents(request, callback) { + return this.rpcCall(listAgents, $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse, request, callback); + }, "name", { value: "ListAgents" }); + + /** + * Calls ListAgents. + * @function listAgents + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} request ListAgentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getAgent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef GetAgentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Agent} [response] Agent + */ + + /** + * Calls GetAgent. + * @function getAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} request GetAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback} callback Node-style callback called with the error, if any, and Agent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.getAgent = function getAgent(request, callback) { + return this.rpcCall(getAgent, $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Agent, request, callback); + }, "name", { value: "GetAgent" }); + + /** + * Calls GetAgent. + * @function getAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} request GetAgentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|createAgent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef CreateAgentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Agent} [response] Agent + */ + + /** + * Calls CreateAgent. + * @function createAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} request CreateAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback} callback Node-style callback called with the error, if any, and Agent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.createAgent = function createAgent(request, callback) { + return this.rpcCall(createAgent, $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Agent, request, callback); + }, "name", { value: "CreateAgent" }); + + /** + * Calls CreateAgent. + * @function createAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} request CreateAgentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|updateAgent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef UpdateAgentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Agent} [response] Agent + */ + + /** + * Calls UpdateAgent. + * @function updateAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} request UpdateAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback} callback Node-style callback called with the error, if any, and Agent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.updateAgent = function updateAgent(request, callback) { + return this.rpcCall(updateAgent, $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Agent, request, callback); + }, "name", { value: "UpdateAgent" }); + + /** + * Calls UpdateAgent. + * @function updateAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} request UpdateAgentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|deleteAgent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef DeleteAgentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteAgent. + * @function deleteAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} request DeleteAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.deleteAgent = function deleteAgent(request, callback) { + return this.rpcCall(deleteAgent, $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteAgent" }); + + /** + * Calls DeleteAgent. + * @function deleteAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} request DeleteAgentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|exportAgent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef ExportAgentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportAgent. + * @function exportAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} request ExportAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.exportAgent = function exportAgent(request, callback) { + return this.rpcCall(exportAgent, $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportAgent" }); + + /** + * Calls ExportAgent. + * @function exportAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} request ExportAgentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|restoreAgent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef RestoreAgentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls RestoreAgent. + * @function restoreAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} request RestoreAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.restoreAgent = function restoreAgent(request, callback) { + return this.rpcCall(restoreAgent, $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RestoreAgent" }); + + /** + * Calls RestoreAgent. + * @function restoreAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} request RestoreAgentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|validateAgent}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef ValidateAgentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} [response] AgentValidationResult + */ + + /** + * Calls ValidateAgent. + * @function validateAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest} request ValidateAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgentCallback} callback Node-style callback called with the error, if any, and AgentValidationResult + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.validateAgent = function validateAgent(request, callback) { + return this.rpcCall(validateAgent, $root.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult, request, callback); + }, "name", { value: "ValidateAgent" }); + + /** + * Calls ValidateAgent. + * @function validateAgent + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest} request ValidateAgentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getAgentValidationResult}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef GetAgentValidationResultCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} [response] AgentValidationResult + */ + + /** + * Calls GetAgentValidationResult. + * @function getAgentValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest} request GetAgentValidationResultRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResultCallback} callback Node-style callback called with the error, if any, and AgentValidationResult + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.getAgentValidationResult = function getAgentValidationResult(request, callback) { + return this.rpcCall(getAgentValidationResult, $root.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult, request, callback); + }, "name", { value: "GetAgentValidationResult" }); + + /** + * Calls GetAgentValidationResult. + * @function getAgentValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest} request GetAgentValidationResultRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|getGenerativeSettings}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef GetGenerativeSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} [response] GenerativeSettings + */ + + /** + * Calls GetGenerativeSettings. + * @function getGenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest} request GetGenerativeSettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.GetGenerativeSettingsCallback} callback Node-style callback called with the error, if any, and GenerativeSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.getGenerativeSettings = function getGenerativeSettings(request, callback) { + return this.rpcCall(getGenerativeSettings, $root.google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings, request, callback); + }, "name", { value: "GetGenerativeSettings" }); + + /** + * Calls GetGenerativeSettings. + * @function getGenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest} request GetGenerativeSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents|updateGenerativeSettings}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @typedef UpdateGenerativeSettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} [response] GenerativeSettings + */ + + /** + * Calls UpdateGenerativeSettings. + * @function updateGenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest} request UpdateGenerativeSettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Agents.UpdateGenerativeSettingsCallback} callback Node-style callback called with the error, if any, and GenerativeSettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Agents.prototype.updateGenerativeSettings = function updateGenerativeSettings(request, callback) { + return this.rpcCall(updateGenerativeSettings, $root.google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest, $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings, request, callback); + }, "name", { value: "UpdateGenerativeSettings" }); + + /** + * Calls UpdateGenerativeSettings. + * @function updateGenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest} request UpdateGenerativeSettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Agents; + })(); + + v3beta1.SpeechToTextSettings = (function() { + + /** + * Properties of a SpeechToTextSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetAgentValidationResultRequest. - * @implements IGetAgentValidationResultRequest + * @interface ISpeechToTextSettings + * @property {boolean|null} [enableSpeechAdaptation] SpeechToTextSettings enableSpeechAdaptation + */ + + /** + * Constructs a new SpeechToTextSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a SpeechToTextSettings. + * @implements ISpeechToTextSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings=} [properties] Properties to set */ - function GetAgentValidationResultRequest(properties) { + function SpeechToTextSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83022,89 +81468,75 @@ } /** - * GetAgentValidationResultRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest - * @instance - */ - GetAgentValidationResultRequest.prototype.name = ""; - - /** - * GetAgentValidationResultRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * SpeechToTextSettings enableSpeechAdaptation. + * @member {boolean} enableSpeechAdaptation + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @instance */ - GetAgentValidationResultRequest.prototype.languageCode = ""; + SpeechToTextSettings.prototype.enableSpeechAdaptation = false; /** - * Creates a new GetAgentValidationResultRequest instance using the specified properties. + * Creates a new SpeechToTextSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest} GetAgentValidationResultRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings instance */ - GetAgentValidationResultRequest.create = function create(properties) { - return new GetAgentValidationResultRequest(properties); + SpeechToTextSettings.create = function create(properties) { + return new SpeechToTextSettings(properties); }; /** - * Encodes the specified GetAgentValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest.verify|verify} messages. + * Encodes the specified SpeechToTextSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest} message GetAgentValidationResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings} message SpeechToTextSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAgentValidationResultRequest.encode = function encode(message, writer) { + SpeechToTextSettings.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.enableSpeechAdaptation != null && Object.hasOwnProperty.call(message, "enableSpeechAdaptation")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableSpeechAdaptation); return writer; }; /** - * Encodes the specified GetAgentValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest.verify|verify} messages. + * Encodes the specified SpeechToTextSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest} message GetAgentValidationResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings} message SpeechToTextSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAgentValidationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + SpeechToTextSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAgentValidationResultRequest message from the specified reader or buffer. + * Decodes a SpeechToTextSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @static * @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.GetAgentValidationResultRequest} GetAgentValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAgentValidationResultRequest.decode = function decode(reader, length) { + SpeechToTextSettings.decode = function decode(reader, length) { 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.GetAgentValidationResultRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.languageCode = reader.string(); + message.enableSpeechAdaptation = reader.bool(); break; } default: @@ -83116,133 +81548,139 @@ }; /** - * Decodes a GetAgentValidationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a SpeechToTextSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest} GetAgentValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAgentValidationResultRequest.decodeDelimited = function decodeDelimited(reader) { + SpeechToTextSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetAgentValidationResultRequest message. + * Verifies a SpeechToTextSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAgentValidationResultRequest.verify = function verify(message) { + SpeechToTextSettings.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.enableSpeechAdaptation != null && message.hasOwnProperty("enableSpeechAdaptation")) + if (typeof message.enableSpeechAdaptation !== "boolean") + return "enableSpeechAdaptation: boolean expected"; return null; }; /** - * Creates a GetAgentValidationResultRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest} GetAgentValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings */ - GetAgentValidationResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest) + SpeechToTextSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest(); - 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.SpeechToTextSettings(); + if (object.enableSpeechAdaptation != null) + message.enableSpeechAdaptation = Boolean(object.enableSpeechAdaptation); return message; }; /** - * Creates a plain object from a GetAgentValidationResultRequest message. Also converts values to other types if specified. + * Creates a plain object from a SpeechToTextSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest} message GetAgentValidationResultRequest + * @param {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} message SpeechToTextSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAgentValidationResultRequest.toObject = function toObject(message, options) { + SpeechToTextSettings.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; + if (options.defaults) + object.enableSpeechAdaptation = false; + if (message.enableSpeechAdaptation != null && message.hasOwnProperty("enableSpeechAdaptation")) + object.enableSpeechAdaptation = message.enableSpeechAdaptation; return object; }; /** - * Converts this GetAgentValidationResultRequest to JSON. + * Converts this SpeechToTextSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @instance * @returns {Object.} JSON object */ - GetAgentValidationResultRequest.prototype.toJSON = function toJSON() { + SpeechToTextSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetAgentValidationResultRequest + * Gets the default type url for SpeechToTextSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetAgentValidationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SpeechToTextSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings"; }; - return GetAgentValidationResultRequest; + return SpeechToTextSettings; })(); - v3beta1.AgentValidationResult = (function() { + v3beta1.Agent = (function() { /** - * Properties of an AgentValidationResult. + * Properties of an Agent. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IAgentValidationResult - * @property {string|null} [name] AgentValidationResult name - * @property {Array.|null} [flowValidationResults] AgentValidationResult flowValidationResults + * @interface IAgent + * @property {string|null} [name] Agent name + * @property {string|null} [displayName] Agent displayName + * @property {string|null} [defaultLanguageCode] Agent defaultLanguageCode + * @property {Array.|null} [supportedLanguageCodes] Agent supportedLanguageCodes + * @property {string|null} [timeZone] Agent timeZone + * @property {string|null} [description] Agent description + * @property {string|null} [avatarUri] Agent avatarUri + * @property {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null} [speechToTextSettings] Agent speechToTextSettings + * @property {string|null} [startFlow] Agent startFlow + * @property {string|null} [securitySettings] Agent securitySettings + * @property {boolean|null} [enableStackdriverLogging] Agent enableStackdriverLogging + * @property {boolean|null} [enableSpellCorrection] Agent enableSpellCorrection + * @property {boolean|null} [locked] Agent locked + * @property {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null} [advancedSettings] Agent advancedSettings + * @property {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings|null} [gitIntegrationSettings] Agent gitIntegrationSettings + * @property {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null} [textToSpeechSettings] Agent textToSpeechSettings + * @property {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings|null} [genAppBuilderSettings] Agent genAppBuilderSettings */ /** - * Constructs a new AgentValidationResult. + * Constructs a new Agent. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an AgentValidationResult. - * @implements IAgentValidationResult + * @classdesc Represents an Agent. + * @implements IAgent * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IAgent=} [properties] Properties to set */ - function AgentValidationResult(properties) { - this.flowValidationResults = []; + function Agent(properties) { + this.supportedLanguageCodes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83250,327 +81688,245 @@ } /** - * AgentValidationResult name. + * Agent name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @instance */ - AgentValidationResult.prototype.name = ""; + Agent.prototype.name = ""; /** - * AgentValidationResult flowValidationResults. - * @member {Array.} flowValidationResults - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult + * Agent displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @instance */ - AgentValidationResult.prototype.flowValidationResults = $util.emptyArray; + Agent.prototype.displayName = ""; /** - * Creates a new AgentValidationResult instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} AgentValidationResult instance + * Agent defaultLanguageCode. + * @member {string} defaultLanguageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - AgentValidationResult.create = function create(properties) { - return new AgentValidationResult(properties); - }; + Agent.prototype.defaultLanguageCode = ""; /** - * Encodes the specified AgentValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult} message AgentValidationResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Agent supportedLanguageCodes. + * @member {Array.} supportedLanguageCodes + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - AgentValidationResult.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.flowValidationResults != null && message.flowValidationResults.length) - for (var i = 0; i < message.flowValidationResults.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.encode(message.flowValidationResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Agent.prototype.supportedLanguageCodes = $util.emptyArray; /** - * Encodes the specified AgentValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult} message AgentValidationResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Agent timeZone. + * @member {string} timeZone + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - AgentValidationResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Agent.prototype.timeZone = ""; /** - * Decodes an AgentValidationResult message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult - * @static - * @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.AgentValidationResult} AgentValidationResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Agent description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - AgentValidationResult.decode = function decode(reader, length) { - 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.AgentValidationResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.flowValidationResults && message.flowValidationResults.length)) - message.flowValidationResults = []; - message.flowValidationResults.push($root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Agent.prototype.description = ""; /** - * Decodes an AgentValidationResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} AgentValidationResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Agent avatarUri. + * @member {string} avatarUri + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - AgentValidationResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Agent.prototype.avatarUri = ""; /** - * Verifies an AgentValidationResult message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Agent speechToTextSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null|undefined} speechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - AgentValidationResult.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.flowValidationResults != null && message.hasOwnProperty("flowValidationResults")) { - if (!Array.isArray(message.flowValidationResults)) - return "flowValidationResults: array expected"; - for (var i = 0; i < message.flowValidationResults.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify(message.flowValidationResults[i]); - if (error) - return "flowValidationResults." + error; - } - } - return null; - }; + Agent.prototype.speechToTextSettings = null; /** - * Creates an AgentValidationResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} AgentValidationResult + * Agent startFlow. + * @member {string} startFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - AgentValidationResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult(); - if (object.name != null) - message.name = String(object.name); - if (object.flowValidationResults) { - if (!Array.isArray(object.flowValidationResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.flowValidationResults: array expected"); - message.flowValidationResults = []; - for (var i = 0; i < object.flowValidationResults.length; ++i) { - if (typeof object.flowValidationResults[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.flowValidationResults: object expected"); - message.flowValidationResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.fromObject(object.flowValidationResults[i]); - } - } - return message; - }; + Agent.prototype.startFlow = ""; /** - * Creates a plain object from an AgentValidationResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} message AgentValidationResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Agent securitySettings. + * @member {string} securitySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - AgentValidationResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.flowValidationResults = []; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.flowValidationResults && message.flowValidationResults.length) { - object.flowValidationResults = []; - for (var j = 0; j < message.flowValidationResults.length; ++j) - object.flowValidationResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.toObject(message.flowValidationResults[j], options); - } - return object; - }; + Agent.prototype.securitySettings = ""; /** - * Converts this AgentValidationResult to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult + * Agent enableStackdriverLogging. + * @member {boolean} enableStackdriverLogging + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @instance - * @returns {Object.} JSON object */ - AgentValidationResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Agent.prototype.enableStackdriverLogging = false; /** - * Gets the default type url for AgentValidationResult - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Agent enableSpellCorrection. + * @member {boolean} enableSpellCorrection + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - AgentValidationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.AgentValidationResult"; - }; + Agent.prototype.enableSpellCorrection = false; - return AgentValidationResult; - })(); + /** + * Agent locked. + * @member {boolean} locked + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance + */ + Agent.prototype.locked = false; - v3beta1.GetGenerativeSettingsRequest = (function() { + /** + * Agent advancedSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance + */ + Agent.prototype.advancedSettings = null; /** - * Properties of a GetGenerativeSettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetGenerativeSettingsRequest - * @property {string|null} [name] GetGenerativeSettingsRequest name - * @property {string|null} [languageCode] GetGenerativeSettingsRequest languageCode + * Agent gitIntegrationSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings|null|undefined} gitIntegrationSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ + Agent.prototype.gitIntegrationSettings = null; /** - * Constructs a new GetGenerativeSettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetGenerativeSettingsRequest. - * @implements IGetGenerativeSettingsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest=} [properties] Properties to set + * Agent textToSpeechSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null|undefined} textToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance */ - function GetGenerativeSettingsRequest(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]]; - } + Agent.prototype.textToSpeechSettings = null; /** - * GetGenerativeSettingsRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * Agent genAppBuilderSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings|null|undefined} genAppBuilderSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @instance */ - GetGenerativeSettingsRequest.prototype.name = ""; + Agent.prototype.genAppBuilderSettings = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * GetGenerativeSettingsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * Agent _genAppBuilderSettings. + * @member {"genAppBuilderSettings"|undefined} _genAppBuilderSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @instance */ - GetGenerativeSettingsRequest.prototype.languageCode = ""; + Object.defineProperty(Agent.prototype, "_genAppBuilderSettings", { + get: $util.oneOfGetter($oneOfFields = ["genAppBuilderSettings"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new GetGenerativeSettingsRequest instance using the specified properties. + * Creates a new Agent instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest} GetGenerativeSettingsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IAgent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent instance */ - GetGenerativeSettingsRequest.create = function create(properties) { - return new GetGenerativeSettingsRequest(properties); + Agent.create = function create(properties) { + return new Agent(properties); }; /** - * Encodes the specified GetGenerativeSettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest.verify|verify} messages. + * Encodes the specified Agent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest} message GetGenerativeSettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAgent} message Agent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGenerativeSettingsRequest.encode = function encode(message, writer) { + Agent.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.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.defaultLanguageCode != null && Object.hasOwnProperty.call(message, "defaultLanguageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultLanguageCode); + if (message.supportedLanguageCodes != null && message.supportedLanguageCodes.length) + for (var i = 0; i < message.supportedLanguageCodes.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.supportedLanguageCodes[i]); + if (message.timeZone != null && Object.hasOwnProperty.call(message, "timeZone")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.timeZone); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.avatarUri != null && Object.hasOwnProperty.call(message, "avatarUri")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.avatarUri); + if (message.speechToTextSettings != null && Object.hasOwnProperty.call(message, "speechToTextSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.encode(message.speechToTextSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.startFlow != null && Object.hasOwnProperty.call(message, "startFlow")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.startFlow); + if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.securitySettings); + if (message.enableStackdriverLogging != null && Object.hasOwnProperty.call(message, "enableStackdriverLogging")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.enableStackdriverLogging); + if (message.enableSpellCorrection != null && Object.hasOwnProperty.call(message, "enableSpellCorrection")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.enableSpellCorrection); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.locked); + if (message.gitIntegrationSettings != null && Object.hasOwnProperty.call(message, "gitIntegrationSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.encode(message.gitIntegrationSettings, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); + if (message.textToSpeechSettings != null && Object.hasOwnProperty.call(message, "textToSpeechSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.encode(message.textToSpeechSettings, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); + if (message.genAppBuilderSettings != null && Object.hasOwnProperty.call(message, "genAppBuilderSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.encode(message.genAppBuilderSettings, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetGenerativeSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest.verify|verify} messages. + * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest} message GetGenerativeSettingsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAgent} message Agent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetGenerativeSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Agent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetGenerativeSettingsRequest message from the specified reader or buffer. + * Decodes an Agent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @static * @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.GetGenerativeSettingsRequest} GetGenerativeSettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGenerativeSettingsRequest.decode = function decode(reader, length) { + Agent.decode = function decode(reader, length) { 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.GetGenerativeSettingsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -83579,7 +81935,69 @@ break; } case 2: { - message.languageCode = reader.string(); + message.displayName = reader.string(); + break; + } + case 3: { + message.defaultLanguageCode = reader.string(); + break; + } + case 4: { + if (!(message.supportedLanguageCodes && message.supportedLanguageCodes.length)) + message.supportedLanguageCodes = []; + message.supportedLanguageCodes.push(reader.string()); + break; + } + case 5: { + message.timeZone = reader.string(); + break; + } + case 6: { + message.description = reader.string(); + break; + } + case 7: { + message.avatarUri = reader.string(); + break; + } + case 13: { + message.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.decode(reader, reader.uint32()); + break; + } + case 16: { + message.startFlow = reader.string(); + break; + } + case 17: { + message.securitySettings = reader.string(); + break; + } + case 18: { + message.enableStackdriverLogging = reader.bool(); + break; + } + case 20: { + message.enableSpellCorrection = reader.bool(); + break; + } + case 27: { + message.locked = reader.bool(); + break; + } + case 22: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.decode(reader, reader.uint32()); + break; + } + case 30: { + message.gitIntegrationSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.decode(reader, reader.uint32()); + break; + } + case 31: { + message.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.decode(reader, reader.uint32()); + break; + } + case 33: { + message.genAppBuilderSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.decode(reader, reader.uint32()); break; } default: @@ -83591,415 +82009,1040 @@ }; /** - * Decodes a GetGenerativeSettingsRequest message from the specified reader or buffer, length delimited. + * Decodes an Agent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest} GetGenerativeSettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetGenerativeSettingsRequest.decodeDelimited = function decodeDelimited(reader) { + Agent.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetGenerativeSettingsRequest message. + * Verifies an Agent message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetGenerativeSettingsRequest.verify = function verify(message) { + Agent.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.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.defaultLanguageCode != null && message.hasOwnProperty("defaultLanguageCode")) + if (!$util.isString(message.defaultLanguageCode)) + return "defaultLanguageCode: string expected"; + if (message.supportedLanguageCodes != null && message.hasOwnProperty("supportedLanguageCodes")) { + if (!Array.isArray(message.supportedLanguageCodes)) + return "supportedLanguageCodes: array expected"; + for (var i = 0; i < message.supportedLanguageCodes.length; ++i) + if (!$util.isString(message.supportedLanguageCodes[i])) + return "supportedLanguageCodes: string[] expected"; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + if (!$util.isString(message.timeZone)) + return "timeZone: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.avatarUri != null && message.hasOwnProperty("avatarUri")) + if (!$util.isString(message.avatarUri)) + return "avatarUri: string expected"; + if (message.speechToTextSettings != null && message.hasOwnProperty("speechToTextSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify(message.speechToTextSettings); + if (error) + return "speechToTextSettings." + error; + } + if (message.startFlow != null && message.hasOwnProperty("startFlow")) + if (!$util.isString(message.startFlow)) + return "startFlow: string expected"; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + if (!$util.isString(message.securitySettings)) + return "securitySettings: string expected"; + if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) + if (typeof message.enableStackdriverLogging !== "boolean") + return "enableStackdriverLogging: boolean expected"; + if (message.enableSpellCorrection != null && message.hasOwnProperty("enableSpellCorrection")) + if (typeof message.enableSpellCorrection !== "boolean") + return "enableSpellCorrection: boolean expected"; + if (message.locked != null && message.hasOwnProperty("locked")) + if (typeof message.locked !== "boolean") + return "locked: boolean expected"; + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } + if (message.gitIntegrationSettings != null && message.hasOwnProperty("gitIntegrationSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify(message.gitIntegrationSettings); + if (error) + return "gitIntegrationSettings." + error; + } + if (message.textToSpeechSettings != null && message.hasOwnProperty("textToSpeechSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify(message.textToSpeechSettings); + if (error) + return "textToSpeechSettings." + error; + } + if (message.genAppBuilderSettings != null && message.hasOwnProperty("genAppBuilderSettings")) { + properties._genAppBuilderSettings = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify(message.genAppBuilderSettings); + if (error) + return "genAppBuilderSettings." + error; + } + } return null; }; /** - * Creates a GetGenerativeSettingsRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest} GetGenerativeSettingsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent */ - GetGenerativeSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest) + Agent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Agent) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent(); if (object.name != null) message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.defaultLanguageCode != null) + message.defaultLanguageCode = String(object.defaultLanguageCode); + if (object.supportedLanguageCodes) { + if (!Array.isArray(object.supportedLanguageCodes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.supportedLanguageCodes: array expected"); + message.supportedLanguageCodes = []; + for (var i = 0; i < object.supportedLanguageCodes.length; ++i) + message.supportedLanguageCodes[i] = String(object.supportedLanguageCodes[i]); + } + if (object.timeZone != null) + message.timeZone = String(object.timeZone); + if (object.description != null) + message.description = String(object.description); + if (object.avatarUri != null) + message.avatarUri = String(object.avatarUri); + if (object.speechToTextSettings != null) { + if (typeof object.speechToTextSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.speechToTextSettings: object expected"); + message.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.fromObject(object.speechToTextSettings); + } + if (object.startFlow != null) + message.startFlow = String(object.startFlow); + if (object.securitySettings != null) + message.securitySettings = String(object.securitySettings); + if (object.enableStackdriverLogging != null) + message.enableStackdriverLogging = Boolean(object.enableStackdriverLogging); + if (object.enableSpellCorrection != null) + message.enableSpellCorrection = Boolean(object.enableSpellCorrection); + if (object.locked != null) + message.locked = Boolean(object.locked); + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.fromObject(object.advancedSettings); + } + if (object.gitIntegrationSettings != null) { + if (typeof object.gitIntegrationSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.gitIntegrationSettings: object expected"); + message.gitIntegrationSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.fromObject(object.gitIntegrationSettings); + } + if (object.textToSpeechSettings != null) { + if (typeof object.textToSpeechSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.textToSpeechSettings: object expected"); + message.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.fromObject(object.textToSpeechSettings); + } + if (object.genAppBuilderSettings != null) { + if (typeof object.genAppBuilderSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.genAppBuilderSettings: object expected"); + message.genAppBuilderSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.fromObject(object.genAppBuilderSettings); + } return message; }; /** - * Creates a plain object from a GetGenerativeSettingsRequest message. Also converts values to other types if specified. + * Creates a plain object from an Agent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest} message GetGenerativeSettingsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.Agent} message Agent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetGenerativeSettingsRequest.toObject = function toObject(message, options) { + Agent.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.supportedLanguageCodes = []; if (options.defaults) { object.name = ""; - object.languageCode = ""; + object.displayName = ""; + object.defaultLanguageCode = ""; + object.timeZone = ""; + object.description = ""; + object.avatarUri = ""; + object.speechToTextSettings = null; + object.startFlow = ""; + object.securitySettings = ""; + object.enableStackdriverLogging = false; + object.enableSpellCorrection = false; + object.advancedSettings = null; + object.locked = false; + object.gitIntegrationSettings = null; + object.textToSpeechSettings = 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.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.defaultLanguageCode != null && message.hasOwnProperty("defaultLanguageCode")) + object.defaultLanguageCode = message.defaultLanguageCode; + if (message.supportedLanguageCodes && message.supportedLanguageCodes.length) { + object.supportedLanguageCodes = []; + for (var j = 0; j < message.supportedLanguageCodes.length; ++j) + object.supportedLanguageCodes[j] = message.supportedLanguageCodes[j]; + } + if (message.timeZone != null && message.hasOwnProperty("timeZone")) + object.timeZone = message.timeZone; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.avatarUri != null && message.hasOwnProperty("avatarUri")) + object.avatarUri = message.avatarUri; + if (message.speechToTextSettings != null && message.hasOwnProperty("speechToTextSettings")) + object.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.toObject(message.speechToTextSettings, options); + if (message.startFlow != null && message.hasOwnProperty("startFlow")) + object.startFlow = message.startFlow; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + object.securitySettings = message.securitySettings; + if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) + object.enableStackdriverLogging = message.enableStackdriverLogging; + if (message.enableSpellCorrection != null && message.hasOwnProperty("enableSpellCorrection")) + object.enableSpellCorrection = message.enableSpellCorrection; + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.toObject(message.advancedSettings, options); + if (message.locked != null && message.hasOwnProperty("locked")) + object.locked = message.locked; + if (message.gitIntegrationSettings != null && message.hasOwnProperty("gitIntegrationSettings")) + object.gitIntegrationSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.toObject(message.gitIntegrationSettings, options); + if (message.textToSpeechSettings != null && message.hasOwnProperty("textToSpeechSettings")) + object.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.toObject(message.textToSpeechSettings, options); + if (message.genAppBuilderSettings != null && message.hasOwnProperty("genAppBuilderSettings")) { + object.genAppBuilderSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.toObject(message.genAppBuilderSettings, options); + if (options.oneofs) + object._genAppBuilderSettings = "genAppBuilderSettings"; + } return object; }; /** - * Converts this GetGenerativeSettingsRequest to JSON. + * Converts this Agent to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @instance * @returns {Object.} JSON object */ - GetGenerativeSettingsRequest.prototype.toJSON = function toJSON() { + Agent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetGenerativeSettingsRequest + * Gets the default type url for Agent * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetGenerativeSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Agent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Agent"; }; - return GetGenerativeSettingsRequest; - })(); + Agent.GitIntegrationSettings = (function() { - v3beta1.UpdateGenerativeSettingsRequest = (function() { + /** + * Properties of a GitIntegrationSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @interface IGitIntegrationSettings + * @property {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings|null} [githubSettings] GitIntegrationSettings githubSettings + */ - /** - * Properties of an UpdateGenerativeSettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateGenerativeSettingsRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings|null} [generativeSettings] UpdateGenerativeSettingsRequest generativeSettings - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGenerativeSettingsRequest updateMask - */ + /** + * Constructs a new GitIntegrationSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @classdesc Represents a GitIntegrationSettings. + * @implements IGitIntegrationSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings=} [properties] Properties to set + */ + function GitIntegrationSettings(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 UpdateGenerativeSettingsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateGenerativeSettingsRequest. - * @implements IUpdateGenerativeSettingsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest=} [properties] Properties to set - */ - function UpdateGenerativeSettingsRequest(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]]; - } + /** + * GitIntegrationSettings githubSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings|null|undefined} githubSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @instance + */ + GitIntegrationSettings.prototype.githubSettings = null; - /** - * UpdateGenerativeSettingsRequest generativeSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings|null|undefined} generativeSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @instance - */ - UpdateGenerativeSettingsRequest.prototype.generativeSettings = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * UpdateGenerativeSettingsRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @instance - */ - UpdateGenerativeSettingsRequest.prototype.updateMask = null; + /** + * GitIntegrationSettings gitSettings. + * @member {"githubSettings"|undefined} gitSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @instance + */ + Object.defineProperty(GitIntegrationSettings.prototype, "gitSettings", { + get: $util.oneOfGetter($oneOfFields = ["githubSettings"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a new UpdateGenerativeSettingsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest} UpdateGenerativeSettingsRequest instance - */ - UpdateGenerativeSettingsRequest.create = function create(properties) { - return new UpdateGenerativeSettingsRequest(properties); - }; + /** + * Creates a new GitIntegrationSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} GitIntegrationSettings instance + */ + GitIntegrationSettings.create = function create(properties) { + return new GitIntegrationSettings(properties); + }; - /** - * Encodes the specified UpdateGenerativeSettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest} message UpdateGenerativeSettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateGenerativeSettingsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.generativeSettings != null && Object.hasOwnProperty.call(message, "generativeSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.encode(message.generativeSettings, 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 GitIntegrationSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings} message GitIntegrationSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GitIntegrationSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.githubSettings != null && Object.hasOwnProperty.call(message, "githubSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.encode(message.githubSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified UpdateGenerativeSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest} message UpdateGenerativeSettingsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateGenerativeSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GitIntegrationSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGitIntegrationSettings} message GitIntegrationSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GitIntegrationSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an UpdateGenerativeSettingsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @static - * @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.UpdateGenerativeSettingsRequest} UpdateGenerativeSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateGenerativeSettingsRequest.decode = function decode(reader, length) { - 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.UpdateGenerativeSettingsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.generativeSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.decode(reader, reader.uint32()); + /** + * Decodes a GitIntegrationSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @static + * @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.Agent.GitIntegrationSettings} GitIntegrationSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GitIntegrationSettings.decode = function decode(reader, length) { + 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.Agent.GitIntegrationSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.githubSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; + } + return message; + }; + + /** + * Decodes a GitIntegrationSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} GitIntegrationSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GitIntegrationSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GitIntegrationSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GitIntegrationSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.githubSettings != null && message.hasOwnProperty("githubSettings")) { + properties.gitSettings = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify(message.githubSettings); + if (error) + return "githubSettings." + error; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return null; + }; - /** - * Decodes an UpdateGenerativeSettingsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest} UpdateGenerativeSettingsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateGenerativeSettingsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a GitIntegrationSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} GitIntegrationSettings + */ + GitIntegrationSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings(); + if (object.githubSettings != null) { + if (typeof object.githubSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.githubSettings: object expected"); + message.githubSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.fromObject(object.githubSettings); + } + return message; + }; - /** - * Verifies an UpdateGenerativeSettingsRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateGenerativeSettingsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.generativeSettings != null && message.hasOwnProperty("generativeSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify(message.generativeSettings); - if (error) - return "generativeSettings." + 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 UpdateGenerativeSettingsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest} UpdateGenerativeSettingsRequest - */ - UpdateGenerativeSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest) + /** + * Creates a plain object from a GitIntegrationSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} message GitIntegrationSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GitIntegrationSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.githubSettings != null && message.hasOwnProperty("githubSettings")) { + object.githubSettings = $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.toObject(message.githubSettings, options); + if (options.oneofs) + object.gitSettings = "githubSettings"; + } return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest(); - if (object.generativeSettings != null) { - if (typeof object.generativeSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.generativeSettings: object expected"); - message.generativeSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.fromObject(object.generativeSettings); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + }; - /** - * Creates a plain object from an UpdateGenerativeSettingsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest} message UpdateGenerativeSettingsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateGenerativeSettingsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.generativeSettings = null; - object.updateMask = null; - } - if (message.generativeSettings != null && message.hasOwnProperty("generativeSettings")) - object.generativeSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.toObject(message.generativeSettings, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + /** + * Converts this GitIntegrationSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @instance + * @returns {Object.} JSON object + */ + GitIntegrationSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this UpdateGenerativeSettingsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateGenerativeSettingsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for GitIntegrationSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GitIntegrationSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings"; + }; - /** - * Gets the default type url for UpdateGenerativeSettingsRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateGenerativeSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + GitIntegrationSettings.GithubSettings = (function() { + + /** + * Properties of a GithubSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @interface IGithubSettings + * @property {string|null} [displayName] GithubSettings displayName + * @property {string|null} [repositoryUri] GithubSettings repositoryUri + * @property {string|null} [trackingBranch] GithubSettings trackingBranch + * @property {string|null} [accessToken] GithubSettings accessToken + * @property {Array.|null} [branches] GithubSettings branches + */ + + /** + * Constructs a new GithubSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + * @classdesc Represents a GithubSettings. + * @implements IGithubSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings=} [properties] Properties to set + */ + function GithubSettings(properties) { + this.branches = []; + 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]]; + } + + /** + * GithubSettings displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @instance + */ + GithubSettings.prototype.displayName = ""; + + /** + * GithubSettings repositoryUri. + * @member {string} repositoryUri + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @instance + */ + GithubSettings.prototype.repositoryUri = ""; + + /** + * GithubSettings trackingBranch. + * @member {string} trackingBranch + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @instance + */ + GithubSettings.prototype.trackingBranch = ""; + + /** + * GithubSettings accessToken. + * @member {string} accessToken + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @instance + */ + GithubSettings.prototype.accessToken = ""; + + /** + * GithubSettings branches. + * @member {Array.} branches + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @instance + */ + GithubSettings.prototype.branches = $util.emptyArray; + + /** + * Creates a new GithubSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} GithubSettings instance + */ + GithubSettings.create = function create(properties) { + return new GithubSettings(properties); + }; + + /** + * Encodes the specified GithubSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings} message GithubSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GithubSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.repositoryUri != null && Object.hasOwnProperty.call(message, "repositoryUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.repositoryUri); + if (message.trackingBranch != null && Object.hasOwnProperty.call(message, "trackingBranch")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingBranch); + if (message.accessToken != null && Object.hasOwnProperty.call(message, "accessToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.accessToken); + if (message.branches != null && message.branches.length) + for (var i = 0; i < message.branches.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.branches[i]); + return writer; + }; + + /** + * Encodes the specified GithubSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.IGithubSettings} message GithubSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GithubSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GithubSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @static + * @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.Agent.GitIntegrationSettings.GithubSettings} GithubSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GithubSettings.decode = function decode(reader, length) { + 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.Agent.GitIntegrationSettings.GithubSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.displayName = reader.string(); + break; + } + case 2: { + message.repositoryUri = reader.string(); + break; + } + case 3: { + message.trackingBranch = reader.string(); + break; + } + case 4: { + message.accessToken = reader.string(); + break; + } + case 5: { + if (!(message.branches && message.branches.length)) + message.branches = []; + message.branches.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GithubSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} GithubSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GithubSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GithubSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GithubSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.repositoryUri != null && message.hasOwnProperty("repositoryUri")) + if (!$util.isString(message.repositoryUri)) + return "repositoryUri: string expected"; + if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) + if (!$util.isString(message.trackingBranch)) + return "trackingBranch: string expected"; + if (message.accessToken != null && message.hasOwnProperty("accessToken")) + if (!$util.isString(message.accessToken)) + return "accessToken: string expected"; + if (message.branches != null && message.hasOwnProperty("branches")) { + if (!Array.isArray(message.branches)) + return "branches: array expected"; + for (var i = 0; i < message.branches.length; ++i) + if (!$util.isString(message.branches[i])) + return "branches: string[] expected"; + } + return null; + }; + + /** + * Creates a GithubSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} GithubSettings + */ + GithubSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.repositoryUri != null) + message.repositoryUri = String(object.repositoryUri); + if (object.trackingBranch != null) + message.trackingBranch = String(object.trackingBranch); + if (object.accessToken != null) + message.accessToken = String(object.accessToken); + if (object.branches) { + if (!Array.isArray(object.branches)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.branches: array expected"); + message.branches = []; + for (var i = 0; i < object.branches.length; ++i) + message.branches[i] = String(object.branches[i]); + } + return message; + }; + + /** + * Creates a plain object from a GithubSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} message GithubSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GithubSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.branches = []; + if (options.defaults) { + object.displayName = ""; + object.repositoryUri = ""; + object.trackingBranch = ""; + object.accessToken = ""; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.repositoryUri != null && message.hasOwnProperty("repositoryUri")) + object.repositoryUri = message.repositoryUri; + if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) + object.trackingBranch = message.trackingBranch; + if (message.accessToken != null && message.hasOwnProperty("accessToken")) + object.accessToken = message.accessToken; + if (message.branches && message.branches.length) { + object.branches = []; + for (var j = 0; j < message.branches.length; ++j) + object.branches[j] = message.branches[j]; + } + return object; + }; + + /** + * Converts this GithubSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @instance + * @returns {Object.} JSON object + */ + GithubSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GithubSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GithubSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings"; + }; + + return GithubSettings; + })(); + + return GitIntegrationSettings; + })(); + + Agent.GenAppBuilderSettings = (function() { + + /** + * Properties of a GenAppBuilderSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @interface IGenAppBuilderSettings + * @property {string|null} [engine] GenAppBuilderSettings engine + */ + + /** + * Constructs a new GenAppBuilderSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @classdesc Represents a GenAppBuilderSettings. + * @implements IGenAppBuilderSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings=} [properties] Properties to set + */ + function GenAppBuilderSettings(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 typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest"; - }; - return UpdateGenerativeSettingsRequest; - })(); + /** + * GenAppBuilderSettings engine. + * @member {string} engine + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @instance + */ + GenAppBuilderSettings.prototype.engine = ""; - /** - * AudioEncoding enum. - * @name google.cloud.dialogflow.cx.v3beta1.AudioEncoding - * @enum {number} - * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value - * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value - * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value - * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value - * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value - * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value - * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value - * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value - */ - v3beta1.AudioEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; - values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; - values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; - values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; - values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; - values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; - values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; - return values; - })(); + /** + * Creates a new GenAppBuilderSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings} GenAppBuilderSettings instance + */ + GenAppBuilderSettings.create = function create(properties) { + return new GenAppBuilderSettings(properties); + }; - /** - * SpeechModelVariant enum. - * @name google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant - * @enum {number} - * @property {number} SPEECH_MODEL_VARIANT_UNSPECIFIED=0 SPEECH_MODEL_VARIANT_UNSPECIFIED value - * @property {number} USE_BEST_AVAILABLE=1 USE_BEST_AVAILABLE value - * @property {number} USE_STANDARD=2 USE_STANDARD value - * @property {number} USE_ENHANCED=3 USE_ENHANCED value - */ - v3beta1.SpeechModelVariant = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SPEECH_MODEL_VARIANT_UNSPECIFIED"] = 0; - values[valuesById[1] = "USE_BEST_AVAILABLE"] = 1; - values[valuesById[2] = "USE_STANDARD"] = 2; - values[valuesById[3] = "USE_ENHANCED"] = 3; - return values; + /** + * Encodes the specified GenAppBuilderSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings} message GenAppBuilderSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenAppBuilderSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.engine != null && Object.hasOwnProperty.call(message, "engine")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.engine); + return writer; + }; + + /** + * Encodes the specified GenAppBuilderSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.IGenAppBuilderSettings} message GenAppBuilderSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenAppBuilderSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenAppBuilderSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @static + * @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.Agent.GenAppBuilderSettings} GenAppBuilderSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenAppBuilderSettings.decode = function decode(reader, length) { + 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.Agent.GenAppBuilderSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.engine = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenAppBuilderSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings} GenAppBuilderSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenAppBuilderSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenAppBuilderSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenAppBuilderSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.engine != null && message.hasOwnProperty("engine")) + if (!$util.isString(message.engine)) + return "engine: string expected"; + return null; + }; + + /** + * Creates a GenAppBuilderSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings} GenAppBuilderSettings + */ + GenAppBuilderSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings(); + if (object.engine != null) + message.engine = String(object.engine); + return message; + }; + + /** + * Creates a plain object from a GenAppBuilderSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings} message GenAppBuilderSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenAppBuilderSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.engine = ""; + if (message.engine != null && message.hasOwnProperty("engine")) + object.engine = message.engine; + return object; + }; + + /** + * Converts this GenAppBuilderSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @instance + * @returns {Object.} JSON object + */ + GenAppBuilderSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenAppBuilderSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenAppBuilderSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Agent.GenAppBuilderSettings"; + }; + + return GenAppBuilderSettings; + })(); + + return Agent; })(); - v3beta1.SpeechWordInfo = (function() { + v3beta1.ListAgentsRequest = (function() { /** - * Properties of a SpeechWordInfo. + * Properties of a ListAgentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISpeechWordInfo - * @property {string|null} [word] SpeechWordInfo word - * @property {google.protobuf.IDuration|null} [startOffset] SpeechWordInfo startOffset - * @property {google.protobuf.IDuration|null} [endOffset] SpeechWordInfo endOffset - * @property {number|null} [confidence] SpeechWordInfo confidence + * @interface IListAgentsRequest + * @property {string|null} [parent] ListAgentsRequest parent + * @property {number|null} [pageSize] ListAgentsRequest pageSize + * @property {string|null} [pageToken] ListAgentsRequest pageToken */ /** - * Constructs a new SpeechWordInfo. + * Constructs a new ListAgentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SpeechWordInfo. - * @implements ISpeechWordInfo + * @classdesc Represents a ListAgentsRequest. + * @implements IListAgentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest=} [properties] Properties to set */ - function SpeechWordInfo(properties) { + function ListAgentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84007,117 +83050,103 @@ } /** - * SpeechWordInfo word. - * @member {string} word - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.word = ""; - - /** - * SpeechWordInfo startOffset. - * @member {google.protobuf.IDuration|null|undefined} startOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * ListAgentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @instance */ - SpeechWordInfo.prototype.startOffset = null; + ListAgentsRequest.prototype.parent = ""; /** - * SpeechWordInfo endOffset. - * @member {google.protobuf.IDuration|null|undefined} endOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * ListAgentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @instance */ - SpeechWordInfo.prototype.endOffset = null; + ListAgentsRequest.prototype.pageSize = 0; /** - * SpeechWordInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * ListAgentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @instance */ - SpeechWordInfo.prototype.confidence = 0; + ListAgentsRequest.prototype.pageToken = ""; /** - * Creates a new SpeechWordInfo instance using the specified properties. + * Creates a new ListAgentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest instance */ - SpeechWordInfo.create = function create(properties) { - return new SpeechWordInfo(properties); + ListAgentsRequest.create = function create(properties) { + return new ListAgentsRequest(properties); }; /** - * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} message ListAgentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SpeechWordInfo.encode = function encode(message, writer) { + ListAgentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startOffset != null && Object.hasOwnProperty.call(message, "startOffset")) - $root.google.protobuf.Duration.encode(message.startOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endOffset != null && Object.hasOwnProperty.call(message, "endOffset")) - $root.google.protobuf.Duration.encode(message.endOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.word != null && Object.hasOwnProperty.call(message, "word")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.word); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); + 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 SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} message ListAgentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { + ListAgentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer. + * Decodes a ListAgentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @static * @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.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SpeechWordInfo.decode = function decode(reader, length) { + ListAgentsRequest.decode = function decode(reader, length) { 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.SpeechWordInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.word = reader.string(); - break; - } case 1: { - message.startOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } - case 4: { - message.confidence = reader.float(); + case 3: { + message.pageToken = reader.string(); break; } default: @@ -84129,164 +83158,141 @@ }; /** - * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. + * Decodes a ListAgentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SpeechWordInfo.decodeDelimited = function decodeDelimited(reader) { + ListAgentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SpeechWordInfo message. + * Verifies a ListAgentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SpeechWordInfo.verify = function verify(message) { + ListAgentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.word != null && message.hasOwnProperty("word")) - if (!$util.isString(message.word)) - return "word: string expected"; - if (message.startOffset != null && message.hasOwnProperty("startOffset")) { - var error = $root.google.protobuf.Duration.verify(message.startOffset); - if (error) - return "startOffset." + error; - } - if (message.endOffset != null && message.hasOwnProperty("endOffset")) { - var error = $root.google.protobuf.Duration.verify(message.endOffset); - if (error) - return "endOffset." + error; - } - if (message.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number 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 SpeechWordInfo message from a plain object. Also converts values to their respective internal types. + * Creates a ListAgentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest */ - SpeechWordInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo) + ListAgentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo(); - if (object.word != null) - message.word = String(object.word); - if (object.startOffset != null) { - if (typeof object.startOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.startOffset: object expected"); - message.startOffset = $root.google.protobuf.Duration.fromObject(object.startOffset); - } - if (object.endOffset != null) { - if (typeof object.endOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.endOffset: object expected"); - message.endOffset = $root.google.protobuf.Duration.fromObject(object.endOffset); - } - if (object.confidence != null) - message.confidence = Number(object.confidence); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest(); + 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 SpeechWordInfo message. Also converts values to other types if specified. + * Creates a plain object from a ListAgentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} message SpeechWordInfo + * @param {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} message ListAgentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SpeechWordInfo.toObject = function toObject(message, options) { + ListAgentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.startOffset = null; - object.endOffset = null; - object.word = ""; - object.confidence = 0; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.startOffset != null && message.hasOwnProperty("startOffset")) - object.startOffset = $root.google.protobuf.Duration.toObject(message.startOffset, options); - if (message.endOffset != null && message.hasOwnProperty("endOffset")) - object.endOffset = $root.google.protobuf.Duration.toObject(message.endOffset, options); - if (message.word != null && message.hasOwnProperty("word")) - object.word = message.word; - if (message.confidence != null && message.hasOwnProperty("confidence")) - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + 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 SpeechWordInfo to JSON. + * Converts this ListAgentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @instance * @returns {Object.} JSON object */ - SpeechWordInfo.prototype.toJSON = function toJSON() { + ListAgentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SpeechWordInfo + * Gets the default type url for ListAgentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SpeechWordInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListAgentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest"; }; - return SpeechWordInfo; + return ListAgentsRequest; })(); - v3beta1.InputAudioConfig = (function() { + v3beta1.ListAgentsResponse = (function() { /** - * Properties of an InputAudioConfig. + * Properties of a ListAgentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IInputAudioConfig - * @property {google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null} [audioEncoding] InputAudioConfig audioEncoding - * @property {number|null} [sampleRateHertz] InputAudioConfig sampleRateHertz - * @property {boolean|null} [enableWordInfo] InputAudioConfig enableWordInfo - * @property {Array.|null} [phraseHints] InputAudioConfig phraseHints - * @property {string|null} [model] InputAudioConfig model - * @property {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null} [modelVariant] InputAudioConfig modelVariant - * @property {boolean|null} [singleUtterance] InputAudioConfig singleUtterance + * @interface IListAgentsResponse + * @property {Array.|null} [agents] ListAgentsResponse agents + * @property {string|null} [nextPageToken] ListAgentsResponse nextPageToken */ /** - * Constructs a new InputAudioConfig. + * Constructs a new ListAgentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an InputAudioConfig. - * @implements IInputAudioConfig + * @classdesc Represents a ListAgentsResponse. + * @implements IListAgentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse=} [properties] Properties to set */ - function InputAudioConfig(properties) { - this.phraseHints = []; + function ListAgentsResponse(properties) { + this.agents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84294,162 +83300,92 @@ } /** - * InputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3beta1.AudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * ListAgentsResponse agents. + * @member {Array.} agents + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse * @instance */ - InputAudioConfig.prototype.audioEncoding = 0; + ListAgentsResponse.prototype.agents = $util.emptyArray; /** - * InputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * ListAgentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse * @instance */ - InputAudioConfig.prototype.sampleRateHertz = 0; + ListAgentsResponse.prototype.nextPageToken = ""; /** - * InputAudioConfig enableWordInfo. - * @member {boolean} enableWordInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance + * Creates a new ListAgentsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse instance */ - InputAudioConfig.prototype.enableWordInfo = false; + ListAgentsResponse.create = function create(properties) { + return new ListAgentsResponse(properties); + }; /** - * InputAudioConfig phraseHints. - * @member {Array.} phraseHints - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance + * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse} message ListAgentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - InputAudioConfig.prototype.phraseHints = $util.emptyArray; + ListAgentsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.agents != null && message.agents.length) + for (var i = 0; i < message.agents.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Agent.encode(message.agents[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; + }; /** - * InputAudioConfig model. - * @member {string} model - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance + * Encodes the specified ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse} message ListAgentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - InputAudioConfig.prototype.model = ""; + ListAgentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * InputAudioConfig modelVariant. - * @member {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant} modelVariant - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.modelVariant = 0; - - /** - * InputAudioConfig singleUtterance. - * @member {boolean} singleUtterance - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.singleUtterance = false; - - /** - * Creates a new InputAudioConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig instance - */ - InputAudioConfig.create = function create(properties) { - return new InputAudioConfig(properties); - }; - - /** - * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputAudioConfig.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.phraseHints != null && message.phraseHints.length) - for (var i = 0; i < message.phraseHints.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.phraseHints[i]); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.model); - if (message.singleUtterance != null && Object.hasOwnProperty.call(message, "singleUtterance")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.singleUtterance); - if (message.modelVariant != null && Object.hasOwnProperty.call(message, "modelVariant")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.modelVariant); - if (message.enableWordInfo != null && Object.hasOwnProperty.call(message, "enableWordInfo")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.enableWordInfo); - return writer; - }; - - /** - * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InputAudioConfig message from the specified reader or buffer. + * Decodes a ListAgentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse * @static * @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.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputAudioConfig.decode = function decode(reader, length) { + ListAgentsResponse.decode = function decode(reader, length) { 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.InputAudioConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.audioEncoding = reader.int32(); + if (!(message.agents && message.agents.length)) + message.agents = []; + message.agents.push($root.google.cloud.dialogflow.cx.v3beta1.Agent.decode(reader, reader.uint32())); break; } case 2: { - message.sampleRateHertz = reader.int32(); - break; - } - case 13: { - message.enableWordInfo = reader.bool(); - break; - } - case 4: { - if (!(message.phraseHints && message.phraseHints.length)) - message.phraseHints = []; - message.phraseHints.push(reader.string()); - break; - } - case 7: { - message.model = reader.string(); - break; - } - case 10: { - message.modelVariant = reader.int32(); - break; - } - case 8: { - message.singleUtterance = reader.bool(); + message.nextPageToken = reader.string(); break; } default: @@ -84461,281 +83397,148 @@ }; /** - * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a ListAgentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputAudioConfig.decodeDelimited = function decodeDelimited(reader) { + ListAgentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InputAudioConfig message. + * Verifies a ListAgentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InputAudioConfig.verify = function verify(message) { + ListAgentsResponse.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 3: - case 4: - case 5: - case 6: - case 7: - break; + if (message.agents != null && message.hasOwnProperty("agents")) { + if (!Array.isArray(message.agents)) + return "agents: array expected"; + for (var i = 0; i < message.agents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.verify(message.agents[i]); + if (error) + return "agents." + error; } - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - if (!$util.isInteger(message.sampleRateHertz)) - return "sampleRateHertz: integer expected"; - if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) - if (typeof message.enableWordInfo !== "boolean") - return "enableWordInfo: boolean expected"; - if (message.phraseHints != null && message.hasOwnProperty("phraseHints")) { - if (!Array.isArray(message.phraseHints)) - return "phraseHints: array expected"; - for (var i = 0; i < message.phraseHints.length; ++i) - if (!$util.isString(message.phraseHints[i])) - return "phraseHints: string[] expected"; } - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) - switch (message.modelVariant) { - default: - return "modelVariant: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) - if (typeof message.singleUtterance !== "boolean") - return "singleUtterance: boolean expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an InputAudioConfig 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse */ - InputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig) + ListAgentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(); - switch (object.audioEncoding) { - default: - if (typeof object.audioEncoding === "number") { - message.audioEncoding = object.audioEncoding; - break; - } - break; - case "AUDIO_ENCODING_UNSPECIFIED": - case 0: - message.audioEncoding = 0; - break; - case "AUDIO_ENCODING_LINEAR_16": - case 1: - message.audioEncoding = 1; - break; - case "AUDIO_ENCODING_FLAC": - case 2: - message.audioEncoding = 2; - break; - case "AUDIO_ENCODING_MULAW": - case 3: - message.audioEncoding = 3; - break; - case "AUDIO_ENCODING_AMR": - case 4: - message.audioEncoding = 4; - break; - case "AUDIO_ENCODING_AMR_WB": - case 5: - message.audioEncoding = 5; - break; - case "AUDIO_ENCODING_OGG_OPUS": - case 6: - message.audioEncoding = 6; - break; - case "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": - case 7: - message.audioEncoding = 7; - break; - } - if (object.sampleRateHertz != null) - message.sampleRateHertz = object.sampleRateHertz | 0; - if (object.enableWordInfo != null) - message.enableWordInfo = Boolean(object.enableWordInfo); - if (object.phraseHints) { - if (!Array.isArray(object.phraseHints)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.phraseHints: array expected"); - message.phraseHints = []; - for (var i = 0; i < object.phraseHints.length; ++i) - message.phraseHints[i] = String(object.phraseHints[i]); - } - if (object.model != null) - message.model = String(object.model); - switch (object.modelVariant) { - default: - if (typeof object.modelVariant === "number") { - message.modelVariant = object.modelVariant; - break; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse(); + if (object.agents) { + if (!Array.isArray(object.agents)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.agents: array expected"); + message.agents = []; + for (var i = 0; i < object.agents.length; ++i) { + if (typeof object.agents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.agents: object expected"); + message.agents[i] = $root.google.cloud.dialogflow.cx.v3beta1.Agent.fromObject(object.agents[i]); } - break; - case "SPEECH_MODEL_VARIANT_UNSPECIFIED": - case 0: - message.modelVariant = 0; - break; - case "USE_BEST_AVAILABLE": - case 1: - message.modelVariant = 1; - break; - case "USE_STANDARD": - case 2: - message.modelVariant = 2; - break; - case "USE_ENHANCED": - case 3: - message.modelVariant = 3; - break; } - if (object.singleUtterance != null) - message.singleUtterance = Boolean(object.singleUtterance); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListAgentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} message InputAudioConfig + * @param {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} message ListAgentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InputAudioConfig.toObject = function toObject(message, options) { + ListAgentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.phraseHints = []; - if (options.defaults) { - object.audioEncoding = options.enums === String ? "AUDIO_ENCODING_UNSPECIFIED" : 0; - object.sampleRateHertz = 0; - object.model = ""; - object.singleUtterance = false; - object.modelVariant = options.enums === String ? "SPEECH_MODEL_VARIANT_UNSPECIFIED" : 0; - object.enableWordInfo = false; - } - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.AudioEncoding[message.audioEncoding] === undefined ? message.audioEncoding : $root.google.cloud.dialogflow.cx.v3beta1.AudioEncoding[message.audioEncoding] : message.audioEncoding; - if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) - object.sampleRateHertz = message.sampleRateHertz; - if (message.phraseHints && message.phraseHints.length) { - object.phraseHints = []; - for (var j = 0; j < message.phraseHints.length; ++j) - object.phraseHints[j] = message.phraseHints[j]; + object.agents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.agents && message.agents.length) { + object.agents = []; + for (var j = 0; j < message.agents.length; ++j) + object.agents[j] = $root.google.cloud.dialogflow.cx.v3beta1.Agent.toObject(message.agents[j], options); } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) - object.singleUtterance = message.singleUtterance; - if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) - object.modelVariant = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant[message.modelVariant] === undefined ? message.modelVariant : $root.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant[message.modelVariant] : message.modelVariant; - if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) - object.enableWordInfo = message.enableWordInfo; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this InputAudioConfig to JSON. + * Converts this ListAgentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse * @instance * @returns {Object.} JSON object */ - InputAudioConfig.prototype.toJSON = function toJSON() { + ListAgentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InputAudioConfig + * Gets the default type url for ListAgentsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListAgentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.InputAudioConfig"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse"; }; - return InputAudioConfig; - })(); - - /** - * 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; + return ListAgentsResponse; })(); - v3beta1.VoiceSelectionParams = (function() { + v3beta1.GetAgentRequest = (function() { /** - * Properties of a VoiceSelectionParams. + * Properties of a GetAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IVoiceSelectionParams - * @property {string|null} [name] VoiceSelectionParams name - * @property {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender + * @interface IGetAgentRequest + * @property {string|null} [name] GetAgentRequest name */ /** - * Constructs a new VoiceSelectionParams. + * Constructs a new GetAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a VoiceSelectionParams. - * @implements IVoiceSelectionParams + * @classdesc Represents a GetAgentRequest. + * @implements IGetAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest=} [properties] Properties to set */ - function VoiceSelectionParams(properties) { + function GetAgentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84743,80 +83546,70 @@ } /** - * VoiceSelectionParams name. + * GetAgentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams - * @instance - */ - VoiceSelectionParams.prototype.name = ""; - - /** - * VoiceSelectionParams ssmlGender. - * @member {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender} ssmlGender - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @instance */ - VoiceSelectionParams.prototype.ssmlGender = 0; + GetAgentRequest.prototype.name = ""; /** - * Creates a new VoiceSelectionParams instance using the specified properties. + * Creates a new GetAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest instance */ - VoiceSelectionParams.create = function create(properties) { - return new VoiceSelectionParams(properties); + GetAgentRequest.create = function create(properties) { + return new GetAgentRequest(properties); }; /** - * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} message GetAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VoiceSelectionParams.encode = function encode(message, writer) { + GetAgentRequest.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.ssmlGender != null && Object.hasOwnProperty.call(message, "ssmlGender")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssmlGender); return writer; }; /** - * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} message GetAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { + GetAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer. + * Decodes a GetAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @static * @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.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VoiceSelectionParams.decode = function decode(reader, length) { + GetAgentRequest.decode = function decode(reader, length) { 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.VoiceSelectionParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84824,10 +83617,6 @@ message.name = reader.string(); break; } - case 2: { - message.ssmlGender = reader.int32(); - break; - } default: reader.skipType(tag & 7); break; @@ -84837,165 +83626,123 @@ }; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. + * Decodes a GetAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VoiceSelectionParams.decodeDelimited = function decodeDelimited(reader) { + GetAgentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VoiceSelectionParams message. + * Verifies a GetAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VoiceSelectionParams.verify = function verify(message) { + GetAgentRequest.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.ssmlGender != null && message.hasOwnProperty("ssmlGender")) - switch (message.ssmlGender) { - default: - return "ssmlGender: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } return null; }; /** - * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. + * Creates a GetAgentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest */ - VoiceSelectionParams.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams) + GetAgentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest(); if (object.name != null) message.name = String(object.name); - switch (object.ssmlGender) { - default: - if (typeof object.ssmlGender === "number") { - message.ssmlGender = object.ssmlGender; - break; - } - break; - case "SSML_VOICE_GENDER_UNSPECIFIED": - case 0: - message.ssmlGender = 0; - break; - case "SSML_VOICE_GENDER_MALE": - case 1: - message.ssmlGender = 1; - break; - case "SSML_VOICE_GENDER_FEMALE": - case 2: - message.ssmlGender = 2; - break; - case "SSML_VOICE_GENDER_NEUTRAL": - case 3: - message.ssmlGender = 3; - break; - } return message; }; /** - * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. + * Creates a plain object from a GetAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} message VoiceSelectionParams + * @param {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} message GetAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VoiceSelectionParams.toObject = function toObject(message, options) { + GetAgentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.ssmlGender = options.enums === String ? "SSML_VOICE_GENDER_UNSPECIFIED" : 0; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) - object.ssmlGender = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender[message.ssmlGender] === undefined ? message.ssmlGender : $root.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; return object; }; /** - * Converts this VoiceSelectionParams to JSON. + * Converts this GetAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @instance * @returns {Object.} JSON object */ - VoiceSelectionParams.prototype.toJSON = function toJSON() { + GetAgentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VoiceSelectionParams + * Gets the default type url for GetAgentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VoiceSelectionParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetAgentRequest"; }; - return VoiceSelectionParams; + return GetAgentRequest; })(); - v3beta1.SynthesizeSpeechConfig = (function() { + v3beta1.CreateAgentRequest = (function() { /** - * Properties of a SynthesizeSpeechConfig. + * Properties of a CreateAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISynthesizeSpeechConfig - * @property {number|null} [speakingRate] SynthesizeSpeechConfig speakingRate - * @property {number|null} [pitch] SynthesizeSpeechConfig pitch - * @property {number|null} [volumeGainDb] SynthesizeSpeechConfig volumeGainDb - * @property {Array.|null} [effectsProfileId] SynthesizeSpeechConfig effectsProfileId - * @property {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null} [voice] SynthesizeSpeechConfig voice + * @interface ICreateAgentRequest + * @property {string|null} [parent] CreateAgentRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IAgent|null} [agent] CreateAgentRequest agent */ /** - * Constructs a new SynthesizeSpeechConfig. + * Constructs a new CreateAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SynthesizeSpeechConfig. - * @implements ISynthesizeSpeechConfig + * @classdesc Represents a CreateAgentRequest. + * @implements ICreateAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest=} [properties] Properties to set */ - function SynthesizeSpeechConfig(properties) { - this.effectsProfileId = []; + function CreateAgentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85003,134 +83750,89 @@ } /** - * SynthesizeSpeechConfig speakingRate. - * @member {number} speakingRate - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig - * @instance - */ - SynthesizeSpeechConfig.prototype.speakingRate = 0; - - /** - * SynthesizeSpeechConfig pitch. - * @member {number} pitch - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig - * @instance - */ - SynthesizeSpeechConfig.prototype.pitch = 0; - - /** - * SynthesizeSpeechConfig volumeGainDb. - * @member {number} volumeGainDb - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig - * @instance - */ - SynthesizeSpeechConfig.prototype.volumeGainDb = 0; - - /** - * SynthesizeSpeechConfig effectsProfileId. - * @member {Array.} effectsProfileId - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * CreateAgentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @instance */ - SynthesizeSpeechConfig.prototype.effectsProfileId = $util.emptyArray; + CreateAgentRequest.prototype.parent = ""; /** - * SynthesizeSpeechConfig voice. - * @member {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null|undefined} voice - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * CreateAgentRequest agent. + * @member {google.cloud.dialogflow.cx.v3beta1.IAgent|null|undefined} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @instance */ - SynthesizeSpeechConfig.prototype.voice = null; + CreateAgentRequest.prototype.agent = null; /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. + * Creates a new CreateAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest instance */ - SynthesizeSpeechConfig.create = function create(properties) { - return new SynthesizeSpeechConfig(properties); + CreateAgentRequest.create = function create(properties) { + return new CreateAgentRequest(properties); }; /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * Encodes the specified CreateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} message CreateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SynthesizeSpeechConfig.encode = function encode(message, writer) { + CreateAgentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.speakingRate != null && Object.hasOwnProperty.call(message, "speakingRate")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.speakingRate); - if (message.pitch != null && Object.hasOwnProperty.call(message, "pitch")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.pitch); - if (message.volumeGainDb != null && Object.hasOwnProperty.call(message, "volumeGainDb")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.volumeGainDb); - if (message.voice != null && Object.hasOwnProperty.call(message, "voice")) - $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.encode(message.voice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.effectsProfileId != null && message.effectsProfileId.length) - for (var i = 0; i < message.effectsProfileId.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.effectsProfileId[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + $root.google.cloud.dialogflow.cx.v3beta1.Agent.encode(message.agent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * Encodes the specified CreateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} message CreateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { + CreateAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. + * Decodes a CreateAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @static * @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.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SynthesizeSpeechConfig.decode = function decode(reader, length) { + CreateAgentRequest.decode = function decode(reader, length) { 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.SynthesizeSpeechConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.speakingRate = reader.double(); + message.parent = reader.string(); break; } case 2: { - message.pitch = reader.double(); - break; - } - case 3: { - message.volumeGainDb = reader.double(); - break; - } - case 5: { - if (!(message.effectsProfileId && message.effectsProfileId.length)) - message.effectsProfileId = []; - message.effectsProfileId.push(reader.string()); - break; - } - case 4: { - message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.decode(reader, reader.uint32()); + message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.decode(reader, reader.uint32()); break; } default: @@ -85142,197 +83844,137 @@ }; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. + * Decodes a CreateAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SynthesizeSpeechConfig.decodeDelimited = function decodeDelimited(reader) { + CreateAgentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SynthesizeSpeechConfig message. + * Verifies a CreateAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SynthesizeSpeechConfig.verify = function verify(message) { + CreateAgentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) - if (typeof message.speakingRate !== "number") - return "speakingRate: number expected"; - if (message.pitch != null && message.hasOwnProperty("pitch")) - if (typeof message.pitch !== "number") - return "pitch: number expected"; - if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) - if (typeof message.volumeGainDb !== "number") - return "volumeGainDb: number expected"; - if (message.effectsProfileId != null && message.hasOwnProperty("effectsProfileId")) { - if (!Array.isArray(message.effectsProfileId)) - return "effectsProfileId: array expected"; - for (var i = 0; i < message.effectsProfileId.length; ++i) - if (!$util.isString(message.effectsProfileId[i])) - return "effectsProfileId: string[] expected"; - } - if (message.voice != null && message.hasOwnProperty("voice")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify(message.voice); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.agent != null && message.hasOwnProperty("agent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.verify(message.agent); if (error) - return "voice." + error; + return "agent." + error; } return null; }; /** - * Creates a SynthesizeSpeechConfig 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest */ - SynthesizeSpeechConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig) + CreateAgentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(); - if (object.speakingRate != null) - message.speakingRate = Number(object.speakingRate); - if (object.pitch != null) - message.pitch = Number(object.pitch); - if (object.volumeGainDb != null) - message.volumeGainDb = Number(object.volumeGainDb); - if (object.effectsProfileId) { - if (!Array.isArray(object.effectsProfileId)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.effectsProfileId: array expected"); - message.effectsProfileId = []; - for (var i = 0; i < object.effectsProfileId.length; ++i) - message.effectsProfileId[i] = String(object.effectsProfileId[i]); - } - if (object.voice != null) { - if (typeof object.voice !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.voice: object expected"); - message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.fromObject(object.voice); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.agent != null) { + if (typeof object.agent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.agent: object expected"); + message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.fromObject(object.agent); } return message; }; /** - * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. + * Creates a plain object from a CreateAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} message SynthesizeSpeechConfig + * @param {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} message CreateAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SynthesizeSpeechConfig.toObject = function toObject(message, options) { + CreateAgentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.effectsProfileId = []; if (options.defaults) { - object.speakingRate = 0; - object.pitch = 0; - object.volumeGainDb = 0; - object.voice = null; - } - if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) - object.speakingRate = options.json && !isFinite(message.speakingRate) ? String(message.speakingRate) : message.speakingRate; - if (message.pitch != null && message.hasOwnProperty("pitch")) - object.pitch = options.json && !isFinite(message.pitch) ? String(message.pitch) : message.pitch; - if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) - object.volumeGainDb = options.json && !isFinite(message.volumeGainDb) ? String(message.volumeGainDb) : message.volumeGainDb; - if (message.voice != null && message.hasOwnProperty("voice")) - object.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.toObject(message.voice, options); - if (message.effectsProfileId && message.effectsProfileId.length) { - object.effectsProfileId = []; - for (var j = 0; j < message.effectsProfileId.length; ++j) - object.effectsProfileId[j] = message.effectsProfileId[j]; + object.parent = ""; + object.agent = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.toObject(message.agent, options); return object; }; /** - * Converts this SynthesizeSpeechConfig to JSON. + * Converts this CreateAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @instance * @returns {Object.} JSON object */ - SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { + CreateAgentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SynthesizeSpeechConfig + * Gets the default type url for CreateAgentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SynthesizeSpeechConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest"; }; - return SynthesizeSpeechConfig; - })(); - - /** - * 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; + return CreateAgentRequest; })(); - v3beta1.OutputAudioConfig = (function() { + v3beta1.UpdateAgentRequest = (function() { /** - * Properties of an OutputAudioConfig. + * Properties of an UpdateAgentRequest. * @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 IUpdateAgentRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IAgent|null} [agent] UpdateAgentRequest agent + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAgentRequest updateMask */ /** - * Constructs a new OutputAudioConfig. + * Constructs a new UpdateAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an OutputAudioConfig. - * @implements IOutputAudioConfig + * @classdesc Represents an UpdateAgentRequest. + * @implements IUpdateAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest=} [properties] Properties to set */ - function OutputAudioConfig(properties) { + function UpdateAgentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85340,103 +83982,89 @@ } /** - * 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 + * UpdateAgentRequest agent. + * @member {google.cloud.dialogflow.cx.v3beta1.IAgent|null|undefined} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @instance */ - OutputAudioConfig.prototype.sampleRateHertz = 0; + UpdateAgentRequest.prototype.agent = null; /** - * OutputAudioConfig synthesizeSpeechConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * UpdateAgentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @instance */ - OutputAudioConfig.prototype.synthesizeSpeechConfig = null; + UpdateAgentRequest.prototype.updateMask = null; /** - * Creates a new OutputAudioConfig instance using the specified properties. + * Creates a new UpdateAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @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.IUpdateAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} UpdateAgentRequest instance */ - OutputAudioConfig.create = function create(properties) { - return new OutputAudioConfig(properties); + UpdateAgentRequest.create = function create(properties) { + return new UpdateAgentRequest(properties); }; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified UpdateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} message UpdateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputAudioConfig.encode = function encode(message, writer) { + UpdateAgentRequest.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.agent != null && Object.hasOwnProperty.call(message, "agent")) + $root.google.cloud.dialogflow.cx.v3beta1.Agent.encode(message.agent, 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 OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified UpdateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} message UpdateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer. + * Decodes an UpdateAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @static * @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.UpdateAgentRequest} UpdateAgentRequest * @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) { + UpdateAgentRequest.decode = function decode(reader, length) { 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.UpdateAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.audioEncoding = reader.int32(); + message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.decode(reader, reader.uint32()); break; } case 2: { - message.sampleRateHertz = reader.int32(); - break; - } - case 3: { - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -85448,184 +84076,141 @@ }; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @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.UpdateAgentRequest} UpdateAgentRequest * @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) { + UpdateAgentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OutputAudioConfig message. + * Verifies an UpdateAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @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) { + UpdateAgentRequest.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 (message.agent != null && message.hasOwnProperty("agent")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.verify(message.agent); if (error) - return "synthesizeSpeechConfig." + error; + return "agent." + 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 OutputAudioConfig 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} UpdateAgentRequest */ - OutputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig) + UpdateAgentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); - switch (object.audioEncoding) { - default: - if (typeof object.audioEncoding === "number") { - message.audioEncoding = object.audioEncoding; - break; - } - break; - 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; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest(); + if (object.agent != null) { + if (typeof object.agent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.agent: object expected"); + message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.fromObject(object.agent); } - 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.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. + * Creates a plain object from an UpdateAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} message OutputAudioConfig + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} message UpdateAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OutputAudioConfig.toObject = function toObject(message, options) { + UpdateAgentRequest.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; + object.agent = null; + object.updateMask = null; } - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding[message.audioEncoding] === undefined ? message.audioEncoding : $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.agent != null && message.hasOwnProperty("agent")) + object.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.toObject(message.agent, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this UpdateAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @instance * @returns {Object.} JSON object */ - OutputAudioConfig.prototype.toJSON = function toJSON() { + UpdateAgentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OutputAudioConfig + * Gets the default type url for UpdateAgentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OutputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest"; }; - return OutputAudioConfig; + return UpdateAgentRequest; })(); - v3beta1.TextToSpeechSettings = (function() { + v3beta1.DeleteAgentRequest = (function() { /** - * Properties of a TextToSpeechSettings. + * Properties of a DeleteAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITextToSpeechSettings - * @property {Object.|null} [synthesizeSpeechConfigs] TextToSpeechSettings synthesizeSpeechConfigs + * @interface IDeleteAgentRequest + * @property {string|null} [name] DeleteAgentRequest name */ /** - * Constructs a new TextToSpeechSettings. + * Constructs a new DeleteAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TextToSpeechSettings. - * @implements ITextToSpeechSettings + * @classdesc Represents a DeleteAgentRequest. + * @implements IDeleteAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest=} [properties] Properties to set */ - function TextToSpeechSettings(properties) { - this.synthesizeSpeechConfigs = {}; + function DeleteAgentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85633,97 +84218,75 @@ } /** - * TextToSpeechSettings synthesizeSpeechConfigs. - * @member {Object.} synthesizeSpeechConfigs - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * DeleteAgentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @instance */ - TextToSpeechSettings.prototype.synthesizeSpeechConfigs = $util.emptyObject; + DeleteAgentRequest.prototype.name = ""; /** - * Creates a new TextToSpeechSettings instance using the specified properties. + * Creates a new DeleteAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest instance */ - TextToSpeechSettings.create = function create(properties) { - return new TextToSpeechSettings(properties); + DeleteAgentRequest.create = function create(properties) { + return new DeleteAgentRequest(properties); }; /** - * Encodes the specified TextToSpeechSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. + * Encodes the specified DeleteAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings} message TextToSpeechSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} message DeleteAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextToSpeechSettings.encode = function encode(message, writer) { + DeleteAgentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.synthesizeSpeechConfigs != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfigs")) - for (var keys = Object.keys(message.synthesizeSpeechConfigs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().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 TextToSpeechSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. + * Encodes the specified DeleteAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings} message TextToSpeechSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} message DeleteAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TextToSpeechSettings.encodeDelimited = function encodeDelimited(message, writer) { + DeleteAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TextToSpeechSettings message from the specified reader or buffer. + * Decodes a DeleteAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @static * @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.TextToSpeechSettings} TextToSpeechSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextToSpeechSettings.decode = function decode(reader, length) { + DeleteAgentRequest.decode = function decode(reader, length) { 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.TextToSpeechSettings(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (message.synthesizeSpeechConfigs === $util.emptyObject) - message.synthesizeSpeechConfigs = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.synthesizeSpeechConfigs[key] = value; + message.name = reader.string(); break; } default: @@ -85735,612 +84298,273 @@ }; /** - * Decodes a TextToSpeechSettings message from the specified reader or buffer, length delimited. + * Decodes a DeleteAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TextToSpeechSettings.decodeDelimited = function decodeDelimited(reader) { + DeleteAgentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TextToSpeechSettings message. + * Verifies a DeleteAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TextToSpeechSettings.verify = function verify(message) { + DeleteAgentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.synthesizeSpeechConfigs != null && message.hasOwnProperty("synthesizeSpeechConfigs")) { - if (!$util.isObject(message.synthesizeSpeechConfigs)) - return "synthesizeSpeechConfigs: object expected"; - var key = Object.keys(message.synthesizeSpeechConfigs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfigs[key[i]]); - if (error) - return "synthesizeSpeechConfigs." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a TextToSpeechSettings message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteAgentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest */ - TextToSpeechSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings) + DeleteAgentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings(); - if (object.synthesizeSpeechConfigs) { - if (typeof object.synthesizeSpeechConfigs !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.synthesizeSpeechConfigs: object expected"); - message.synthesizeSpeechConfigs = {}; - for (var keys = Object.keys(object.synthesizeSpeechConfigs), i = 0; i < keys.length; ++i) { - if (typeof object.synthesizeSpeechConfigs[keys[i]] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.synthesizeSpeechConfigs: object expected"); - message.synthesizeSpeechConfigs[keys[i]] = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfigs[keys[i]]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a TextToSpeechSettings message. Also converts values to other types if specified. + * Creates a plain object from a DeleteAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} message TextToSpeechSettings + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} message DeleteAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TextToSpeechSettings.toObject = function toObject(message, options) { + DeleteAgentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.synthesizeSpeechConfigs = {}; - var keys2; - if (message.synthesizeSpeechConfigs && (keys2 = Object.keys(message.synthesizeSpeechConfigs)).length) { - object.synthesizeSpeechConfigs = {}; - for (var j = 0; j < keys2.length; ++j) - object.synthesizeSpeechConfigs[keys2[j]] = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfigs[keys2[j]], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this TextToSpeechSettings to JSON. + * Converts this DeleteAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @instance * @returns {Object.} JSON object */ - TextToSpeechSettings.prototype.toJSON = function toJSON() { + DeleteAgentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TextToSpeechSettings + * Gets the default type url for DeleteAgentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TextToSpeechSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest"; }; - return TextToSpeechSettings; + return DeleteAgentRequest; })(); - v3beta1.Flows = (function() { + v3beta1.ExportAgentRequest = (function() { /** - * Constructs a new Flows service. + * Properties of an ExportAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Flows - * @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 Flows(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Flows.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Flows; - - /** - * Creates new Flows service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @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 {Flows} RPC service. Useful where requests and/or responses are streamed. - */ - Flows.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|createFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef CreateFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow - */ - - /** - * Calls CreateFlow. - * @function createFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback} callback Node-style callback called with the error, if any, and Flow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.createFlow = function createFlow(request, callback) { - return this.rpcCall(createFlow, $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); - }, "name", { value: "CreateFlow" }); - - /** - * Calls CreateFlow. - * @function createFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|deleteFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef DeleteFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteFlow. - * @function deleteFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.deleteFlow = function deleteFlow(request, callback) { - return this.rpcCall(deleteFlow, $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteFlow" }); - - /** - * Calls DeleteFlow. - * @function deleteFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|listFlows}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef ListFlowsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} [response] ListFlowsResponse - */ - - /** - * Calls ListFlows. - * @function listFlows - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback} callback Node-style callback called with the error, if any, and ListFlowsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.listFlows = function listFlows(request, callback) { - return this.rpcCall(listFlows, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, request, callback); - }, "name", { value: "ListFlows" }); - - /** - * Calls ListFlows. - * @function listFlows - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef GetFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow - */ - - /** - * Calls GetFlow. - * @function getFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback} callback Node-style callback called with the error, if any, and Flow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.getFlow = function getFlow(request, callback) { - return this.rpcCall(getFlow, $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); - }, "name", { value: "GetFlow" }); - - /** - * Calls GetFlow. - * @function getFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|updateFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef UpdateFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow - */ - - /** - * Calls UpdateFlow. - * @function updateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback} callback Node-style callback called with the error, if any, and Flow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.updateFlow = function updateFlow(request, callback) { - return this.rpcCall(updateFlow, $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); - }, "name", { value: "UpdateFlow" }); - - /** - * Calls UpdateFlow. - * @function updateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|trainFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef TrainFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls TrainFlow. - * @function trainFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.trainFlow = function trainFlow(request, callback) { - return this.rpcCall(trainFlow, $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "TrainFlow" }); - - /** - * Calls TrainFlow. - * @function trainFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|validateFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef ValidateFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} [response] FlowValidationResult - */ - - /** - * Calls ValidateFlow. - * @function validateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} request ValidateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback} callback Node-style callback called with the error, if any, and FlowValidationResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.validateFlow = function validateFlow(request, callback) { - return this.rpcCall(validateFlow, $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, request, callback); - }, "name", { value: "ValidateFlow" }); - - /** - * Calls ValidateFlow. - * @function validateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} request ValidateFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlowValidationResult}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef GetFlowValidationResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} [response] FlowValidationResult - */ - - /** - * Calls GetFlowValidationResult. - * @function getFlowValidationResult - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback} callback Node-style callback called with the error, if any, and FlowValidationResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.getFlowValidationResult = function getFlowValidationResult(request, callback) { - return this.rpcCall(getFlowValidationResult, $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, request, callback); - }, "name", { value: "GetFlowValidationResult" }); - - /** - * Calls GetFlowValidationResult. - * @function getFlowValidationResult - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|importFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef ImportFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @interface IExportAgentRequest + * @property {string|null} [name] ExportAgentRequest name + * @property {string|null} [agentUri] ExportAgentRequest agentUri + * @property {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat|null} [dataFormat] ExportAgentRequest dataFormat + * @property {string|null} [environment] ExportAgentRequest environment + * @property {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination|null} [gitDestination] ExportAgentRequest gitDestination + * @property {boolean|null} [includeBigqueryExportSettings] ExportAgentRequest includeBigqueryExportSettings */ /** - * Calls ImportFlow. - * @function importFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} request ImportFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Constructs a new ExportAgentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an ExportAgentRequest. + * @implements IExportAgentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest=} [properties] Properties to set */ - Object.defineProperty(Flows.prototype.importFlow = function importFlow(request, callback) { - return this.rpcCall(importFlow, $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportFlow" }); + function ExportAgentRequest(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 ImportFlow. - * @function importFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * ExportAgentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} request ImportFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|exportFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef ExportFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + ExportAgentRequest.prototype.name = ""; /** - * Calls ExportFlow. - * @function exportFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * ExportAgentRequest agentUri. + * @member {string} agentUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} request ExportFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Flows.prototype.exportFlow = function exportFlow(request, callback) { - return this.rpcCall(exportFlow, $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportFlow" }); + ExportAgentRequest.prototype.agentUri = ""; /** - * Calls ExportFlow. - * @function exportFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * ExportAgentRequest dataFormat. + * @member {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat} dataFormat + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} request ExportFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Flows; - })(); - - v3beta1.NluSettings = (function() { - - /** - * Properties of a NluSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface INluSettings - * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null} [modelType] NluSettings modelType - * @property {number|null} [classificationThreshold] NluSettings classificationThreshold - * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null} [modelTrainingMode] NluSettings modelTrainingMode - */ - - /** - * Constructs a new NluSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a NluSettings. - * @implements INluSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set */ - function NluSettings(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]]; - } + ExportAgentRequest.prototype.dataFormat = 0; /** - * NluSettings modelType. - * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType} modelType - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * ExportAgentRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @instance */ - NluSettings.prototype.modelType = 0; + ExportAgentRequest.prototype.environment = ""; /** - * NluSettings classificationThreshold. - * @member {number} classificationThreshold - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * ExportAgentRequest gitDestination. + * @member {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination|null|undefined} gitDestination + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @instance */ - NluSettings.prototype.classificationThreshold = 0; + ExportAgentRequest.prototype.gitDestination = null; /** - * NluSettings modelTrainingMode. - * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode} modelTrainingMode - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * ExportAgentRequest includeBigqueryExportSettings. + * @member {boolean} includeBigqueryExportSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @instance */ - NluSettings.prototype.modelTrainingMode = 0; + ExportAgentRequest.prototype.includeBigqueryExportSettings = false; /** - * Creates a new NluSettings instance using the specified properties. + * Creates a new ExportAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest instance */ - NluSettings.create = function create(properties) { - return new NluSettings(properties); + ExportAgentRequest.create = function create(properties) { + return new ExportAgentRequest(properties); }; /** - * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * Encodes the specified ExportAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} message ExportAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NluSettings.encode = function encode(message, writer) { + ExportAgentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); - if (message.classificationThreshold != null && Object.hasOwnProperty.call(message, "classificationThreshold")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.classificationThreshold); - if (message.modelTrainingMode != null && Object.hasOwnProperty.call(message, "modelTrainingMode")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.modelTrainingMode); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.agentUri != null && Object.hasOwnProperty.call(message, "agentUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.agentUri); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataFormat); + if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.environment); + if (message.gitDestination != null && Object.hasOwnProperty.call(message, "gitDestination")) + $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.encode(message.gitDestination, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.includeBigqueryExportSettings != null && Object.hasOwnProperty.call(message, "includeBigqueryExportSettings")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.includeBigqueryExportSettings); return writer; }; /** - * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * Encodes the specified ExportAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} message ExportAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NluSettings.encodeDelimited = function encodeDelimited(message, writer) { + ExportAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NluSettings message from the specified reader or buffer. + * Decodes an ExportAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @static * @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.NluSettings} NluSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NluSettings.decode = function decode(reader, length) { + ExportAgentRequest.decode = function decode(reader, length) { 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.NluSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelType = reader.int32(); + message.name = reader.string(); + break; + } + case 2: { + message.agentUri = reader.string(); break; } case 3: { - message.classificationThreshold = reader.float(); + message.dataFormat = reader.int32(); break; } - case 4: { - message.modelTrainingMode = reader.int32(); + case 5: { + message.environment = reader.string(); + break; + } + case 6: { + message.gitDestination = $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.decode(reader, reader.uint32()); + break; + } + case 7: { + message.includeBigqueryExportSettings = reader.bool(); break; } default: @@ -86352,656 +84576,437 @@ }; /** - * Decodes a NluSettings message from the specified reader or buffer, length delimited. + * Decodes an ExportAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NluSettings.decodeDelimited = function decodeDelimited(reader) { + ExportAgentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NluSettings message. + * Verifies an ExportAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NluSettings.verify = function verify(message) { + ExportAgentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelType != null && message.hasOwnProperty("modelType")) - switch (message.modelType) { - default: - return "modelType: enum value expected"; - case 0: - case 1: - case 3: - break; - } - if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) - if (typeof message.classificationThreshold !== "number") - return "classificationThreshold: number expected"; - if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) - switch (message.modelTrainingMode) { + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.agentUri != null && message.hasOwnProperty("agentUri")) + if (!$util.isString(message.agentUri)) + return "agentUri: string expected"; + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { default: - return "modelTrainingMode: enum value expected"; + return "dataFormat: enum value expected"; case 0: case 1: - case 2: + case 4: break; } + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.gitDestination != null && message.hasOwnProperty("gitDestination")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify(message.gitDestination); + if (error) + return "gitDestination." + error; + } + if (message.includeBigqueryExportSettings != null && message.hasOwnProperty("includeBigqueryExportSettings")) + if (typeof message.includeBigqueryExportSettings !== "boolean") + return "includeBigqueryExportSettings: boolean expected"; return null; }; /** - * Creates a NluSettings message from a plain object. Also converts values to their respective internal types. + * Creates an ExportAgentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest */ - NluSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.NluSettings) + ExportAgentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.NluSettings(); - switch (object.modelType) { + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.agentUri != null) + message.agentUri = String(object.agentUri); + switch (object.dataFormat) { default: - if (typeof object.modelType === "number") { - message.modelType = object.modelType; + if (typeof object.dataFormat === "number") { + message.dataFormat = object.dataFormat; break; } break; - case "MODEL_TYPE_UNSPECIFIED": + case "DATA_FORMAT_UNSPECIFIED": case 0: - message.modelType = 0; + message.dataFormat = 0; break; - case "MODEL_TYPE_STANDARD": + case "BLOB": case 1: - message.modelType = 1; + message.dataFormat = 1; break; - case "MODEL_TYPE_ADVANCED": - case 3: - message.modelType = 3; + case "JSON_PACKAGE": + case 4: + message.dataFormat = 4; break; } - if (object.classificationThreshold != null) - message.classificationThreshold = Number(object.classificationThreshold); - switch (object.modelTrainingMode) { - default: - if (typeof object.modelTrainingMode === "number") { - message.modelTrainingMode = object.modelTrainingMode; - break; - } - break; - case "MODEL_TRAINING_MODE_UNSPECIFIED": - case 0: - message.modelTrainingMode = 0; - break; - case "MODEL_TRAINING_MODE_AUTOMATIC": - case 1: - message.modelTrainingMode = 1; - break; - case "MODEL_TRAINING_MODE_MANUAL": - case 2: - message.modelTrainingMode = 2; - break; + if (object.environment != null) + message.environment = String(object.environment); + if (object.gitDestination != null) { + if (typeof object.gitDestination !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.gitDestination: object expected"); + message.gitDestination = $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.fromObject(object.gitDestination); } + if (object.includeBigqueryExportSettings != null) + message.includeBigqueryExportSettings = Boolean(object.includeBigqueryExportSettings); return message; }; /** - * Creates a plain object from a NluSettings message. Also converts values to other types if specified. + * Creates a plain object from an ExportAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.NluSettings} message NluSettings + * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} message ExportAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NluSettings.toObject = function toObject(message, options) { + ExportAgentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; - object.classificationThreshold = 0; - object.modelTrainingMode = options.enums === String ? "MODEL_TRAINING_MODE_UNSPECIFIED" : 0; + object.name = ""; + object.agentUri = ""; + object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; + object.environment = ""; + object.gitDestination = null; + object.includeBigqueryExportSettings = false; } - if (message.modelType != null && message.hasOwnProperty("modelType")) - object.modelType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType[message.modelType] === undefined ? message.modelType : $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType[message.modelType] : message.modelType; - if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) - object.classificationThreshold = options.json && !isFinite(message.classificationThreshold) ? String(message.classificationThreshold) : message.classificationThreshold; - if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) - object.modelTrainingMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode[message.modelTrainingMode] === undefined ? message.modelTrainingMode : $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode[message.modelTrainingMode] : message.modelTrainingMode; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.agentUri != null && message.hasOwnProperty("agentUri")) + object.agentUri = message.agentUri; + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat[message.dataFormat] === undefined ? message.dataFormat : $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat[message.dataFormat] : message.dataFormat; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.gitDestination != null && message.hasOwnProperty("gitDestination")) + object.gitDestination = $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.toObject(message.gitDestination, options); + if (message.includeBigqueryExportSettings != null && message.hasOwnProperty("includeBigqueryExportSettings")) + object.includeBigqueryExportSettings = message.includeBigqueryExportSettings; return object; }; /** - * Converts this NluSettings to JSON. + * Converts this ExportAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @instance * @returns {Object.} JSON object */ - NluSettings.prototype.toJSON = function toJSON() { + ExportAgentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NluSettings + * Gets the default type url for ExportAgentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NluSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.NluSettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest"; }; /** - * ModelType enum. - * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType + * DataFormat enum. + * @name google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat * @enum {number} - * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value - * @property {number} MODEL_TYPE_STANDARD=1 MODEL_TYPE_STANDARD value - * @property {number} MODEL_TYPE_ADVANCED=3 MODEL_TYPE_ADVANCED value + * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value + * @property {number} BLOB=1 BLOB value + * @property {number} JSON_PACKAGE=4 JSON_PACKAGE value */ - NluSettings.ModelType = (function() { + ExportAgentRequest.DataFormat = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "MODEL_TYPE_STANDARD"] = 1; - values[valuesById[3] = "MODEL_TYPE_ADVANCED"] = 3; + values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "BLOB"] = 1; + values[valuesById[4] = "JSON_PACKAGE"] = 4; return values; })(); - /** - * ModelTrainingMode enum. - * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode - * @enum {number} - * @property {number} MODEL_TRAINING_MODE_UNSPECIFIED=0 MODEL_TRAINING_MODE_UNSPECIFIED value - * @property {number} MODEL_TRAINING_MODE_AUTOMATIC=1 MODEL_TRAINING_MODE_AUTOMATIC value - * @property {number} MODEL_TRAINING_MODE_MANUAL=2 MODEL_TRAINING_MODE_MANUAL value - */ - NluSettings.ModelTrainingMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_TRAINING_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "MODEL_TRAINING_MODE_AUTOMATIC"] = 1; - values[valuesById[2] = "MODEL_TRAINING_MODE_MANUAL"] = 2; - return values; - })(); + ExportAgentRequest.GitDestination = (function() { - return NluSettings; - })(); + /** + * Properties of a GitDestination. + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @interface IGitDestination + * @property {string|null} [trackingBranch] GitDestination trackingBranch + * @property {string|null} [commitMessage] GitDestination commitMessage + */ - v3beta1.Flow = (function() { + /** + * Constructs a new GitDestination. + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @classdesc Represents a GitDestination. + * @implements IGitDestination + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination=} [properties] Properties to set + */ + function GitDestination(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 Flow. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFlow - * @property {string|null} [name] Flow name - * @property {string|null} [displayName] Flow displayName - * @property {string|null} [description] Flow description - * @property {Array.|null} [transitionRoutes] Flow transitionRoutes - * @property {Array.|null} [eventHandlers] Flow eventHandlers - * @property {Array.|null} [transitionRouteGroups] Flow transitionRouteGroups - * @property {google.cloud.dialogflow.cx.v3beta1.INluSettings|null} [nluSettings] Flow nluSettings - * @property {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null} [knowledgeConnectorSettings] Flow knowledgeConnectorSettings - */ + /** + * GitDestination trackingBranch. + * @member {string} trackingBranch + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @instance + */ + GitDestination.prototype.trackingBranch = ""; - /** - * Constructs a new Flow. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Flow. - * @implements IFlow - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set - */ - function Flow(properties) { - this.transitionRoutes = []; - this.eventHandlers = []; - this.transitionRouteGroups = []; - 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]]; - } + /** + * GitDestination commitMessage. + * @member {string} commitMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @instance + */ + GitDestination.prototype.commitMessage = ""; - /** - * Flow name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @instance - */ - Flow.prototype.name = ""; + /** + * Creates a new GitDestination instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} GitDestination instance + */ + GitDestination.create = function create(properties) { + return new GitDestination(properties); + }; - /** - * Flow displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @instance - */ - Flow.prototype.displayName = ""; + /** + * Encodes the specified GitDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination} message GitDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GitDestination.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trackingBranch != null && Object.hasOwnProperty.call(message, "trackingBranch")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingBranch); + if (message.commitMessage != null && Object.hasOwnProperty.call(message, "commitMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.commitMessage); + return writer; + }; - /** - * Flow description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @instance - */ - Flow.prototype.description = ""; + /** + * Encodes the specified GitDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.IGitDestination} message GitDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GitDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Flow transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @instance - */ - Flow.prototype.transitionRoutes = $util.emptyArray; - - /** - * Flow eventHandlers. - * @member {Array.} eventHandlers - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @instance - */ - Flow.prototype.eventHandlers = $util.emptyArray; - - /** - * Flow transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @instance - */ - Flow.prototype.transitionRouteGroups = $util.emptyArray; - - /** - * Flow nluSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.INluSettings|null|undefined} nluSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @instance - */ - Flow.prototype.nluSettings = null; - - /** - * Flow knowledgeConnectorSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null|undefined} knowledgeConnectorSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @instance - */ - Flow.prototype.knowledgeConnectorSettings = null; - - /** - * Creates a new Flow instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow instance - */ - Flow.create = function create(properties) { - return new Flow(properties); - }; - - /** - * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Flow.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.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 4, wireType 2 =*/34).fork()).ldelim(); - if (message.eventHandlers != null && message.eventHandlers.length) - for (var i = 0; i < message.eventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.encode(message.nluSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.transitionRouteGroups[i]); - if (message.knowledgeConnectorSettings != null && Object.hasOwnProperty.call(message, "knowledgeConnectorSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.encode(message.knowledgeConnectorSettings, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Flow.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Flow message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @static - * @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.Flow} Flow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Flow.decode = function decode(reader, length) { - 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.Flow(); - 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 4: { - if (!(message.transitionRoutes && message.transitionRoutes.length)) - message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); - break; - } - case 10: { - if (!(message.eventHandlers && message.eventHandlers.length)) - message.eventHandlers = []; - message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); - break; - } - case 15: { - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push(reader.string()); - break; - } - case 11: { - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.decode(reader, reader.uint32()); - break; - } - case 18: { - message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.decode(reader, reader.uint32()); + /** + * Decodes a GitDestination message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @static + * @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.ExportAgentRequest.GitDestination} GitDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GitDestination.decode = function decode(reader, length) { + 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.ExportAgentRequest.GitDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trackingBranch = reader.string(); + break; + } + case 2: { + message.commitMessage = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Flow message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Flow.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a GitDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} GitDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GitDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Flow message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Flow.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.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; - } - } - if (message.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { - if (!Array.isArray(message.eventHandlers)) - return "eventHandlers: array expected"; - for (var i = 0; i < message.eventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandlers[i]); - if (error) - return "eventHandlers." + 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) - if (!$util.isString(message.transitionRouteGroups[i])) - return "transitionRouteGroups: string[] expected"; - } - if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.verify(message.nluSettings); - if (error) - return "nluSettings." + error; - } - if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify(message.knowledgeConnectorSettings); - if (error) - return "knowledgeConnectorSettings." + error; - } - return null; - }; + /** + * Verifies a GitDestination message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GitDestination.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) + if (!$util.isString(message.trackingBranch)) + return "trackingBranch: string expected"; + if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) + if (!$util.isString(message.commitMessage)) + return "commitMessage: string expected"; + return null; + }; - /** - * Creates a Flow message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow - */ - Flow.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Flow) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Flow(); - 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.transitionRoutes) { - if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.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.Flow.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); - } - } - if (object.eventHandlers) { - if (!Array.isArray(object.eventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: array expected"); - message.eventHandlers = []; - for (var i = 0; i < object.eventHandlers.length; ++i) { - if (typeof object.eventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: object expected"); - message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandlers[i]); + /** + * Creates a GitDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} GitDestination + */ + GitDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination(); + if (object.trackingBranch != null) + message.trackingBranch = String(object.trackingBranch); + if (object.commitMessage != null) + message.commitMessage = String(object.commitMessage); + return message; + }; + + /** + * Creates a plain object from a GitDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} message GitDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GitDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trackingBranch = ""; + object.commitMessage = ""; } - } - if (object.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) - message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); - } - if (object.nluSettings != null) { - if (typeof object.nluSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.nluSettings: object expected"); - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.fromObject(object.nluSettings); - } - if (object.knowledgeConnectorSettings != null) { - if (typeof object.knowledgeConnectorSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.knowledgeConnectorSettings: object expected"); - message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.fromObject(object.knowledgeConnectorSettings); - } - return message; - }; + if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) + object.trackingBranch = message.trackingBranch; + if (message.commitMessage != null && message.hasOwnProperty("commitMessage")) + object.commitMessage = message.commitMessage; + return object; + }; - /** - * Creates a plain object from a Flow message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} message Flow - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Flow.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.transitionRoutes = []; - object.eventHandlers = []; - object.transitionRouteGroups = []; - } - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.nluSettings = null; - object.knowledgeConnectorSettings = 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.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); - } - if (message.eventHandlers && message.eventHandlers.length) { - object.eventHandlers = []; - for (var j = 0; j < message.eventHandlers.length; ++j) - object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandlers[j], options); - } - if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) - object.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.toObject(message.nluSettings, options); - if (message.transitionRouteGroups && message.transitionRouteGroups.length) { - object.transitionRouteGroups = []; - for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; - } - if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) - object.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.toObject(message.knowledgeConnectorSettings, options); - return object; - }; + /** + * Converts this GitDestination to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @instance + * @returns {Object.} JSON object + */ + GitDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this Flow to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @instance - * @returns {Object.} JSON object - */ - Flow.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for GitDestination + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GitDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination"; + }; - /** - * Gets the default type url for Flow - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Flow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Flow"; - }; + return GitDestination; + })(); - return Flow; + return ExportAgentRequest; })(); - v3beta1.CreateFlowRequest = (function() { + v3beta1.ExportAgentResponse = (function() { /** - * Properties of a CreateFlowRequest. + * Properties of an ExportAgentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateFlowRequest - * @property {string|null} [parent] CreateFlowRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] CreateFlowRequest flow - * @property {string|null} [languageCode] CreateFlowRequest languageCode + * @interface IExportAgentResponse + * @property {string|null} [agentUri] ExportAgentResponse agentUri + * @property {Uint8Array|null} [agentContent] ExportAgentResponse agentContent + * @property {string|null} [commitSha] ExportAgentResponse commitSha */ /** - * Constructs a new CreateFlowRequest. + * Constructs a new ExportAgentResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateFlowRequest. - * @implements ICreateFlowRequest + * @classdesc Represents an ExportAgentResponse. + * @implements IExportAgentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse=} [properties] Properties to set */ - function CreateFlowRequest(properties) { + function ExportAgentResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87009,103 +85014,117 @@ } /** - * CreateFlowRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * ExportAgentResponse agentUri. + * @member {string|null|undefined} agentUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @instance */ - CreateFlowRequest.prototype.parent = ""; + ExportAgentResponse.prototype.agentUri = null; /** - * CreateFlowRequest flow. - * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * ExportAgentResponse agentContent. + * @member {Uint8Array|null|undefined} agentContent + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @instance */ - CreateFlowRequest.prototype.flow = null; + ExportAgentResponse.prototype.agentContent = null; /** - * CreateFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * ExportAgentResponse commitSha. + * @member {string|null|undefined} commitSha + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @instance */ - CreateFlowRequest.prototype.languageCode = ""; + ExportAgentResponse.prototype.commitSha = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new CreateFlowRequest instance using the specified properties. + * ExportAgentResponse agent. + * @member {"agentUri"|"agentContent"|"commitSha"|undefined} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @instance + */ + Object.defineProperty(ExportAgentResponse.prototype, "agent", { + get: $util.oneOfGetter($oneOfFields = ["agentUri", "agentContent", "commitSha"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExportAgentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse instance */ - CreateFlowRequest.create = function create(properties) { - return new CreateFlowRequest(properties); + ExportAgentResponse.create = function create(properties) { + return new ExportAgentResponse(properties); }; /** - * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * Encodes the specified ExportAgentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse} message ExportAgentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFlowRequest.encode = function encode(message, writer) { + ExportAgentResponse.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.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(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.agentUri != null && Object.hasOwnProperty.call(message, "agentUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.agentUri); + if (message.agentContent != null && Object.hasOwnProperty.call(message, "agentContent")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.agentContent); + if (message.commitSha != null && Object.hasOwnProperty.call(message, "commitSha")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.commitSha); return writer; }; /** - * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * Encodes the specified ExportAgentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse} message ExportAgentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportAgentResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFlowRequest message from the specified reader or buffer. + * Decodes an ExportAgentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @static * @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.CreateFlowRequest} CreateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFlowRequest.decode = function decode(reader, length) { + ExportAgentResponse.decode = function decode(reader, length) { 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.CreateFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.agentUri = reader.string(); break; } case 2: { - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); + message.agentContent = reader.bytes(); break; } case 3: { - message.languageCode = reader.string(); + message.commitSha = reader.string(); break; } default: @@ -87117,145 +85136,161 @@ }; /** - * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportAgentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFlowRequest.decodeDelimited = function decodeDelimited(reader) { + ExportAgentResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFlowRequest message. + * Verifies an ExportAgentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFlowRequest.verify = function verify(message) { + ExportAgentResponse.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.flow != null && message.hasOwnProperty("flow")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); - if (error) - return "flow." + error; + var properties = {}; + if (message.agentUri != null && message.hasOwnProperty("agentUri")) { + properties.agent = 1; + if (!$util.isString(message.agentUri)) + return "agentUri: string expected"; + } + if (message.agentContent != null && message.hasOwnProperty("agentContent")) { + if (properties.agent === 1) + return "agent: multiple values"; + properties.agent = 1; + if (!(message.agentContent && typeof message.agentContent.length === "number" || $util.isString(message.agentContent))) + return "agentContent: buffer expected"; + } + if (message.commitSha != null && message.hasOwnProperty("commitSha")) { + if (properties.agent === 1) + return "agent: multiple values"; + properties.agent = 1; + if (!$util.isString(message.commitSha)) + return "commitSha: string expected"; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a CreateFlowRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse */ - CreateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest) + ExportAgentResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse(); + if (object.agentUri != null) + message.agentUri = String(object.agentUri); + if (object.agentContent != null) + if (typeof object.agentContent === "string") + $util.base64.decode(object.agentContent, message.agentContent = $util.newBuffer($util.base64.length(object.agentContent)), 0); + else if (object.agentContent.length >= 0) + message.agentContent = object.agentContent; + if (object.commitSha != null) + message.commitSha = String(object.commitSha); return message; }; /** - * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportAgentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} message CreateFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} message ExportAgentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFlowRequest.toObject = function toObject(message, options) { + ExportAgentResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.flow = null; - object.languageCode = ""; + if (message.agentUri != null && message.hasOwnProperty("agentUri")) { + object.agentUri = message.agentUri; + if (options.oneofs) + object.agent = "agentUri"; + } + if (message.agentContent != null && message.hasOwnProperty("agentContent")) { + object.agentContent = options.bytes === String ? $util.base64.encode(message.agentContent, 0, message.agentContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.agentContent) : message.agentContent; + if (options.oneofs) + object.agent = "agentContent"; + } + if (message.commitSha != null && message.hasOwnProperty("commitSha")) { + object.commitSha = message.commitSha; + if (options.oneofs) + object.agent = "commitSha"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; return object; }; /** - * Converts this CreateFlowRequest to JSON. + * Converts this ExportAgentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @instance * @returns {Object.} JSON object */ - CreateFlowRequest.prototype.toJSON = function toJSON() { + ExportAgentResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateFlowRequest + * Gets the default type url for ExportAgentResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportAgentResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse"; }; - return CreateFlowRequest; + return ExportAgentResponse; })(); - v3beta1.DeleteFlowRequest = (function() { + v3beta1.RestoreAgentRequest = (function() { /** - * Properties of a DeleteFlowRequest. + * Properties of a RestoreAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteFlowRequest - * @property {string|null} [name] DeleteFlowRequest name - * @property {boolean|null} [force] DeleteFlowRequest force + * @interface IRestoreAgentRequest + * @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.IGitSource|null} [gitSource] RestoreAgentRequest gitSource + * @property {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption|null} [restoreOption] RestoreAgentRequest restoreOption */ /** - * Constructs a new DeleteFlowRequest. + * Constructs a new RestoreAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteFlowRequest. - * @implements IDeleteFlowRequest + * @classdesc Represents a RestoreAgentRequest. + * @implements IRestoreAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest=} [properties] Properties to set */ - function DeleteFlowRequest(properties) { + function RestoreAgentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87263,80 +85298,124 @@ } /** - * DeleteFlowRequest name. + * RestoreAgentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @instance */ - DeleteFlowRequest.prototype.name = ""; + RestoreAgentRequest.prototype.name = ""; /** - * DeleteFlowRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * RestoreAgentRequest agentUri. + * @member {string|null|undefined} agentUri + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @instance */ - DeleteFlowRequest.prototype.force = false; + RestoreAgentRequest.prototype.agentUri = null; /** - * Creates a new DeleteFlowRequest instance using the specified properties. + * RestoreAgentRequest agentContent. + * @member {Uint8Array|null|undefined} agentContent + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @instance + */ + RestoreAgentRequest.prototype.agentContent = null; + + /** + * RestoreAgentRequest gitSource. + * @member {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource|null|undefined} gitSource + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @instance + */ + RestoreAgentRequest.prototype.gitSource = null; + + /** + * 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; + + /** + * RestoreAgentRequest agent. + * @member {"agentUri"|"agentContent"|"gitSource"|undefined} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @instance + */ + Object.defineProperty(RestoreAgentRequest.prototype, "agent", { + get: $util.oneOfGetter($oneOfFields = ["agentUri", "agentContent", "gitSource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RestoreAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest instance */ - DeleteFlowRequest.create = function create(properties) { - return new DeleteFlowRequest(properties); + RestoreAgentRequest.create = function create(properties) { + return new RestoreAgentRequest(properties); }; /** - * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * Encodes the specified RestoreAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} message RestoreAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFlowRequest.encode = function encode(message, writer) { + RestoreAgentRequest.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.agentUri != null && Object.hasOwnProperty.call(message, "agentUri")) + 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); + if (message.gitSource != null && Object.hasOwnProperty.call(message, "gitSource")) + $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.encode(message.gitSource, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * Encodes the specified RestoreAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} message RestoreAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + RestoreAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer. + * Decodes a RestoreAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @static * @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.DeleteFlowRequest} DeleteFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFlowRequest.decode = function decode(reader, length) { + RestoreAgentRequest.decode = function decode(reader, length) { 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.DeleteFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -87345,7 +85424,19 @@ break; } case 2: { - message.force = reader.bool(); + message.agentUri = reader.string(); + break; + } + case 3: { + message.agentContent = reader.bytes(); + break; + } + case 6: { + message.gitSource = $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.restoreOption = reader.int32(); break; } default: @@ -87357,134 +85448,425 @@ }; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a RestoreAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFlowRequest.decodeDelimited = function decodeDelimited(reader) { + RestoreAgentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFlowRequest message. + * Verifies a RestoreAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFlowRequest.verify = function verify(message) { + RestoreAgentRequest.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.agentUri != null && message.hasOwnProperty("agentUri")) { + properties.agent = 1; + if (!$util.isString(message.agentUri)) + return "agentUri: string expected"; + } + if (message.agentContent != null && message.hasOwnProperty("agentContent")) { + if (properties.agent === 1) + return "agent: multiple values"; + properties.agent = 1; + if (!(message.agentContent && typeof message.agentContent.length === "number" || $util.isString(message.agentContent))) + return "agentContent: buffer expected"; + } + if (message.gitSource != null && message.hasOwnProperty("gitSource")) { + if (properties.agent === 1) + return "agent: multiple values"; + properties.agent = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify(message.gitSource); + if (error) + return "gitSource." + error; + } + } + 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; }; /** - * Creates a DeleteFlowRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest */ - DeleteFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest) + RestoreAgentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest(); if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + if (object.agentUri != null) + message.agentUri = String(object.agentUri); + if (object.agentContent != null) + if (typeof object.agentContent === "string") + $util.base64.decode(object.agentContent, message.agentContent = $util.newBuffer($util.base64.length(object.agentContent)), 0); + else if (object.agentContent.length >= 0) + message.agentContent = object.agentContent; + if (object.gitSource != null) { + if (typeof object.gitSource !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.gitSource: object expected"); + message.gitSource = $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.fromObject(object.gitSource); + } + switch (object.restoreOption) { + default: + if (typeof object.restoreOption === "number") { + message.restoreOption = object.restoreOption; + break; + } + break; + 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; }; /** - * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a RestoreAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} message DeleteFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} message RestoreAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFlowRequest.toObject = function toObject(message, options) { + RestoreAgentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.force = false; + object.restoreOption = options.enums === String ? "RESTORE_OPTION_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.agentUri != null && message.hasOwnProperty("agentUri")) { + object.agentUri = message.agentUri; + if (options.oneofs) + object.agent = "agentUri"; + } + if (message.agentContent != null && message.hasOwnProperty("agentContent")) { + object.agentContent = options.bytes === String ? $util.base64.encode(message.agentContent, 0, message.agentContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.agentContent) : message.agentContent; + 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] === undefined ? message.restoreOption : $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption[message.restoreOption] : message.restoreOption; + if (message.gitSource != null && message.hasOwnProperty("gitSource")) { + object.gitSource = $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.toObject(message.gitSource, options); + if (options.oneofs) + object.agent = "gitSource"; + } return object; }; /** - * Converts this DeleteFlowRequest to JSON. + * Converts this RestoreAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @instance * @returns {Object.} JSON object */ - DeleteFlowRequest.prototype.toJSON = function toJSON() { + RestoreAgentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteFlowRequest + * Gets the default type url for RestoreAgentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RestoreAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest"; }; - return DeleteFlowRequest; - })(); - - v3beta1.ListFlowsRequest = (function() { + RestoreAgentRequest.GitSource = (function() { - /** - * Properties of a ListFlowsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListFlowsRequest - * @property {string|null} [parent] ListFlowsRequest parent - * @property {number|null} [pageSize] ListFlowsRequest pageSize - * @property {string|null} [pageToken] ListFlowsRequest pageToken - * @property {string|null} [languageCode] ListFlowsRequest languageCode - */ + /** + * Properties of a GitSource. + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @interface IGitSource + * @property {string|null} [trackingBranch] GitSource trackingBranch + */ - /** - * Constructs a new ListFlowsRequest. + /** + * Constructs a new GitSource. + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @classdesc Represents a GitSource. + * @implements IGitSource + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource=} [properties] Properties to set + */ + function GitSource(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]]; + } + + /** + * GitSource trackingBranch. + * @member {string} trackingBranch + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @instance + */ + GitSource.prototype.trackingBranch = ""; + + /** + * Creates a new GitSource instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} GitSource instance + */ + GitSource.create = function create(properties) { + return new GitSource(properties); + }; + + /** + * Encodes the specified GitSource message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource} message GitSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GitSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trackingBranch != null && Object.hasOwnProperty.call(message, "trackingBranch")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingBranch); + return writer; + }; + + /** + * Encodes the specified GitSource message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.IGitSource} message GitSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GitSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GitSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @static + * @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.RestoreAgentRequest.GitSource} GitSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GitSource.decode = function decode(reader, length) { + 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.RestoreAgentRequest.GitSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trackingBranch = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GitSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} GitSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GitSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GitSource message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GitSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) + if (!$util.isString(message.trackingBranch)) + return "trackingBranch: string expected"; + return null; + }; + + /** + * Creates a GitSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} GitSource + */ + GitSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource(); + if (object.trackingBranch != null) + message.trackingBranch = String(object.trackingBranch); + return message; + }; + + /** + * Creates a plain object from a GitSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} message GitSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GitSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.trackingBranch = ""; + if (message.trackingBranch != null && message.hasOwnProperty("trackingBranch")) + object.trackingBranch = message.trackingBranch; + return object; + }; + + /** + * Converts this GitSource to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @instance + * @returns {Object.} JSON object + */ + GitSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GitSource + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GitSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource"; + }; + + return GitSource; + })(); + + /** + * 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; + })(); + + v3beta1.ValidateAgentRequest = (function() { + + /** + * Properties of a ValidateAgentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListFlowsRequest. - * @implements IListFlowsRequest + * @interface IValidateAgentRequest + * @property {string|null} [name] ValidateAgentRequest name + * @property {string|null} [languageCode] ValidateAgentRequest languageCode + */ + + /** + * Constructs a new ValidateAgentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ValidateAgentRequest. + * @implements IValidateAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest=} [properties] Properties to set */ - function ListFlowsRequest(properties) { + function ValidateAgentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87492,116 +85874,88 @@ } /** - * ListFlowsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest - * @instance - */ - ListFlowsRequest.prototype.parent = ""; - - /** - * ListFlowsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest - * @instance - */ - ListFlowsRequest.prototype.pageSize = 0; - - /** - * ListFlowsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * ValidateAgentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @instance */ - ListFlowsRequest.prototype.pageToken = ""; + ValidateAgentRequest.prototype.name = ""; /** - * ListFlowsRequest languageCode. + * ValidateAgentRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @instance */ - ListFlowsRequest.prototype.languageCode = ""; + ValidateAgentRequest.prototype.languageCode = ""; /** - * Creates a new ListFlowsRequest instance using the specified properties. + * Creates a new ValidateAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest} ValidateAgentRequest instance */ - ListFlowsRequest.create = function create(properties) { - return new ListFlowsRequest(properties); + ValidateAgentRequest.create = function create(properties) { + return new ValidateAgentRequest(properties); }; /** - * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * Encodes the specified ValidateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest} message ValidateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFlowsRequest.encode = function encode(message, writer) { + ValidateAgentRequest.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.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 4, wireType 2 =*/34).string(message.languageCode); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * Encodes the specified ValidateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest} message ValidateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFlowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateAgentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer. + * Decodes a ValidateAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @static * @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.ListFlowsRequest} ListFlowsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest} ValidateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFlowsRequest.decode = function decode(reader, length) { + ValidateAgentRequest.decode = function decode(reader, length) { 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.ListFlowsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest(); 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.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { message.languageCode = reader.string(); break; } @@ -87614,41 +85968,35 @@ }; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest} ValidateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFlowsRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateAgentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFlowsRequest message. + * Verifies a ValidateAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFlowsRequest.verify = function verify(message) { + ValidateAgentRequest.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.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"; @@ -87656,107 +86004,96 @@ }; /** - * Creates a ListFlowsRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest} ValidateAgentRequest */ - ListFlowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest) + ValidateAgentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest(); - 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.ValidateAgentRequest(); + 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 ListFlowsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} message ListFlowsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest} message ValidateAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFlowsRequest.toObject = function toObject(message, options) { + ValidateAgentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; return object; }; /** - * Converts this ListFlowsRequest to JSON. + * Converts this ValidateAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @instance * @returns {Object.} JSON object */ - ListFlowsRequest.prototype.toJSON = function toJSON() { + ValidateAgentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFlowsRequest + * Gets the default type url for ValidateAgentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFlowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest"; }; - return ListFlowsRequest; + return ValidateAgentRequest; })(); - v3beta1.ListFlowsResponse = (function() { + v3beta1.GetAgentValidationResultRequest = (function() { /** - * Properties of a ListFlowsResponse. + * Properties of a GetAgentValidationResultRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListFlowsResponse - * @property {Array.|null} [flows] ListFlowsResponse flows - * @property {string|null} [nextPageToken] ListFlowsResponse nextPageToken + * @interface IGetAgentValidationResultRequest + * @property {string|null} [name] GetAgentValidationResultRequest name + * @property {string|null} [languageCode] GetAgentValidationResultRequest languageCode */ /** - * Constructs a new ListFlowsResponse. + * Constructs a new GetAgentValidationResultRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListFlowsResponse. - * @implements IListFlowsResponse + * @classdesc Represents a GetAgentValidationResultRequest. + * @implements IGetAgentValidationResultRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest=} [properties] Properties to set */ - function ListFlowsResponse(properties) { - this.flows = []; + function GetAgentValidationResultRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87764,92 +86101,89 @@ } /** - * ListFlowsResponse flows. - * @member {Array.} flows - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * GetAgentValidationResultRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @instance */ - ListFlowsResponse.prototype.flows = $util.emptyArray; + GetAgentValidationResultRequest.prototype.name = ""; /** - * ListFlowsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * GetAgentValidationResultRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @instance */ - ListFlowsResponse.prototype.nextPageToken = ""; + GetAgentValidationResultRequest.prototype.languageCode = ""; /** - * Creates a new ListFlowsResponse instance using the specified properties. + * Creates a new GetAgentValidationResultRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest} GetAgentValidationResultRequest instance */ - ListFlowsResponse.create = function create(properties) { - return new ListFlowsResponse(properties); + GetAgentValidationResultRequest.create = function create(properties) { + return new GetAgentValidationResultRequest(properties); }; /** - * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * Encodes the specified GetAgentValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest} message GetAgentValidationResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFlowsResponse.encode = function encode(message, writer) { + GetAgentValidationResultRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flows != null && message.flows.length) - for (var i = 0; i < message.flows.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flows[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 ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * Encodes the specified GetAgentValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest} message GetAgentValidationResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFlowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetAgentValidationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer. + * Decodes a GetAgentValidationResultRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @static * @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.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest} GetAgentValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFlowsResponse.decode = function decode(reader, length) { + GetAgentValidationResultRequest.decode = function decode(reader, length) { 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.ListFlowsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.flows && message.flows.length)) - message.flows = []; - message.flows.push($root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.languageCode = reader.string(); break; } default: @@ -87861,149 +86195,133 @@ }; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetAgentValidationResultRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest} GetAgentValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFlowsResponse.decodeDelimited = function decodeDelimited(reader) { + GetAgentValidationResultRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFlowsResponse message. + * Verifies a GetAgentValidationResultRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFlowsResponse.verify = function verify(message) { + GetAgentValidationResultRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.flows != null && message.hasOwnProperty("flows")) { - if (!Array.isArray(message.flows)) - return "flows: array expected"; - for (var i = 0; i < message.flows.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flows[i]); - if (error) - return "flows." + 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 ListFlowsResponse 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest} GetAgentValidationResultRequest */ - ListFlowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) + GetAgentValidationResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse(); - if (object.flows) { - if (!Array.isArray(object.flows)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: array expected"); - message.flows = []; - for (var i = 0; i < object.flows.length; ++i) { - if (typeof object.flows[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: object expected"); - message.flows[i] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flows[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest(); + 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 ListFlowsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetAgentValidationResultRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} message ListFlowsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest} message GetAgentValidationResultRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFlowsResponse.toObject = function toObject(message, options) { + GetAgentValidationResultRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.flows = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.flows && message.flows.length) { - object.flows = []; - for (var j = 0; j < message.flows.length; ++j) - object.flows[j] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flows[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 ListFlowsResponse to JSON. + * Converts this GetAgentValidationResultRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @instance * @returns {Object.} JSON object */ - ListFlowsResponse.prototype.toJSON = function toJSON() { + GetAgentValidationResultRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFlowsResponse + * Gets the default type url for GetAgentValidationResultRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFlowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetAgentValidationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest"; }; - return ListFlowsResponse; + return GetAgentValidationResultRequest; })(); - v3beta1.GetFlowRequest = (function() { + v3beta1.AgentValidationResult = (function() { /** - * Properties of a GetFlowRequest. + * Properties of an AgentValidationResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetFlowRequest - * @property {string|null} [name] GetFlowRequest name - * @property {string|null} [languageCode] GetFlowRequest languageCode + * @interface IAgentValidationResult + * @property {string|null} [name] AgentValidationResult name + * @property {Array.|null} [flowValidationResults] AgentValidationResult flowValidationResults */ /** - * Constructs a new GetFlowRequest. + * Constructs a new AgentValidationResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetFlowRequest. - * @implements IGetFlowRequest + * @classdesc Represents an AgentValidationResult. + * @implements IAgentValidationResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult=} [properties] Properties to set */ - function GetFlowRequest(properties) { + function AgentValidationResult(properties) { + this.flowValidationResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88011,80 +86329,81 @@ } /** - * GetFlowRequest name. + * AgentValidationResult name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @instance */ - GetFlowRequest.prototype.name = ""; + AgentValidationResult.prototype.name = ""; /** - * GetFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * AgentValidationResult flowValidationResults. + * @member {Array.} flowValidationResults + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @instance */ - GetFlowRequest.prototype.languageCode = ""; + AgentValidationResult.prototype.flowValidationResults = $util.emptyArray; /** - * Creates a new GetFlowRequest instance using the specified properties. + * Creates a new AgentValidationResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} AgentValidationResult instance */ - GetFlowRequest.create = function create(properties) { - return new GetFlowRequest(properties); + AgentValidationResult.create = function create(properties) { + return new AgentValidationResult(properties); }; /** - * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * Encodes the specified AgentValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult} message AgentValidationResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowRequest.encode = function encode(message, writer) { + AgentValidationResult.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.flowValidationResults != null && message.flowValidationResults.length) + for (var i = 0; i < message.flowValidationResults.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.encode(message.flowValidationResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * Encodes the specified AgentValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IAgentValidationResult} message AgentValidationResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + AgentValidationResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFlowRequest message from the specified reader or buffer. + * Decodes an AgentValidationResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @static * @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.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} AgentValidationResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowRequest.decode = function decode(reader, length) { + AgentValidationResult.decode = function decode(reader, length) { 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.GetFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -88093,7 +86412,9 @@ break; } case 2: { - message.languageCode = reader.string(); + if (!(message.flowValidationResults && message.flowValidationResults.length)) + message.flowValidationResults = []; + message.flowValidationResults.push($root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.decode(reader, reader.uint32())); break; } default: @@ -88105,133 +86426,149 @@ }; /** - * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. + * Decodes an AgentValidationResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} AgentValidationResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowRequest.decodeDelimited = function decodeDelimited(reader) { + AgentValidationResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFlowRequest message. + * Verifies an AgentValidationResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFlowRequest.verify = function verify(message) { + AgentValidationResult.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.flowValidationResults != null && message.hasOwnProperty("flowValidationResults")) { + if (!Array.isArray(message.flowValidationResults)) + return "flowValidationResults: array expected"; + for (var i = 0; i < message.flowValidationResults.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify(message.flowValidationResults[i]); + if (error) + return "flowValidationResults." + error; + } + } return null; }; /** - * Creates a GetFlowRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} AgentValidationResult */ - GetFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest) + AgentValidationResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult(); if (object.name != null) message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.flowValidationResults) { + if (!Array.isArray(object.flowValidationResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.flowValidationResults: array expected"); + message.flowValidationResults = []; + for (var i = 0; i < object.flowValidationResults.length; ++i) { + if (typeof object.flowValidationResults[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AgentValidationResult.flowValidationResults: object expected"); + message.flowValidationResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.fromObject(object.flowValidationResults[i]); + } + } return message; }; /** - * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from an AgentValidationResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} message GetFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.AgentValidationResult} message AgentValidationResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFlowRequest.toObject = function toObject(message, options) { + AgentValidationResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.arrays || options.defaults) + object.flowValidationResults = []; + 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; + if (message.flowValidationResults && message.flowValidationResults.length) { + object.flowValidationResults = []; + for (var j = 0; j < message.flowValidationResults.length; ++j) + object.flowValidationResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.toObject(message.flowValidationResults[j], options); + } return object; }; /** - * Converts this GetFlowRequest to JSON. + * Converts this AgentValidationResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @instance * @returns {Object.} JSON object */ - GetFlowRequest.prototype.toJSON = function toJSON() { + AgentValidationResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFlowRequest + * Gets the default type url for AgentValidationResult * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.AgentValidationResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AgentValidationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.AgentValidationResult"; }; - return GetFlowRequest; + return AgentValidationResult; })(); - v3beta1.UpdateFlowRequest = (function() { + v3beta1.GetGenerativeSettingsRequest = (function() { /** - * Properties of an UpdateFlowRequest. + * Properties of a GetGenerativeSettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateFlowRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] UpdateFlowRequest flow - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFlowRequest updateMask - * @property {string|null} [languageCode] UpdateFlowRequest languageCode + * @interface IGetGenerativeSettingsRequest + * @property {string|null} [name] GetGenerativeSettingsRequest name + * @property {string|null} [languageCode] GetGenerativeSettingsRequest languageCode */ /** - * Constructs a new UpdateFlowRequest. + * Constructs a new GetGenerativeSettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateFlowRequest. - * @implements IUpdateFlowRequest + * @classdesc Represents a GetGenerativeSettingsRequest. + * @implements IGetGenerativeSettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest=} [properties] Properties to set */ - function UpdateFlowRequest(properties) { + function GetGenerativeSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88239,102 +86576,88 @@ } /** - * UpdateFlowRequest flow. - * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest - * @instance - */ - UpdateFlowRequest.prototype.flow = null; - - /** - * UpdateFlowRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * GetGenerativeSettingsRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @instance */ - UpdateFlowRequest.prototype.updateMask = null; + GetGenerativeSettingsRequest.prototype.name = ""; /** - * UpdateFlowRequest languageCode. + * GetGenerativeSettingsRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @instance */ - UpdateFlowRequest.prototype.languageCode = ""; + GetGenerativeSettingsRequest.prototype.languageCode = ""; /** - * Creates a new UpdateFlowRequest instance using the specified properties. + * Creates a new GetGenerativeSettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest} GetGenerativeSettingsRequest instance */ - UpdateFlowRequest.create = function create(properties) { - return new UpdateFlowRequest(properties); + GetGenerativeSettingsRequest.create = function create(properties) { + return new GetGenerativeSettingsRequest(properties); }; /** - * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified GetGenerativeSettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest} message GetGenerativeSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFlowRequest.encode = function encode(message, writer) { + GetGenerativeSettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, 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.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified GetGenerativeSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest} message GetGenerativeSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetGenerativeSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer. + * Decodes a GetGenerativeSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @static * @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.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest} GetGenerativeSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFlowRequest.decode = function decode(reader, length) { + GetGenerativeSettingsRequest.decode = function decode(reader, length) { 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.UpdateFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 3: { message.languageCode = reader.string(); break; } @@ -88347,42 +86670,35 @@ }; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a GetGenerativeSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest} GetGenerativeSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFlowRequest.decodeDelimited = function decodeDelimited(reader) { + GetGenerativeSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFlowRequest message. + * Verifies a GetGenerativeSettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateFlowRequest.verify = function verify(message) { + GetGenerativeSettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.flow != null && message.hasOwnProperty("flow")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); - if (error) - return "flow." + 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.languageCode != null && message.hasOwnProperty("languageCode")) if (!$util.isString(message.languageCode)) return "languageCode: string expected"; @@ -88390,106 +86706,96 @@ }; /** - * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetGenerativeSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest} GetGenerativeSettingsRequest */ - UpdateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest) + GetGenerativeSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest(); - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest(); + 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 UpdateFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetGenerativeSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} message UpdateFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest} message GetGenerativeSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFlowRequest.toObject = function toObject(message, options) { + GetGenerativeSettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.flow = null; - object.updateMask = null; + object.name = ""; object.languageCode = ""; } - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, 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.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; return object; }; /** - * Converts this UpdateFlowRequest to JSON. + * Converts this GetGenerativeSettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @instance * @returns {Object.} JSON object */ - UpdateFlowRequest.prototype.toJSON = function toJSON() { + GetGenerativeSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateFlowRequest + * Gets the default type url for GetGenerativeSettingsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetGenerativeSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetGenerativeSettingsRequest"; }; - return UpdateFlowRequest; + return GetGenerativeSettingsRequest; })(); - v3beta1.TrainFlowRequest = (function() { + v3beta1.UpdateGenerativeSettingsRequest = (function() { /** - * Properties of a TrainFlowRequest. + * Properties of an UpdateGenerativeSettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITrainFlowRequest - * @property {string|null} [name] TrainFlowRequest name + * @interface IUpdateGenerativeSettingsRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings|null} [generativeSettings] UpdateGenerativeSettingsRequest generativeSettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateGenerativeSettingsRequest updateMask */ /** - * Constructs a new TrainFlowRequest. + * Constructs a new UpdateGenerativeSettingsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TrainFlowRequest. - * @implements ITrainFlowRequest + * @classdesc Represents an UpdateGenerativeSettingsRequest. + * @implements IUpdateGenerativeSettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest=} [properties] Properties to set */ - function TrainFlowRequest(properties) { + function UpdateGenerativeSettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88497,75 +86803,89 @@ } /** - * TrainFlowRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * UpdateGenerativeSettingsRequest generativeSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings|null|undefined} generativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @instance */ - TrainFlowRequest.prototype.name = ""; + UpdateGenerativeSettingsRequest.prototype.generativeSettings = null; /** - * Creates a new TrainFlowRequest instance using the specified properties. + * UpdateGenerativeSettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest + * @instance + */ + UpdateGenerativeSettingsRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateGenerativeSettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest} UpdateGenerativeSettingsRequest instance */ - TrainFlowRequest.create = function create(properties) { - return new TrainFlowRequest(properties); + UpdateGenerativeSettingsRequest.create = function create(properties) { + return new UpdateGenerativeSettingsRequest(properties); }; /** - * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * Encodes the specified UpdateGenerativeSettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest} message UpdateGenerativeSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainFlowRequest.encode = function encode(message, writer) { + UpdateGenerativeSettingsRequest.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.generativeSettings != null && Object.hasOwnProperty.call(message, "generativeSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.encode(message.generativeSettings, 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 TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * Encodes the specified UpdateGenerativeSettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest} message UpdateGenerativeSettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateGenerativeSettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer. + * Decodes an UpdateGenerativeSettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @static * @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.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest} UpdateGenerativeSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainFlowRequest.decode = function decode(reader, length) { + UpdateGenerativeSettingsRequest.decode = function decode(reader, length) { 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.TrainFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.generativeSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -88577,123 +86897,188 @@ }; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateGenerativeSettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest} UpdateGenerativeSettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainFlowRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateGenerativeSettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainFlowRequest message. + * Verifies an UpdateGenerativeSettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainFlowRequest.verify = function verify(message) { + UpdateGenerativeSettingsRequest.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.generativeSettings != null && message.hasOwnProperty("generativeSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify(message.generativeSettings); + if (error) + return "generativeSettings." + 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 TrainFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateGenerativeSettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest} UpdateGenerativeSettingsRequest */ - TrainFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest) + UpdateGenerativeSettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest(); + if (object.generativeSettings != null) { + if (typeof object.generativeSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.generativeSettings: object expected"); + message.generativeSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.fromObject(object.generativeSettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateGenerativeSettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} message TrainFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest} message UpdateGenerativeSettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainFlowRequest.toObject = function toObject(message, options) { + UpdateGenerativeSettingsRequest.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.generativeSettings = null; + object.updateMask = null; + } + if (message.generativeSettings != null && message.hasOwnProperty("generativeSettings")) + object.generativeSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.toObject(message.generativeSettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this TrainFlowRequest to JSON. + * Converts this UpdateGenerativeSettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @instance * @returns {Object.} JSON object */ - TrainFlowRequest.prototype.toJSON = function toJSON() { + UpdateGenerativeSettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainFlowRequest + * Gets the default type url for UpdateGenerativeSettingsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateGenerativeSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateGenerativeSettingsRequest"; }; - return TrainFlowRequest; + return UpdateGenerativeSettingsRequest; })(); - v3beta1.ValidateFlowRequest = (function() { + /** + * AudioEncoding enum. + * @name google.cloud.dialogflow.cx.v3beta1.AudioEncoding + * @enum {number} + * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value + * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value + * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value + * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value + * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value + * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value + * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value + * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value + */ + v3beta1.AudioEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; + values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; + values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; + values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; + values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; + values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; + values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; + return values; + })(); + + /** + * SpeechModelVariant enum. + * @name google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant + * @enum {number} + * @property {number} SPEECH_MODEL_VARIANT_UNSPECIFIED=0 SPEECH_MODEL_VARIANT_UNSPECIFIED value + * @property {number} USE_BEST_AVAILABLE=1 USE_BEST_AVAILABLE value + * @property {number} USE_STANDARD=2 USE_STANDARD value + * @property {number} USE_ENHANCED=3 USE_ENHANCED value + */ + v3beta1.SpeechModelVariant = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SPEECH_MODEL_VARIANT_UNSPECIFIED"] = 0; + values[valuesById[1] = "USE_BEST_AVAILABLE"] = 1; + values[valuesById[2] = "USE_STANDARD"] = 2; + values[valuesById[3] = "USE_ENHANCED"] = 3; + return values; + })(); + + v3beta1.SpeechWordInfo = (function() { /** - * Properties of a ValidateFlowRequest. + * Properties of a SpeechWordInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IValidateFlowRequest - * @property {string|null} [name] ValidateFlowRequest name - * @property {string|null} [languageCode] ValidateFlowRequest languageCode + * @interface ISpeechWordInfo + * @property {string|null} [word] SpeechWordInfo word + * @property {google.protobuf.IDuration|null} [startOffset] SpeechWordInfo startOffset + * @property {google.protobuf.IDuration|null} [endOffset] SpeechWordInfo endOffset + * @property {number|null} [confidence] SpeechWordInfo confidence */ /** - * Constructs a new ValidateFlowRequest. + * Constructs a new SpeechWordInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ValidateFlowRequest. - * @implements IValidateFlowRequest + * @classdesc Represents a SpeechWordInfo. + * @implements ISpeechWordInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set */ - function ValidateFlowRequest(properties) { + function SpeechWordInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88701,89 +87086,117 @@ } /** - * ValidateFlowRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * SpeechWordInfo word. + * @member {string} word + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance */ - ValidateFlowRequest.prototype.name = ""; + SpeechWordInfo.prototype.word = ""; /** - * ValidateFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * SpeechWordInfo startOffset. + * @member {google.protobuf.IDuration|null|undefined} startOffset + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance */ - ValidateFlowRequest.prototype.languageCode = ""; + SpeechWordInfo.prototype.startOffset = null; /** - * Creates a new ValidateFlowRequest instance using the specified properties. + * SpeechWordInfo endOffset. + * @member {google.protobuf.IDuration|null|undefined} endOffset + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.endOffset = null; + + /** + * SpeechWordInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.confidence = 0; + + /** + * Creates a new SpeechWordInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo instance */ - ValidateFlowRequest.create = function create(properties) { - return new ValidateFlowRequest(properties); + SpeechWordInfo.create = function create(properties) { + return new SpeechWordInfo(properties); }; /** - * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. + * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateFlowRequest.encode = function encode(message, writer) { + SpeechWordInfo.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.startOffset != null && Object.hasOwnProperty.call(message, "startOffset")) + $root.google.protobuf.Duration.encode(message.startOffset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endOffset != null && Object.hasOwnProperty.call(message, "endOffset")) + $root.google.protobuf.Duration.encode(message.endOffset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.word != null && Object.hasOwnProperty.call(message, "word")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.word); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.confidence); return writer; }; /** - * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. + * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer. + * Decodes a SpeechWordInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @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.ValidateFlowRequest} ValidateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateFlowRequest.decode = function decode(reader, length) { + SpeechWordInfo.decode = function decode(reader, length) { 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.ValidateFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 3: { + message.word = reader.string(); + break; + } case 1: { - message.name = reader.string(); + message.startOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } case 2: { - message.languageCode = reader.string(); + message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 4: { + message.confidence = reader.float(); break; } default: @@ -88795,132 +87208,164 @@ }; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateFlowRequest.decodeDelimited = function decodeDelimited(reader) { + SpeechWordInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateFlowRequest message. + * Verifies a SpeechWordInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateFlowRequest.verify = function verify(message) { + SpeechWordInfo.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.word != null && message.hasOwnProperty("word")) + if (!$util.isString(message.word)) + return "word: string expected"; + if (message.startOffset != null && message.hasOwnProperty("startOffset")) { + var error = $root.google.protobuf.Duration.verify(message.startOffset); + if (error) + return "startOffset." + error; + } + if (message.endOffset != null && message.hasOwnProperty("endOffset")) { + var error = $root.google.protobuf.Duration.verify(message.endOffset); + if (error) + return "endOffset." + error; + } + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; return null; }; /** - * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo */ - ValidateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest) + SpeechWordInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest(); - 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.SpeechWordInfo(); + if (object.word != null) + message.word = String(object.word); + if (object.startOffset != null) { + if (typeof object.startOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.startOffset: object expected"); + message.startOffset = $root.google.protobuf.Duration.fromObject(object.startOffset); + } + if (object.endOffset != null) { + if (typeof object.endOffset !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.endOffset: object expected"); + message.endOffset = $root.google.protobuf.Duration.fromObject(object.endOffset); + } + if (object.confidence != null) + message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} message ValidateFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} message SpeechWordInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateFlowRequest.toObject = function toObject(message, options) { + SpeechWordInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.languageCode = ""; + object.startOffset = null; + object.endOffset = null; + object.word = ""; + object.confidence = 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.startOffset != null && message.hasOwnProperty("startOffset")) + object.startOffset = $root.google.protobuf.Duration.toObject(message.startOffset, options); + if (message.endOffset != null && message.hasOwnProperty("endOffset")) + object.endOffset = $root.google.protobuf.Duration.toObject(message.endOffset, options); + if (message.word != null && message.hasOwnProperty("word")) + object.word = message.word; + if (message.confidence != null && message.hasOwnProperty("confidence")) + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; return object; }; /** - * Converts this ValidateFlowRequest to JSON. + * Converts this SpeechWordInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance * @returns {Object.} JSON object */ - ValidateFlowRequest.prototype.toJSON = function toJSON() { + SpeechWordInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateFlowRequest + * Gets the default type url for SpeechWordInfo * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SpeechWordInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo"; }; - return ValidateFlowRequest; + return SpeechWordInfo; })(); - v3beta1.GetFlowValidationResultRequest = (function() { + v3beta1.InputAudioConfig = (function() { /** - * Properties of a GetFlowValidationResultRequest. + * Properties of an InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetFlowValidationResultRequest - * @property {string|null} [name] GetFlowValidationResultRequest name - * @property {string|null} [languageCode] GetFlowValidationResultRequest languageCode + * @interface IInputAudioConfig + * @property {google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null} [audioEncoding] InputAudioConfig audioEncoding + * @property {number|null} [sampleRateHertz] InputAudioConfig sampleRateHertz + * @property {boolean|null} [enableWordInfo] InputAudioConfig enableWordInfo + * @property {Array.|null} [phraseHints] InputAudioConfig phraseHints + * @property {string|null} [model] InputAudioConfig model + * @property {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null} [modelVariant] InputAudioConfig modelVariant + * @property {boolean|null} [singleUtterance] InputAudioConfig singleUtterance */ /** - * Constructs a new GetFlowValidationResultRequest. + * Constructs a new InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetFlowValidationResultRequest. - * @implements IGetFlowValidationResultRequest + * @classdesc Represents an InputAudioConfig. + * @implements IInputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set */ - function GetFlowValidationResultRequest(properties) { + function InputAudioConfig(properties) { + this.phraseHints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88928,89 +87373,162 @@ } /** - * GetFlowValidationResultRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * InputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3beta1.AudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - GetFlowValidationResultRequest.prototype.name = ""; + InputAudioConfig.prototype.audioEncoding = 0; /** - * GetFlowValidationResultRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * InputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - GetFlowValidationResultRequest.prototype.languageCode = ""; + InputAudioConfig.prototype.sampleRateHertz = 0; /** - * Creates a new GetFlowValidationResultRequest instance using the specified properties. + * InputAudioConfig enableWordInfo. + * @member {boolean} enableWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.enableWordInfo = false; + + /** + * InputAudioConfig phraseHints. + * @member {Array.} phraseHints + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.phraseHints = $util.emptyArray; + + /** + * InputAudioConfig model. + * @member {string} model + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.model = ""; + + /** + * InputAudioConfig modelVariant. + * @member {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant} modelVariant + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.modelVariant = 0; + + /** + * InputAudioConfig singleUtterance. + * @member {boolean} singleUtterance + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @instance + */ + InputAudioConfig.prototype.singleUtterance = false; + + /** + * Creates a new InputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig instance */ - GetFlowValidationResultRequest.create = function create(properties) { - return new GetFlowValidationResultRequest(properties); + InputAudioConfig.create = function create(properties) { + return new InputAudioConfig(properties); }; /** - * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. + * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowValidationResultRequest.encode = function encode(message, writer) { + InputAudioConfig.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.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.phraseHints != null && message.phraseHints.length) + for (var i = 0; i < message.phraseHints.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.phraseHints[i]); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.model); + if (message.singleUtterance != null && Object.hasOwnProperty.call(message, "singleUtterance")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.singleUtterance); + if (message.modelVariant != null && Object.hasOwnProperty.call(message, "modelVariant")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.modelVariant); + if (message.enableWordInfo != null && Object.hasOwnProperty.call(message, "enableWordInfo")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.enableWordInfo); return writer; }; /** - * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. + * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowValidationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. + * Decodes an InputAudioConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @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.GetFlowValidationResultRequest} GetFlowValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowValidationResultRequest.decode = function decode(reader, length) { + InputAudioConfig.decode = function decode(reader, length) { 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.GetFlowValidationResultRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.audioEncoding = reader.int32(); break; } case 2: { - message.languageCode = reader.string(); + message.sampleRateHertz = reader.int32(); + break; + } + case 13: { + message.enableWordInfo = reader.bool(); + break; + } + case 4: { + if (!(message.phraseHints && message.phraseHints.length)) + message.phraseHints = []; + message.phraseHints.push(reader.string()); + break; + } + case 7: { + message.model = reader.string(); + break; + } + case 10: { + message.modelVariant = reader.int32(); + break; + } + case 8: { + message.singleUtterance = reader.bool(); break; } default: @@ -89022,134 +87540,281 @@ }; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. + * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowValidationResultRequest.decodeDelimited = function decodeDelimited(reader) { + InputAudioConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFlowValidationResultRequest message. + * Verifies an InputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFlowValidationResultRequest.verify = function verify(message) { + InputAudioConfig.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.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + switch (message.audioEncoding) { + default: + return "audioEncoding: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + if (!$util.isInteger(message.sampleRateHertz)) + return "sampleRateHertz: integer expected"; + if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) + if (typeof message.enableWordInfo !== "boolean") + return "enableWordInfo: boolean expected"; + if (message.phraseHints != null && message.hasOwnProperty("phraseHints")) { + if (!Array.isArray(message.phraseHints)) + return "phraseHints: array expected"; + for (var i = 0; i < message.phraseHints.length; ++i) + if (!$util.isString(message.phraseHints[i])) + return "phraseHints: string[] expected"; + } + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) + switch (message.modelVariant) { + default: + return "modelVariant: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + if (typeof message.singleUtterance !== "boolean") + return "singleUtterance: boolean expected"; return null; }; /** - * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig */ - GetFlowValidationResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest) + InputAudioConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest(); - 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.InputAudioConfig(); + switch (object.audioEncoding) { + default: + if (typeof object.audioEncoding === "number") { + message.audioEncoding = object.audioEncoding; + break; + } + break; + case "AUDIO_ENCODING_UNSPECIFIED": + case 0: + message.audioEncoding = 0; + break; + case "AUDIO_ENCODING_LINEAR_16": + case 1: + message.audioEncoding = 1; + break; + case "AUDIO_ENCODING_FLAC": + case 2: + message.audioEncoding = 2; + break; + case "AUDIO_ENCODING_MULAW": + case 3: + message.audioEncoding = 3; + break; + case "AUDIO_ENCODING_AMR": + case 4: + message.audioEncoding = 4; + break; + case "AUDIO_ENCODING_AMR_WB": + case 5: + message.audioEncoding = 5; + break; + case "AUDIO_ENCODING_OGG_OPUS": + case 6: + message.audioEncoding = 6; + break; + case "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE": + case 7: + message.audioEncoding = 7; + break; + } + if (object.sampleRateHertz != null) + message.sampleRateHertz = object.sampleRateHertz | 0; + if (object.enableWordInfo != null) + message.enableWordInfo = Boolean(object.enableWordInfo); + if (object.phraseHints) { + if (!Array.isArray(object.phraseHints)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.phraseHints: array expected"); + message.phraseHints = []; + for (var i = 0; i < object.phraseHints.length; ++i) + message.phraseHints[i] = String(object.phraseHints[i]); + } + if (object.model != null) + message.model = String(object.model); + switch (object.modelVariant) { + default: + if (typeof object.modelVariant === "number") { + message.modelVariant = object.modelVariant; + break; + } + break; + case "SPEECH_MODEL_VARIANT_UNSPECIFIED": + case 0: + message.modelVariant = 0; + break; + case "USE_BEST_AVAILABLE": + case 1: + message.modelVariant = 1; + break; + case "USE_STANDARD": + case 2: + message.modelVariant = 2; + break; + case "USE_ENHANCED": + case 3: + message.modelVariant = 3; + break; + } + if (object.singleUtterance != null) + message.singleUtterance = Boolean(object.singleUtterance); return message; }; /** - * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. + * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} message GetFlowValidationResultRequest + * @param {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} message InputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFlowValidationResultRequest.toObject = function toObject(message, options) { + InputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.phraseHints = []; if (options.defaults) { - object.name = ""; - object.languageCode = ""; + object.audioEncoding = options.enums === String ? "AUDIO_ENCODING_UNSPECIFIED" : 0; + object.sampleRateHertz = 0; + object.model = ""; + object.singleUtterance = false; + object.modelVariant = options.enums === String ? "SPEECH_MODEL_VARIANT_UNSPECIFIED" : 0; + object.enableWordInfo = 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.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.AudioEncoding[message.audioEncoding] === undefined ? message.audioEncoding : $root.google.cloud.dialogflow.cx.v3beta1.AudioEncoding[message.audioEncoding] : message.audioEncoding; + if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) + object.sampleRateHertz = message.sampleRateHertz; + if (message.phraseHints && message.phraseHints.length) { + object.phraseHints = []; + for (var j = 0; j < message.phraseHints.length; ++j) + object.phraseHints[j] = message.phraseHints[j]; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + object.singleUtterance = message.singleUtterance; + if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) + object.modelVariant = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant[message.modelVariant] === undefined ? message.modelVariant : $root.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant[message.modelVariant] : message.modelVariant; + if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) + object.enableWordInfo = message.enableWordInfo; return object; }; /** - * Converts this GetFlowValidationResultRequest to JSON. + * Converts this InputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance * @returns {Object.} JSON object */ - GetFlowValidationResultRequest.prototype.toJSON = function toJSON() { + InputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFlowValidationResultRequest + * Gets the default type url for InputAudioConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFlowValidationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.InputAudioConfig"; }; - return GetFlowValidationResultRequest; + return InputAudioConfig; })(); - v3beta1.FlowValidationResult = (function() { + /** + * 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; + })(); + + v3beta1.VoiceSelectionParams = (function() { /** - * Properties of a FlowValidationResult. + * Properties of a VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFlowValidationResult - * @property {string|null} [name] FlowValidationResult name - * @property {Array.|null} [validationMessages] FlowValidationResult validationMessages - * @property {google.protobuf.ITimestamp|null} [updateTime] FlowValidationResult updateTime + * @interface IVoiceSelectionParams + * @property {string|null} [name] VoiceSelectionParams name + * @property {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender */ /** - * Constructs a new FlowValidationResult. + * Constructs a new VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a FlowValidationResult. - * @implements IFlowValidationResult + * @classdesc Represents a VoiceSelectionParams. + * @implements IVoiceSelectionParams * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set */ - function FlowValidationResult(properties) { - this.validationMessages = []; + function VoiceSelectionParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89157,91 +87822,80 @@ } /** - * FlowValidationResult name. + * VoiceSelectionParams name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult - * @instance - */ - FlowValidationResult.prototype.name = ""; - - /** - * FlowValidationResult validationMessages. - * @member {Array.} validationMessages - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @instance */ - FlowValidationResult.prototype.validationMessages = $util.emptyArray; + VoiceSelectionParams.prototype.name = ""; /** - * FlowValidationResult updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * VoiceSelectionParams ssmlGender. + * @member {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender} ssmlGender + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @instance */ - FlowValidationResult.prototype.updateTime = null; + VoiceSelectionParams.prototype.ssmlGender = 0; /** - * Creates a new FlowValidationResult instance using the specified properties. + * Creates a new VoiceSelectionParams instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams instance */ - FlowValidationResult.create = function create(properties) { - return new FlowValidationResult(properties); + VoiceSelectionParams.create = function create(properties) { + return new VoiceSelectionParams(properties); }; /** - * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FlowValidationResult.encode = function encode(message, writer) { + VoiceSelectionParams.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.validationMessages != null && message.validationMessages.length) - for (var i = 0; i < message.validationMessages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.encode(message.validationMessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.ssmlGender != null && Object.hasOwnProperty.call(message, "ssmlGender")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssmlGender); return writer; }; /** - * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FlowValidationResult.encodeDelimited = function encodeDelimited(message, writer) { + VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FlowValidationResult message from the specified reader or buffer. + * Decodes a VoiceSelectionParams message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @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.FlowValidationResult} FlowValidationResult + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FlowValidationResult.decode = function decode(reader, length) { + VoiceSelectionParams.decode = function decode(reader, length) { 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.FlowValidationResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -89250,13 +87904,7 @@ break; } case 2: { - if (!(message.validationMessages && message.validationMessages.length)) - message.validationMessages = []; - message.validationMessages.push($root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.decode(reader, reader.uint32())); - break; - } - case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.ssmlGender = reader.int32(); break; } default: @@ -89268,166 +87916,165 @@ }; /** - * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. + * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FlowValidationResult.decodeDelimited = function decodeDelimited(reader) { + VoiceSelectionParams.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FlowValidationResult message. + * Verifies a VoiceSelectionParams message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FlowValidationResult.verify = function verify(message) { + VoiceSelectionParams.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.validationMessages != null && message.hasOwnProperty("validationMessages")) { - if (!Array.isArray(message.validationMessages)) - return "validationMessages: array expected"; - for (var i = 0; i < message.validationMessages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify(message.validationMessages[i]); - if (error) - return "validationMessages." + error; + if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) + switch (message.ssmlGender) { + default: + return "ssmlGender: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; } - } - 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 FlowValidationResult message from a plain object. Also converts values to their respective internal types. + * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams */ - FlowValidationResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) + VoiceSelectionParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); if (object.name != null) message.name = String(object.name); - if (object.validationMessages) { - if (!Array.isArray(object.validationMessages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.validationMessages: array expected"); - message.validationMessages = []; - for (var i = 0; i < object.validationMessages.length; ++i) { - if (typeof object.validationMessages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.validationMessages: object expected"); - message.validationMessages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.fromObject(object.validationMessages[i]); + switch (object.ssmlGender) { + default: + if (typeof object.ssmlGender === "number") { + message.ssmlGender = object.ssmlGender; + break; } - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + break; + case "SSML_VOICE_GENDER_UNSPECIFIED": + case 0: + message.ssmlGender = 0; + break; + case "SSML_VOICE_GENDER_MALE": + case 1: + message.ssmlGender = 1; + break; + case "SSML_VOICE_GENDER_FEMALE": + case 2: + message.ssmlGender = 2; + break; + case "SSML_VOICE_GENDER_NEUTRAL": + case 3: + message.ssmlGender = 3; + break; } return message; }; /** - * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. + * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} message FlowValidationResult + * @param {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} message VoiceSelectionParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FlowValidationResult.toObject = function toObject(message, options) { + VoiceSelectionParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.validationMessages = []; if (options.defaults) { object.name = ""; - object.updateTime = null; + object.ssmlGender = options.enums === String ? "SSML_VOICE_GENDER_UNSPECIFIED" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.validationMessages && message.validationMessages.length) { - object.validationMessages = []; - for (var j = 0; j < message.validationMessages.length; ++j) - object.validationMessages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.toObject(message.validationMessages[j], options); - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) + object.ssmlGender = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender[message.ssmlGender] === undefined ? message.ssmlGender : $root.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; return object; }; /** - * Converts this FlowValidationResult to JSON. + * Converts this VoiceSelectionParams to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @instance * @returns {Object.} JSON object */ - FlowValidationResult.prototype.toJSON = function toJSON() { + VoiceSelectionParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FlowValidationResult + * Gets the default type url for VoiceSelectionParams * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FlowValidationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VoiceSelectionParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.FlowValidationResult"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams"; }; - return FlowValidationResult; + return VoiceSelectionParams; })(); - v3beta1.ImportFlowRequest = (function() { + v3beta1.SynthesizeSpeechConfig = (function() { /** - * Properties of an ImportFlowRequest. + * Properties of a SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportFlowRequest - * @property {string|null} [parent] ImportFlowRequest parent - * @property {string|null} [flowUri] ImportFlowRequest flowUri - * @property {Uint8Array|null} [flowContent] ImportFlowRequest flowContent - * @property {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|null} [importOption] ImportFlowRequest importOption - * @property {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy|null} [flowImportStrategy] ImportFlowRequest flowImportStrategy + * @interface ISynthesizeSpeechConfig + * @property {number|null} [speakingRate] SynthesizeSpeechConfig speakingRate + * @property {number|null} [pitch] SynthesizeSpeechConfig pitch + * @property {number|null} [volumeGainDb] SynthesizeSpeechConfig volumeGainDb + * @property {Array.|null} [effectsProfileId] SynthesizeSpeechConfig effectsProfileId + * @property {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null} [voice] SynthesizeSpeechConfig voice */ /** - * Constructs a new ImportFlowRequest. + * Constructs a new SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportFlowRequest. - * @implements IImportFlowRequest + * @classdesc Represents a SynthesizeSpeechConfig. + * @implements ISynthesizeSpeechConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set */ - function ImportFlowRequest(properties) { + function SynthesizeSpeechConfig(properties) { + this.effectsProfileId = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89435,145 +88082,134 @@ } /** - * ImportFlowRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * SynthesizeSpeechConfig speakingRate. + * @member {number} speakingRate + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - ImportFlowRequest.prototype.parent = ""; + SynthesizeSpeechConfig.prototype.speakingRate = 0; /** - * ImportFlowRequest flowUri. - * @member {string|null|undefined} flowUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * SynthesizeSpeechConfig pitch. + * @member {number} pitch + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - ImportFlowRequest.prototype.flowUri = null; + SynthesizeSpeechConfig.prototype.pitch = 0; /** - * ImportFlowRequest flowContent. - * @member {Uint8Array|null|undefined} flowContent - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * SynthesizeSpeechConfig volumeGainDb. + * @member {number} volumeGainDb + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - ImportFlowRequest.prototype.flowContent = null; + SynthesizeSpeechConfig.prototype.volumeGainDb = 0; /** - * ImportFlowRequest importOption. - * @member {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption} importOption - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest - * @instance - */ - ImportFlowRequest.prototype.importOption = 0; - - /** - * ImportFlowRequest flowImportStrategy. - * @member {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy|null|undefined} flowImportStrategy - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * SynthesizeSpeechConfig effectsProfileId. + * @member {Array.} effectsProfileId + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - ImportFlowRequest.prototype.flowImportStrategy = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + SynthesizeSpeechConfig.prototype.effectsProfileId = $util.emptyArray; /** - * ImportFlowRequest flow. - * @member {"flowUri"|"flowContent"|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * SynthesizeSpeechConfig voice. + * @member {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null|undefined} voice + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - Object.defineProperty(ImportFlowRequest.prototype, "flow", { - get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), - set: $util.oneOfSetter($oneOfFields) - }); + SynthesizeSpeechConfig.prototype.voice = null; /** - * Creates a new ImportFlowRequest instance using the specified properties. + * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance */ - ImportFlowRequest.create = function create(properties) { - return new ImportFlowRequest(properties); + SynthesizeSpeechConfig.create = function create(properties) { + return new SynthesizeSpeechConfig(properties); }; /** - * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} message ImportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowRequest.encode = function encode(message, writer) { + SynthesizeSpeechConfig.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.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); - if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.flowContent); - if (message.importOption != null && Object.hasOwnProperty.call(message, "importOption")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.importOption); - if (message.flowImportStrategy != null && Object.hasOwnProperty.call(message, "flowImportStrategy")) - $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.encode(message.flowImportStrategy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.speakingRate != null && Object.hasOwnProperty.call(message, "speakingRate")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.speakingRate); + if (message.pitch != null && Object.hasOwnProperty.call(message, "pitch")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.pitch); + if (message.volumeGainDb != null && Object.hasOwnProperty.call(message, "volumeGainDb")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.volumeGainDb); + if (message.voice != null && Object.hasOwnProperty.call(message, "voice")) + $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.encode(message.voice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.effectsProfileId != null && message.effectsProfileId.length) + for (var i = 0; i < message.effectsProfileId.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.effectsProfileId[i]); return writer; }; /** - * Encodes the specified ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} message ImportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @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.ImportFlowRequest} ImportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowRequest.decode = function decode(reader, length) { + SynthesizeSpeechConfig.decode = function decode(reader, length) { 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.ImportFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.speakingRate = reader.double(); break; } case 2: { - message.flowUri = reader.string(); + message.pitch = reader.double(); break; } case 3: { - message.flowContent = reader.bytes(); + message.volumeGainDb = reader.double(); break; } - case 4: { - message.importOption = reader.int32(); + case 5: { + if (!(message.effectsProfileId && message.effectsProfileId.length)) + message.effectsProfileId = []; + message.effectsProfileId.push(reader.string()); break; } - case 5: { - message.flowImportStrategy = $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.decode(reader, reader.uint32()); + case 4: { + message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.decode(reader, reader.uint32()); break; } default: @@ -89585,214 +88221,197 @@ }; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowRequest.decodeDelimited = function decodeDelimited(reader) { + SynthesizeSpeechConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFlowRequest message. + * Verifies a SynthesizeSpeechConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFlowRequest.verify = function verify(message) { + SynthesizeSpeechConfig.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.flowUri != null && message.hasOwnProperty("flowUri")) { - properties.flow = 1; - if (!$util.isString(message.flowUri)) - return "flowUri: string expected"; - } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - if (properties.flow === 1) - return "flow: multiple values"; - properties.flow = 1; - if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) - return "flowContent: buffer expected"; + if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) + if (typeof message.speakingRate !== "number") + return "speakingRate: number expected"; + if (message.pitch != null && message.hasOwnProperty("pitch")) + if (typeof message.pitch !== "number") + return "pitch: number expected"; + if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) + if (typeof message.volumeGainDb !== "number") + return "volumeGainDb: number expected"; + if (message.effectsProfileId != null && message.hasOwnProperty("effectsProfileId")) { + if (!Array.isArray(message.effectsProfileId)) + return "effectsProfileId: array expected"; + for (var i = 0; i < message.effectsProfileId.length; ++i) + if (!$util.isString(message.effectsProfileId[i])) + return "effectsProfileId: string[] expected"; } - if (message.importOption != null && message.hasOwnProperty("importOption")) - switch (message.importOption) { - default: - return "importOption: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.flowImportStrategy != null && message.hasOwnProperty("flowImportStrategy")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify(message.flowImportStrategy); + if (message.voice != null && message.hasOwnProperty("voice")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify(message.voice); if (error) - return "flowImportStrategy." + error; + return "voice." + error; } return null; }; /** - * Creates an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig */ - ImportFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) + SynthesizeSpeechConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.flowUri != null) - message.flowUri = String(object.flowUri); - if (object.flowContent != null) - if (typeof object.flowContent === "string") - $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); - else if (object.flowContent.length >= 0) - message.flowContent = object.flowContent; - switch (object.importOption) { - default: - if (typeof object.importOption === "number") { - message.importOption = object.importOption; - break; - } - break; - case "IMPORT_OPTION_UNSPECIFIED": - case 0: - message.importOption = 0; - break; - case "KEEP": - case 1: - message.importOption = 1; - break; - case "FALLBACK": - case 2: - message.importOption = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(); + if (object.speakingRate != null) + message.speakingRate = Number(object.speakingRate); + if (object.pitch != null) + message.pitch = Number(object.pitch); + if (object.volumeGainDb != null) + message.volumeGainDb = Number(object.volumeGainDb); + if (object.effectsProfileId) { + if (!Array.isArray(object.effectsProfileId)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.effectsProfileId: array expected"); + message.effectsProfileId = []; + for (var i = 0; i < object.effectsProfileId.length; ++i) + message.effectsProfileId[i] = String(object.effectsProfileId[i]); } - if (object.flowImportStrategy != null) { - if (typeof object.flowImportStrategy !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.flowImportStrategy: object expected"); - message.flowImportStrategy = $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.fromObject(object.flowImportStrategy); + if (object.voice != null) { + if (typeof object.voice !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.voice: object expected"); + message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.fromObject(object.voice); } return message; }; /** - * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} message ImportFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} message SynthesizeSpeechConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFlowRequest.toObject = function toObject(message, options) { + SynthesizeSpeechConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.effectsProfileId = []; if (options.defaults) { - object.parent = ""; - object.importOption = options.enums === String ? "IMPORT_OPTION_UNSPECIFIED" : 0; - object.flowImportStrategy = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) { - object.flowUri = message.flowUri; - if (options.oneofs) - object.flow = "flowUri"; + object.speakingRate = 0; + object.pitch = 0; + object.volumeGainDb = 0; + object.voice = null; } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; - if (options.oneofs) - object.flow = "flowContent"; + if (message.speakingRate != null && message.hasOwnProperty("speakingRate")) + object.speakingRate = options.json && !isFinite(message.speakingRate) ? String(message.speakingRate) : message.speakingRate; + if (message.pitch != null && message.hasOwnProperty("pitch")) + object.pitch = options.json && !isFinite(message.pitch) ? String(message.pitch) : message.pitch; + if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) + object.volumeGainDb = options.json && !isFinite(message.volumeGainDb) ? String(message.volumeGainDb) : message.volumeGainDb; + if (message.voice != null && message.hasOwnProperty("voice")) + object.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.toObject(message.voice, options); + if (message.effectsProfileId && message.effectsProfileId.length) { + object.effectsProfileId = []; + for (var j = 0; j < message.effectsProfileId.length; ++j) + object.effectsProfileId[j] = message.effectsProfileId[j]; } - if (message.importOption != null && message.hasOwnProperty("importOption")) - object.importOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption[message.importOption] === undefined ? message.importOption : $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption[message.importOption] : message.importOption; - if (message.flowImportStrategy != null && message.hasOwnProperty("flowImportStrategy")) - object.flowImportStrategy = $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.toObject(message.flowImportStrategy, options); return object; }; /** - * Converts this ImportFlowRequest to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance * @returns {Object.} JSON object */ - ImportFlowRequest.prototype.toJSON = function toJSON() { + SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportFlowRequest + * Gets the default type url for SynthesizeSpeechConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SynthesizeSpeechConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig"; }; - /** - * ImportOption enum. - * @name google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption - * @enum {number} - * @property {number} IMPORT_OPTION_UNSPECIFIED=0 IMPORT_OPTION_UNSPECIFIED value - * @property {number} KEEP=1 KEEP value - * @property {number} FALLBACK=2 FALLBACK value - */ - ImportFlowRequest.ImportOption = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IMPORT_OPTION_UNSPECIFIED"] = 0; - values[valuesById[1] = "KEEP"] = 1; - values[valuesById[2] = "FALLBACK"] = 2; - return values; - })(); + return SynthesizeSpeechConfig; + })(); - return ImportFlowRequest; + /** + * 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.FlowImportStrategy = (function() { + v3beta1.OutputAudioConfig = (function() { /** - * Properties of a FlowImportStrategy. + * Properties of an OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFlowImportStrategy - * @property {google.cloud.dialogflow.cx.v3beta1.ImportStrategy|null} [globalImportStrategy] FlowImportStrategy globalImportStrategy + * @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 FlowImportStrategy. + * Constructs a new OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a FlowImportStrategy. - * @implements IFlowImportStrategy + * @classdesc Represents an OutputAudioConfig. + * @implements IOutputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set */ - function FlowImportStrategy(properties) { + function OutputAudioConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89800,75 +88419,103 @@ } /** - * FlowImportStrategy globalImportStrategy. - * @member {google.cloud.dialogflow.cx.v3beta1.ImportStrategy} globalImportStrategy - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * OutputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance */ - FlowImportStrategy.prototype.globalImportStrategy = 0; + OutputAudioConfig.prototype.audioEncoding = 0; /** - * Creates a new FlowImportStrategy instance using the specified properties. + * 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.FlowImportStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy} FlowImportStrategy instance + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig instance */ - FlowImportStrategy.create = function create(properties) { - return new FlowImportStrategy(properties); + OutputAudioConfig.create = function create(properties) { + return new OutputAudioConfig(properties); }; /** - * Encodes the specified FlowImportStrategy message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify|verify} messages. + * 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.FlowImportStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy} message FlowImportStrategy message or plain object to encode + * @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 */ - FlowImportStrategy.encode = function encode(message, writer) { + OutputAudioConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.globalImportStrategy != null && Object.hasOwnProperty.call(message, "globalImportStrategy")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.globalImportStrategy); + 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 FlowImportStrategy message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify|verify} messages. + * 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.FlowImportStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy} message FlowImportStrategy message or plain object to encode + * @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 */ - FlowImportStrategy.encodeDelimited = function encodeDelimited(message, writer) { + OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FlowImportStrategy message from the specified reader or buffer. + * Decodes an OutputAudioConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @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.FlowImportStrategy} FlowImportStrategy + * @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 */ - FlowImportStrategy.decode = function decode(reader, length) { + 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.FlowImportStrategy(); + 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.globalImportStrategy = reader.int32(); + 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: @@ -89880,161 +88527,184 @@ }; /** - * Decodes a FlowImportStrategy message from the specified reader or buffer, length delimited. + * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @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.FlowImportStrategy} FlowImportStrategy + * @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 */ - FlowImportStrategy.decodeDelimited = function decodeDelimited(reader) { + OutputAudioConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FlowImportStrategy message. + * Verifies an OutputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @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 */ - FlowImportStrategy.verify = function verify(message) { + OutputAudioConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.globalImportStrategy != null && message.hasOwnProperty("globalImportStrategy")) - switch (message.globalImportStrategy) { + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + switch (message.audioEncoding) { default: - return "globalImportStrategy: enum value expected"; + return "audioEncoding: enum value expected"; case 0: case 1: case 2: - case 3: 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 a FlowImportStrategy message from a plain object. Also converts values to their respective internal types. + * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy} FlowImportStrategy + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig */ - FlowImportStrategy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy) + 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.FlowImportStrategy(); - switch (object.globalImportStrategy) { + var message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); + switch (object.audioEncoding) { default: - if (typeof object.globalImportStrategy === "number") { - message.globalImportStrategy = object.globalImportStrategy; + if (typeof object.audioEncoding === "number") { + message.audioEncoding = object.audioEncoding; break; } break; - case "IMPORT_STRATEGY_UNSPECIFIED": + case "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": case 0: - message.globalImportStrategy = 0; + message.audioEncoding = 0; break; - case "IMPORT_STRATEGY_CREATE_NEW": + case "OUTPUT_AUDIO_ENCODING_LINEAR_16": case 1: - message.globalImportStrategy = 1; + message.audioEncoding = 1; break; - case "IMPORT_STRATEGY_REPLACE": + case "OUTPUT_AUDIO_ENCODING_MP3": case 2: - message.globalImportStrategy = 2; - break; - case "IMPORT_STRATEGY_KEEP": - case 3: - message.globalImportStrategy = 3; + message.audioEncoding = 2; break; - case "IMPORT_STRATEGY_MERGE": + case "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": case 4: - message.globalImportStrategy = 4; + message.audioEncoding = 4; break; - case "IMPORT_STRATEGY_THROW_ERROR": + case "OUTPUT_AUDIO_ENCODING_OGG_OPUS": + case 3: + message.audioEncoding = 3; + break; + case "OUTPUT_AUDIO_ENCODING_MULAW": case 5: - message.globalImportStrategy = 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 a FlowImportStrategy message. Also converts values to other types if specified. + * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy} message FlowImportStrategy + * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} message OutputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FlowImportStrategy.toObject = function toObject(message, options) { + OutputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.globalImportStrategy = options.enums === String ? "IMPORT_STRATEGY_UNSPECIFIED" : 0; - if (message.globalImportStrategy != null && message.hasOwnProperty("globalImportStrategy")) - object.globalImportStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ImportStrategy[message.globalImportStrategy] === undefined ? message.globalImportStrategy : $root.google.cloud.dialogflow.cx.v3beta1.ImportStrategy[message.globalImportStrategy] : message.globalImportStrategy; + 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] === undefined ? message.audioEncoding : $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 FlowImportStrategy to JSON. + * Converts this OutputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance * @returns {Object.} JSON object */ - FlowImportStrategy.prototype.toJSON = function toJSON() { + OutputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FlowImportStrategy + * Gets the default type url for OutputAudioConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FlowImportStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OutputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig"; }; - return FlowImportStrategy; + return OutputAudioConfig; })(); - v3beta1.ImportFlowResponse = (function() { + v3beta1.TextToSpeechSettings = (function() { /** - * Properties of an ImportFlowResponse. + * Properties of a TextToSpeechSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportFlowResponse - * @property {string|null} [flow] ImportFlowResponse flow + * @interface ITextToSpeechSettings + * @property {Object.|null} [synthesizeSpeechConfigs] TextToSpeechSettings synthesizeSpeechConfigs */ /** - * Constructs a new ImportFlowResponse. + * Constructs a new TextToSpeechSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportFlowResponse. - * @implements IImportFlowResponse + * @classdesc Represents a TextToSpeechSettings. + * @implements ITextToSpeechSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings=} [properties] Properties to set */ - function ImportFlowResponse(properties) { + function TextToSpeechSettings(properties) { + this.synthesizeSpeechConfigs = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90042,75 +88712,97 @@ } /** - * ImportFlowResponse flow. - * @member {string} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * TextToSpeechSettings synthesizeSpeechConfigs. + * @member {Object.} synthesizeSpeechConfigs + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @instance */ - ImportFlowResponse.prototype.flow = ""; + TextToSpeechSettings.prototype.synthesizeSpeechConfigs = $util.emptyObject; /** - * Creates a new ImportFlowResponse instance using the specified properties. + * Creates a new TextToSpeechSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings instance */ - ImportFlowResponse.create = function create(properties) { - return new ImportFlowResponse(properties); + TextToSpeechSettings.create = function create(properties) { + return new TextToSpeechSettings(properties); }; /** - * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * Encodes the specified TextToSpeechSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse} message ImportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings} message TextToSpeechSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowResponse.encode = function encode(message, writer) { + TextToSpeechSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.flow); + if (message.synthesizeSpeechConfigs != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfigs")) + for (var keys = Object.keys(message.synthesizeSpeechConfigs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * Encodes the specified TextToSpeechSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse} message ImportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings} message TextToSpeechSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { + TextToSpeechSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer. + * Decodes a TextToSpeechSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @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.ImportFlowResponse} ImportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowResponse.decode = function decode(reader, length) { + TextToSpeechSettings.decode = function decode(reader, length) { 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.ImportFlowResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.flow = reader.string(); + if (message.synthesizeSpeechConfigs === $util.emptyObject) + message.synthesizeSpeechConfigs = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.synthesizeSpeechConfigs[key] = value; break; } default: @@ -90122,373 +88814,508 @@ }; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a TextToSpeechSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowResponse.decodeDelimited = function decodeDelimited(reader) { + TextToSpeechSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFlowResponse message. + * Verifies a TextToSpeechSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFlowResponse.verify = function verify(message) { + TextToSpeechSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.flow != null && message.hasOwnProperty("flow")) - if (!$util.isString(message.flow)) - return "flow: string expected"; + if (message.synthesizeSpeechConfigs != null && message.hasOwnProperty("synthesizeSpeechConfigs")) { + if (!$util.isObject(message.synthesizeSpeechConfigs)) + return "synthesizeSpeechConfigs: object expected"; + var key = Object.keys(message.synthesizeSpeechConfigs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfigs[key[i]]); + if (error) + return "synthesizeSpeechConfigs." + error; + } + } return null; }; /** - * Creates an ImportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TextToSpeechSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings */ - ImportFlowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse) + TextToSpeechSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse(); - if (object.flow != null) - message.flow = String(object.flow); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings(); + if (object.synthesizeSpeechConfigs) { + if (typeof object.synthesizeSpeechConfigs !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.synthesizeSpeechConfigs: object expected"); + message.synthesizeSpeechConfigs = {}; + for (var keys = Object.keys(object.synthesizeSpeechConfigs), i = 0; i < keys.length; ++i) { + if (typeof object.synthesizeSpeechConfigs[keys[i]] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.synthesizeSpeechConfigs: object expected"); + message.synthesizeSpeechConfigs[keys[i]] = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfigs[keys[i]]); + } + } return message; }; /** - * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. + * Creates a plain object from a TextToSpeechSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} message ImportFlowResponse + * @param {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} message TextToSpeechSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFlowResponse.toObject = function toObject(message, options) { + TextToSpeechSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.flow = ""; - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = message.flow; + if (options.objects || options.defaults) + object.synthesizeSpeechConfigs = {}; + var keys2; + if (message.synthesizeSpeechConfigs && (keys2 = Object.keys(message.synthesizeSpeechConfigs)).length) { + object.synthesizeSpeechConfigs = {}; + for (var j = 0; j < keys2.length; ++j) + object.synthesizeSpeechConfigs[keys2[j]] = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfigs[keys2[j]], options); + } return object; }; /** - * Converts this ImportFlowResponse to JSON. + * Converts this TextToSpeechSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @instance * @returns {Object.} JSON object */ - ImportFlowResponse.prototype.toJSON = function toJSON() { + TextToSpeechSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportFlowResponse + * Gets the default type url for TextToSpeechSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TextToSpeechSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings"; }; - return ImportFlowResponse; + return TextToSpeechSettings; })(); - v3beta1.ExportFlowRequest = (function() { + v3beta1.Flows = (function() { /** - * Properties of an ExportFlowRequest. + * Constructs a new Flows service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportFlowRequest - * @property {string|null} [name] ExportFlowRequest name - * @property {string|null} [flowUri] ExportFlowRequest flowUri - * @property {boolean|null} [includeReferencedFlows] ExportFlowRequest includeReferencedFlows + * @classdesc Represents a Flows + * @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 Flows(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Flows.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Flows; /** - * Constructs a new ExportFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportFlowRequest. - * @implements IExportFlowRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest=} [properties] Properties to set + * Creates new Flows service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @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 {Flows} RPC service. Useful where requests and/or responses are streamed. */ - function ExportFlowRequest(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]]; - } + Flows.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ExportFlowRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|createFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef CreateFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow */ - ExportFlowRequest.prototype.name = ""; /** - * ExportFlowRequest flowUri. - * @member {string} flowUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * Calls CreateFlow. + * @function createFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @returns {undefined} + * @variation 1 */ - ExportFlowRequest.prototype.flowUri = ""; + Object.defineProperty(Flows.prototype.createFlow = function createFlow(request, callback) { + return this.rpcCall(createFlow, $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); + }, "name", { value: "CreateFlow" }); /** - * ExportFlowRequest includeReferencedFlows. - * @member {boolean} includeReferencedFlows - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * Calls CreateFlow. + * @function createFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ExportFlowRequest.prototype.includeReferencedFlows = false; /** - * Creates a new ExportFlowRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|deleteFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef DeleteFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ExportFlowRequest.create = function create(properties) { - return new ExportFlowRequest(properties); - }; /** - * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} message ExportFlowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteFlow. + * @function deleteFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ExportFlowRequest.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.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); - if (message.includeReferencedFlows != null && Object.hasOwnProperty.call(message, "includeReferencedFlows")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeReferencedFlows); - return writer; - }; + Object.defineProperty(Flows.prototype.deleteFlow = function deleteFlow(request, callback) { + return this.rpcCall(deleteFlow, $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteFlow" }); /** - * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} message ExportFlowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteFlow. + * @function deleteFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ExportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @static - * @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.ExportFlowRequest} ExportFlowRequest - * @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}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef ListFlowsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} [response] ListFlowsResponse */ - ExportFlowRequest.decode = function decode(reader, length) { - 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.ExportFlowRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.flowUri = reader.string(); - break; - } - case 4: { - message.includeReferencedFlows = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListFlows. + * @function listFlows + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback} callback Node-style callback called with the error, if any, and ListFlowsResponse + * @returns {undefined} + * @variation 1 */ - ExportFlowRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(Flows.prototype.listFlows = function listFlows(request, callback) { + return this.rpcCall(listFlows, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, request, callback); + }, "name", { value: "ListFlows" }); /** - * Verifies an ExportFlowRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListFlows. + * @function listFlows + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ExportFlowRequest.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.flowUri != null && message.hasOwnProperty("flowUri")) - if (!$util.isString(message.flowUri)) - return "flowUri: string expected"; - if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) - if (typeof message.includeReferencedFlows !== "boolean") - return "includeReferencedFlows: boolean expected"; - return null; - }; /** - * Creates an ExportFlowRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef GetFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow */ - ExportFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.flowUri != null) - message.flowUri = String(object.flowUri); - if (object.includeReferencedFlows != null) - message.includeReferencedFlows = Boolean(object.includeReferencedFlows); - return message; - }; /** - * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} message ExportFlowRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetFlow. + * @function getFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @returns {undefined} + * @variation 1 */ - ExportFlowRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.flowUri = ""; - object.includeReferencedFlows = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) - object.flowUri = message.flowUri; - if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) - object.includeReferencedFlows = message.includeReferencedFlows; - return object; - }; + Object.defineProperty(Flows.prototype.getFlow = function getFlow(request, callback) { + return this.rpcCall(getFlow, $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); + }, "name", { value: "GetFlow" }); /** - * Converts this ExportFlowRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * Calls GetFlow. + * @function getFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ExportFlowRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for ExportFlowRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|updateFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef UpdateFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow */ - ExportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest"; - }; - return ExportFlowRequest; + /** + * Calls UpdateFlow. + * @function updateFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.updateFlow = function updateFlow(request, callback) { + return this.rpcCall(updateFlow, $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); + }, "name", { value: "UpdateFlow" }); + + /** + * Calls UpdateFlow. + * @function updateFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|trainFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef TrainFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls TrainFlow. + * @function trainFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.trainFlow = function trainFlow(request, callback) { + return this.rpcCall(trainFlow, $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "TrainFlow" }); + + /** + * Calls TrainFlow. + * @function trainFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|validateFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef ValidateFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} [response] FlowValidationResult + */ + + /** + * Calls ValidateFlow. + * @function validateFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} request ValidateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback} callback Node-style callback called with the error, if any, and FlowValidationResult + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.validateFlow = function validateFlow(request, callback) { + return this.rpcCall(validateFlow, $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, request, callback); + }, "name", { value: "ValidateFlow" }); + + /** + * Calls ValidateFlow. + * @function validateFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} request ValidateFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlowValidationResult}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef GetFlowValidationResultCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} [response] FlowValidationResult + */ + + /** + * Calls GetFlowValidationResult. + * @function getFlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback} callback Node-style callback called with the error, if any, and FlowValidationResult + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.getFlowValidationResult = function getFlowValidationResult(request, callback) { + return this.rpcCall(getFlowValidationResult, $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, request, callback); + }, "name", { value: "GetFlowValidationResult" }); + + /** + * Calls GetFlowValidationResult. + * @function getFlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|importFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef ImportFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ImportFlow. + * @function importFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} request ImportFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.importFlow = function importFlow(request, callback) { + return this.rpcCall(importFlow, $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportFlow" }); + + /** + * Calls ImportFlow. + * @function importFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} request ImportFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|exportFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef ExportFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportFlow. + * @function exportFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} request ExportFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.exportFlow = function exportFlow(request, callback) { + return this.rpcCall(exportFlow, $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportFlow" }); + + /** + * Calls ExportFlow. + * @function exportFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} request ExportFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Flows; })(); - v3beta1.ExportFlowResponse = (function() { + v3beta1.NluSettings = (function() { /** - * Properties of an ExportFlowResponse. + * Properties of a NluSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportFlowResponse - * @property {string|null} [flowUri] ExportFlowResponse flowUri - * @property {Uint8Array|null} [flowContent] ExportFlowResponse flowContent + * @interface INluSettings + * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null} [modelType] NluSettings modelType + * @property {number|null} [classificationThreshold] NluSettings classificationThreshold + * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null} [modelTrainingMode] NluSettings modelTrainingMode */ /** - * Constructs a new ExportFlowResponse. + * Constructs a new NluSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportFlowResponse. - * @implements IExportFlowResponse + * @classdesc Represents a NluSettings. + * @implements INluSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set */ - function ExportFlowResponse(properties) { + function NluSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90496,103 +89323,103 @@ } /** - * ExportFlowResponse flowUri. - * @member {string|null|undefined} flowUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * NluSettings modelType. + * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType} modelType + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @instance */ - ExportFlowResponse.prototype.flowUri = null; + NluSettings.prototype.modelType = 0; /** - * ExportFlowResponse flowContent. - * @member {Uint8Array|null|undefined} flowContent - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * NluSettings classificationThreshold. + * @member {number} classificationThreshold + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @instance */ - ExportFlowResponse.prototype.flowContent = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + NluSettings.prototype.classificationThreshold = 0; /** - * ExportFlowResponse flow. - * @member {"flowUri"|"flowContent"|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * NluSettings modelTrainingMode. + * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode} modelTrainingMode + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @instance */ - Object.defineProperty(ExportFlowResponse.prototype, "flow", { - get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), - set: $util.oneOfSetter($oneOfFields) - }); + NluSettings.prototype.modelTrainingMode = 0; /** - * Creates a new ExportFlowResponse instance using the specified properties. + * Creates a new NluSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings instance */ - ExportFlowResponse.create = function create(properties) { - return new ExportFlowResponse(properties); + NluSettings.create = function create(properties) { + return new NluSettings(properties); }; /** - * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse} message ExportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowResponse.encode = function encode(message, writer) { + NluSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.flowUri); - if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.flowContent); + if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); + if (message.classificationThreshold != null && Object.hasOwnProperty.call(message, "classificationThreshold")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.classificationThreshold); + if (message.modelTrainingMode != null && Object.hasOwnProperty.call(message, "modelTrainingMode")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.modelTrainingMode); return writer; }; /** - * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse} message ExportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { + NluSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer. + * Decodes a NluSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @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.ExportFlowResponse} ExportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowResponse.decode = function decode(reader, length) { + NluSettings.decode = function decode(reader, length) { 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.ExportFlowResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.NluSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.flowUri = reader.string(); + message.modelType = reader.int32(); break; } - case 2: { - message.flowContent = reader.bytes(); + case 3: { + message.classificationThreshold = reader.float(); + break; + } + case 4: { + message.modelTrainingMode = reader.int32(); break; } default: @@ -90604,375 +89431,230 @@ }; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a NluSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowResponse.decodeDelimited = function decodeDelimited(reader) { + NluSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFlowResponse message. + * Verifies a NluSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFlowResponse.verify = function verify(message) { + NluSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) { - properties.flow = 1; - if (!$util.isString(message.flowUri)) - return "flowUri: string expected"; - } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - if (properties.flow === 1) - return "flow: multiple values"; - properties.flow = 1; - if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) - return "flowContent: buffer expected"; - } + if (message.modelType != null && message.hasOwnProperty("modelType")) + switch (message.modelType) { + default: + return "modelType: enum value expected"; + case 0: + case 1: + case 3: + break; + } + if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) + if (typeof message.classificationThreshold !== "number") + return "classificationThreshold: number expected"; + if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) + switch (message.modelTrainingMode) { + default: + return "modelTrainingMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates an ExportFlowResponse 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings */ - ExportFlowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse) + NluSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.NluSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse(); - if (object.flowUri != null) - message.flowUri = String(object.flowUri); - if (object.flowContent != null) - if (typeof object.flowContent === "string") - $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); - else if (object.flowContent.length >= 0) - message.flowContent = object.flowContent; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.NluSettings(); + switch (object.modelType) { + default: + if (typeof object.modelType === "number") { + message.modelType = object.modelType; + break; + } + break; + case "MODEL_TYPE_UNSPECIFIED": + case 0: + message.modelType = 0; + break; + case "MODEL_TYPE_STANDARD": + case 1: + message.modelType = 1; + break; + case "MODEL_TYPE_ADVANCED": + case 3: + message.modelType = 3; + break; + } + if (object.classificationThreshold != null) + message.classificationThreshold = Number(object.classificationThreshold); + switch (object.modelTrainingMode) { + default: + if (typeof object.modelTrainingMode === "number") { + message.modelTrainingMode = object.modelTrainingMode; + break; + } + break; + case "MODEL_TRAINING_MODE_UNSPECIFIED": + case 0: + message.modelTrainingMode = 0; + break; + case "MODEL_TRAINING_MODE_AUTOMATIC": + case 1: + message.modelTrainingMode = 1; + break; + case "MODEL_TRAINING_MODE_MANUAL": + case 2: + message.modelTrainingMode = 2; + break; + } return message; }; /** - * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. + * Creates a plain object from a NluSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} message ExportFlowResponse + * @param {google.cloud.dialogflow.cx.v3beta1.NluSettings} message NluSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFlowResponse.toObject = function toObject(message, options) { + NluSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) { - object.flowUri = message.flowUri; - if (options.oneofs) - object.flow = "flowUri"; - } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; - if (options.oneofs) - object.flow = "flowContent"; + if (options.defaults) { + object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; + object.classificationThreshold = 0; + object.modelTrainingMode = options.enums === String ? "MODEL_TRAINING_MODE_UNSPECIFIED" : 0; } + if (message.modelType != null && message.hasOwnProperty("modelType")) + object.modelType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType[message.modelType] === undefined ? message.modelType : $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType[message.modelType] : message.modelType; + if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) + object.classificationThreshold = options.json && !isFinite(message.classificationThreshold) ? String(message.classificationThreshold) : message.classificationThreshold; + if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) + object.modelTrainingMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode[message.modelTrainingMode] === undefined ? message.modelTrainingMode : $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode[message.modelTrainingMode] : message.modelTrainingMode; return object; }; /** - * Converts this ExportFlowResponse to JSON. + * Converts this NluSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @instance * @returns {Object.} JSON object */ - ExportFlowResponse.prototype.toJSON = function toJSON() { + NluSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportFlowResponse + * Gets the default type url for NluSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NluSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse"; - }; - - return ExportFlowResponse; - })(); - - /** - * ImportStrategy enum. - * @name google.cloud.dialogflow.cx.v3beta1.ImportStrategy - * @enum {number} - * @property {number} IMPORT_STRATEGY_UNSPECIFIED=0 IMPORT_STRATEGY_UNSPECIFIED value - * @property {number} IMPORT_STRATEGY_CREATE_NEW=1 IMPORT_STRATEGY_CREATE_NEW value - * @property {number} IMPORT_STRATEGY_REPLACE=2 IMPORT_STRATEGY_REPLACE value - * @property {number} IMPORT_STRATEGY_KEEP=3 IMPORT_STRATEGY_KEEP value - * @property {number} IMPORT_STRATEGY_MERGE=4 IMPORT_STRATEGY_MERGE value - * @property {number} IMPORT_STRATEGY_THROW_ERROR=5 IMPORT_STRATEGY_THROW_ERROR value - */ - v3beta1.ImportStrategy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IMPORT_STRATEGY_UNSPECIFIED"] = 0; - values[valuesById[1] = "IMPORT_STRATEGY_CREATE_NEW"] = 1; - values[valuesById[2] = "IMPORT_STRATEGY_REPLACE"] = 2; - values[valuesById[3] = "IMPORT_STRATEGY_KEEP"] = 3; - values[valuesById[4] = "IMPORT_STRATEGY_MERGE"] = 4; - values[valuesById[5] = "IMPORT_STRATEGY_THROW_ERROR"] = 5; - return values; - })(); - - v3beta1.Pages = (function() { - - /** - * Constructs a new Pages service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Pages - * @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 Pages(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Pages.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Pages; - - /** - * Creates new Pages service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @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 {Pages} RPC service. Useful where requests and/or responses are streamed. - */ - Pages.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.NluSettings"; }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|listPages}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef ListPagesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} [response] ListPagesResponse - */ - - /** - * Calls ListPages. - * @function listPages - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback} callback Node-style callback called with the error, if any, and ListPagesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Pages.prototype.listPages = function listPages(request, callback) { - return this.rpcCall(listPages, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, request, callback); - }, "name", { value: "ListPages" }); - - /** - * Calls ListPages. - * @function listPages - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|getPage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef GetPageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page - */ - - /** - * Calls GetPage. - * @function getPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback} callback Node-style callback called with the error, if any, and Page - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Pages.prototype.getPage = function getPage(request, callback) { - return this.rpcCall(getPage, $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); - }, "name", { value: "GetPage" }); - - /** - * Calls GetPage. - * @function getPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|createPage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef CreatePageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page - */ - - /** - * Calls CreatePage. - * @function createPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback} callback Node-style callback called with the error, if any, and Page - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Pages.prototype.createPage = function createPage(request, callback) { - return this.rpcCall(createPage, $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); - }, "name", { value: "CreatePage" }); - - /** - * Calls CreatePage. - * @function createPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|updatePage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef UpdatePageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page - */ - - /** - * Calls UpdatePage. - * @function updatePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback} callback Node-style callback called with the error, if any, and Page - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Pages.prototype.updatePage = function updatePage(request, callback) { - return this.rpcCall(updatePage, $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); - }, "name", { value: "UpdatePage" }); - - /** - * Calls UpdatePage. - * @function updatePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|deletePage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef DeletePageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeletePage. - * @function deletePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * ModelType enum. + * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType + * @enum {number} + * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value + * @property {number} MODEL_TYPE_STANDARD=1 MODEL_TYPE_STANDARD value + * @property {number} MODEL_TYPE_ADVANCED=3 MODEL_TYPE_ADVANCED value */ - Object.defineProperty(Pages.prototype.deletePage = function deletePage(request, callback) { - return this.rpcCall(deletePage, $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeletePage" }); + NluSettings.ModelType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MODEL_TYPE_STANDARD"] = 1; + values[valuesById[3] = "MODEL_TYPE_ADVANCED"] = 3; + return values; + })(); /** - * Calls DeletePage. - * @function deletePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * ModelTrainingMode enum. + * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode + * @enum {number} + * @property {number} MODEL_TRAINING_MODE_UNSPECIFIED=0 MODEL_TRAINING_MODE_UNSPECIFIED value + * @property {number} MODEL_TRAINING_MODE_AUTOMATIC=1 MODEL_TRAINING_MODE_AUTOMATIC value + * @property {number} MODEL_TRAINING_MODE_MANUAL=2 MODEL_TRAINING_MODE_MANUAL value */ + NluSettings.ModelTrainingMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TRAINING_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MODEL_TRAINING_MODE_AUTOMATIC"] = 1; + values[valuesById[2] = "MODEL_TRAINING_MODE_MANUAL"] = 2; + return values; + })(); - return Pages; + return NluSettings; })(); - v3beta1.Page = (function() { + v3beta1.Flow = (function() { /** - * Properties of a Page. + * Properties of a Flow. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IPage - * @property {string|null} [name] Page name - * @property {string|null} [displayName] Page displayName - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [entryFulfillment] Page entryFulfillment - * @property {google.cloud.dialogflow.cx.v3beta1.IForm|null} [form] Page form - * @property {Array.|null} [transitionRouteGroups] Page transitionRouteGroups - * @property {Array.|null} [transitionRoutes] Page transitionRoutes - * @property {Array.|null} [eventHandlers] Page eventHandlers - * @property {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null} [knowledgeConnectorSettings] Page knowledgeConnectorSettings + * @interface IFlow + * @property {string|null} [name] Flow name + * @property {string|null} [displayName] Flow displayName + * @property {string|null} [description] Flow description + * @property {Array.|null} [transitionRoutes] Flow transitionRoutes + * @property {Array.|null} [eventHandlers] Flow eventHandlers + * @property {Array.|null} [transitionRouteGroups] Flow transitionRouteGroups + * @property {google.cloud.dialogflow.cx.v3beta1.INluSettings|null} [nluSettings] Flow nluSettings + * @property {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null} [advancedSettings] Flow advancedSettings + * @property {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null} [knowledgeConnectorSettings] Flow knowledgeConnectorSettings */ /** - * Constructs a new Page. + * Constructs a new Flow. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Page. - * @implements IPage + * @classdesc Represents a Flow. + * @implements IFlow * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set */ - function Page(properties) { - this.transitionRouteGroups = []; + function Flow(properties) { this.transitionRoutes = []; this.eventHandlers = []; + this.transitionRouteGroups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90980,143 +89662,153 @@ } /** - * Page name. + * Flow name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - Page.prototype.name = ""; + Flow.prototype.name = ""; /** - * Page displayName. + * Flow displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - Page.prototype.displayName = ""; + Flow.prototype.displayName = ""; /** - * Page entryFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} entryFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * Flow description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - Page.prototype.entryFulfillment = null; + Flow.prototype.description = ""; /** - * Page form. - * @member {google.cloud.dialogflow.cx.v3beta1.IForm|null|undefined} form - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * Flow transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - Page.prototype.form = null; + Flow.prototype.transitionRoutes = $util.emptyArray; /** - * Page transitionRouteGroups. + * Flow eventHandlers. + * @member {Array.} eventHandlers + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @instance + */ + Flow.prototype.eventHandlers = $util.emptyArray; + + /** + * Flow transitionRouteGroups. * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - Page.prototype.transitionRouteGroups = $util.emptyArray; + Flow.prototype.transitionRouteGroups = $util.emptyArray; /** - * Page transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * Flow nluSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.INluSettings|null|undefined} nluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - Page.prototype.transitionRoutes = $util.emptyArray; + Flow.prototype.nluSettings = null; /** - * Page eventHandlers. - * @member {Array.} eventHandlers - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * Flow advancedSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - Page.prototype.eventHandlers = $util.emptyArray; + Flow.prototype.advancedSettings = null; /** - * Page knowledgeConnectorSettings. + * Flow knowledgeConnectorSettings. * @member {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null|undefined} knowledgeConnectorSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - Page.prototype.knowledgeConnectorSettings = null; + Flow.prototype.knowledgeConnectorSettings = null; /** - * Creates a new Page instance using the specified properties. + * Creates a new Flow instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page instance + * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow instance */ - Page.create = function create(properties) { - return new Page(properties); + Flow.create = function create(properties) { + return new Flow(properties); }; /** - * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Page.encode = function encode(message, writer) { + Flow.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.form != null && Object.hasOwnProperty.call(message, "form")) - $root.google.cloud.dialogflow.cx.v3beta1.Form.encode(message.form, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.entryFulfillment != null && Object.hasOwnProperty.call(message, "entryFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.entryFulfillment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); 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 9, wireType 2 =*/74).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.eventHandlers != null && message.eventHandlers.length) for (var i = 0; i < message.eventHandlers.length; ++i) $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.encode(message.nluSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) for (var i = 0; i < message.transitionRouteGroups.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.transitionRouteGroups[i]); + writer.uint32(/* id 15, wireType 2 =*/122).string(message.transitionRouteGroups[i]); if (message.knowledgeConnectorSettings != null && Object.hasOwnProperty.call(message, "knowledgeConnectorSettings")) $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.encode(message.knowledgeConnectorSettings, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); return writer; }; /** - * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Page.encodeDelimited = function encodeDelimited(message, writer) { + Flow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Page message from the specified reader or buffer. + * Decodes a Flow message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @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.Page} Page + * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Page.decode = function decode(reader, length) { + Flow.decode = function decode(reader, length) { 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.Page(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Flow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -91128,21 +89820,11 @@ message.displayName = reader.string(); break; } - case 7: { - message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + case 3: { + message.description = reader.string(); break; } case 4: { - message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.decode(reader, reader.uint32()); - break; - } - case 11: { - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push(reader.string()); - break; - } - case 9: { if (!(message.transitionRoutes && message.transitionRoutes.length)) message.transitionRoutes = []; message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); @@ -91154,6 +89836,20 @@ message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); break; } + case 15: { + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push(reader.string()); + break; + } + case 11: { + message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.decode(reader, reader.uint32()); + break; + } + case 14: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.decode(reader, reader.uint32()); + break; + } case 18: { message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.decode(reader, reader.uint32()); break; @@ -91167,30 +89863,30 @@ }; /** - * Decodes a Page message from the specified reader or buffer, length delimited. + * Decodes a Flow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page + * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Page.decodeDelimited = function decodeDelimited(reader) { + Flow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Page message. + * Verifies a Flow message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Page.verify = function verify(message) { + Flow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -91199,23 +89895,9 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.entryFulfillment); - if (error) - return "entryFulfillment." + error; - } - if (message.form != null && message.hasOwnProperty("form")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.verify(message.form); - if (error) - return "form." + 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) - if (!$util.isString(message.transitionRouteGroups[i])) - return "transitionRouteGroups: string[] expected"; - } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; if (message.transitionRoutes != null && message.hasOwnProperty("transitionRoutes")) { if (!Array.isArray(message.transitionRoutes)) return "transitionRoutes: array expected"; @@ -91234,6 +89916,23 @@ return "eventHandlers." + 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) + if (!$util.isString(message.transitionRouteGroups[i])) + return "transitionRouteGroups: string[] expected"; + } + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.verify(message.nluSettings); + if (error) + return "nluSettings." + error; + } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) { var error = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify(message.knowledgeConnectorSettings); if (error) @@ -91243,76 +89942,78 @@ }; /** - * Creates a Page 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page + * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow */ - Page.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Page) + Flow.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Flow) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Page(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Flow(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) message.displayName = String(object.displayName); - if (object.entryFulfillment != null) { - if (typeof object.entryFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.entryFulfillment: object expected"); - message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.entryFulfillment); - } - if (object.form != null) { - if (typeof object.form !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.form: object expected"); - message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.fromObject(object.form); - } - if (object.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) - message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); - } + if (object.description != null) + message.description = String(object.description); if (object.transitionRoutes) { if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.transitionRoutes: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.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.Page.transitionRoutes: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.transitionRoutes: object expected"); message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); } } if (object.eventHandlers) { if (!Array.isArray(object.eventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: array expected"); message.eventHandlers = []; for (var i = 0; i < object.eventHandlers.length; ++i) { if (typeof object.eventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: object expected"); message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandlers[i]); } } + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) + message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); + } + if (object.nluSettings != null) { + if (typeof object.nluSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.nluSettings: object expected"); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.fromObject(object.nluSettings); + } + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.fromObject(object.advancedSettings); + } if (object.knowledgeConnectorSettings != null) { if (typeof object.knowledgeConnectorSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.knowledgeConnectorSettings: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.knowledgeConnectorSettings: object expected"); message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.fromObject(object.knowledgeConnectorSettings); } return message; }; /** - * Creates a plain object from a Page message. Also converts values to other types if specified. + * Creates a plain object from a Flow message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Page} message Page + * @param {google.cloud.dialogflow.cx.v3beta1.Flow} message Flow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Page.toObject = function toObject(message, options) { + Flow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -91324,18 +90025,17 @@ if (options.defaults) { object.name = ""; object.displayName = ""; - object.form = null; - object.entryFulfillment = null; + object.description = ""; + object.nluSettings = null; + object.advancedSettings = null; object.knowledgeConnectorSettings = 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.form != null && message.hasOwnProperty("form")) - object.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.toObject(message.form, options); - if (message.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) - object.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.entryFulfillment, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; if (message.transitionRoutes && message.transitionRoutes.length) { object.transitionRoutes = []; for (var j = 0; j < message.transitionRoutes.length; ++j) @@ -91346,6 +90046,10 @@ for (var j = 0; j < message.eventHandlers.length; ++j) object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandlers[j], options); } + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) + object.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.toObject(message.nluSettings, options); + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.toObject(message.advancedSettings, options); if (message.transitionRouteGroups && message.transitionRouteGroups.length) { object.transitionRouteGroups = []; for (var j = 0; j < message.transitionRouteGroups.length; ++j) @@ -91357,53 +90061,54 @@ }; /** - * Converts this Page to JSON. + * Converts this Flow to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance * @returns {Object.} JSON object */ - Page.prototype.toJSON = function toJSON() { + Flow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Page + * Gets the default type url for Flow * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Page.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Flow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Page"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Flow"; }; - return Page; + return Flow; })(); - v3beta1.Form = (function() { + v3beta1.CreateFlowRequest = (function() { /** - * Properties of a Form. + * Properties of a CreateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IForm - * @property {Array.|null} [parameters] Form parameters + * @interface ICreateFlowRequest + * @property {string|null} [parent] CreateFlowRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] CreateFlowRequest flow + * @property {string|null} [languageCode] CreateFlowRequest languageCode */ /** - * Constructs a new Form. + * Constructs a new CreateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Form. - * @implements IForm + * @classdesc Represents a CreateFlowRequest. + * @implements ICreateFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set */ - function Form(properties) { - this.parameters = []; + function CreateFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91411,78 +90116,103 @@ } /** - * Form parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * CreateFlowRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @instance */ - Form.prototype.parameters = $util.emptyArray; + CreateFlowRequest.prototype.parent = ""; /** - * Creates a new Form instance using the specified properties. + * CreateFlowRequest flow. + * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @instance + */ + CreateFlowRequest.prototype.flow = null; + + /** + * CreateFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @instance + */ + CreateFlowRequest.prototype.languageCode = ""; + + /** + * Creates a new CreateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest instance */ - Form.create = function create(properties) { - return new Form(properties); + CreateFlowRequest.create = function create(properties) { + return new CreateFlowRequest(properties); }; /** - * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Form.encode = function encode(message, writer) { + CreateFlowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.encode(message.parameters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + 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(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Form.encodeDelimited = function encodeDelimited(message, writer) { + CreateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Form message from the specified reader or buffer. + * Decodes a CreateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @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.Form} Form + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Form.decode = function decode(reader, length) { + CreateFlowRequest.decode = function decode(reader, length) { 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.Form(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.decode(reader, reader.uint32())); + message.parent = reader.string(); + break; + } + case 2: { + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); + break; + } + case 3: { + message.languageCode = reader.string(); break; } default: @@ -91494,748 +90224,145 @@ }; /** - * Decodes a Form message from the specified reader or buffer, length delimited. + * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Form.decodeDelimited = function decodeDelimited(reader) { + CreateFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Form message. + * Verifies a CreateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Form.verify = function verify(message) { + CreateFlowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.Form.Parameter.verify(message.parameters[i]); - if (error) - return "parameters." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.flow != null && message.hasOwnProperty("flow")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); + if (error) + return "flow." + error; } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a Form 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest */ - Form.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form) + CreateFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form(); - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.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.Form.parameters: object expected"); - message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fromObject(object.parameters[i]); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a Form message. Also converts values to other types if specified. + * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form} message Form + * @param {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} message CreateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Form.toObject = function toObject(message, options) { + CreateFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.parameters = []; - 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.Form.Parameter.toObject(message.parameters[j], options); + if (options.defaults) { + object.parent = ""; + object.flow = null; + object.languageCode = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this Form to JSON. + * Converts this CreateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @instance * @returns {Object.} JSON object */ - Form.prototype.toJSON = function toJSON() { + CreateFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Form + * Gets the default type url for CreateFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Form.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest"; }; - Form.Parameter = (function() { - - /** - * Properties of a Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form - * @interface IParameter - * @property {string|null} [displayName] Parameter displayName - * @property {boolean|null} [required] Parameter required - * @property {string|null} [entityType] Parameter entityType - * @property {boolean|null} [isList] Parameter isList - * @property {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null} [fillBehavior] Parameter fillBehavior - * @property {google.protobuf.IValue|null} [defaultValue] Parameter defaultValue - * @property {boolean|null} [redact] Parameter redact - */ - - /** - * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Form.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]]; - } - - /** - * Parameter displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.displayName = ""; - - /** - * Parameter required. - * @member {boolean} required - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.required = false; - - /** - * Parameter entityType. - * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.entityType = ""; - - /** - * Parameter isList. - * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.isList = false; - - /** - * Parameter fillBehavior. - * @member {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null|undefined} fillBehavior - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.fillBehavior = null; - - /** - * Parameter defaultValue. - * @member {google.protobuf.IValue|null|undefined} defaultValue - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.defaultValue = null; - - /** - * Parameter redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.redact = false; - - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.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.v3beta1.Form.Parameter.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.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.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.required != null && Object.hasOwnProperty.call(message, "required")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.required); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType); - if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isList); - if (message.fillBehavior != null && Object.hasOwnProperty.call(message, "fillBehavior")) - $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.encode(message.fillBehavior, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.redact); - return writer; - }; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.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.v3beta1.Form.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.Form.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.Form.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.displayName = reader.string(); - break; - } - case 2: { - message.required = reader.bool(); - break; - } - case 3: { - message.entityType = reader.string(); - break; - } - case 4: { - message.isList = reader.bool(); - break; - } - case 7: { - message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.decode(reader, reader.uint32()); - break; - } - case 9: { - message.defaultValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 11: { - message.redact = reader.bool(); - 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.Form.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.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 Parameter message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.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.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.required != null && message.hasOwnProperty("required")) - if (typeof message.required !== "boolean") - return "required: boolean 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.fillBehavior != null && message.hasOwnProperty("fillBehavior")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify(message.fillBehavior); - if (error) - return "fillBehavior." + error; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - var error = $root.google.protobuf.Value.verify(message.defaultValue); - if (error) - return "defaultValue." + error; - } - if (message.redact != null && message.hasOwnProperty("redact")) - if (typeof message.redact !== "boolean") - return "redact: boolean expected"; - return null; - }; - - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.required != null) - message.required = Boolean(object.required); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.isList != null) - message.isList = Boolean(object.isList); - if (object.fillBehavior != null) { - if (typeof object.fillBehavior !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fillBehavior: object expected"); - message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.fromObject(object.fillBehavior); - } - if (object.defaultValue != null) { - if (typeof object.defaultValue !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.defaultValue: object expected"); - message.defaultValue = $root.google.protobuf.Value.fromObject(object.defaultValue); - } - 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.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.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.displayName = ""; - object.required = false; - object.entityType = ""; - object.isList = false; - object.fillBehavior = null; - object.defaultValue = null; - object.redact = false; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.required != null && message.hasOwnProperty("required")) - object.required = message.required; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.isList != null && message.hasOwnProperty("isList")) - object.isList = message.isList; - if (message.fillBehavior != null && message.hasOwnProperty("fillBehavior")) - object.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.toObject(message.fillBehavior, options); - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options); - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; - return object; - }; - - /** - * Converts this Parameter to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Parameter - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form.Parameter"; - }; - - Parameter.FillBehavior = (function() { - - /** - * Properties of a FillBehavior. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @interface IFillBehavior - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [initialPromptFulfillment] FillBehavior initialPromptFulfillment - * @property {Array.|null} [repromptEventHandlers] FillBehavior repromptEventHandlers - */ - - /** - * Constructs a new FillBehavior. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @classdesc Represents a FillBehavior. - * @implements IFillBehavior - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set - */ - function FillBehavior(properties) { - this.repromptEventHandlers = []; - 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]]; - } - - /** - * FillBehavior initialPromptFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} initialPromptFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @instance - */ - FillBehavior.prototype.initialPromptFulfillment = null; - - /** - * FillBehavior repromptEventHandlers. - * @member {Array.} repromptEventHandlers - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @instance - */ - FillBehavior.prototype.repromptEventHandlers = $util.emptyArray; - - /** - * Creates a new FillBehavior instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior instance - */ - FillBehavior.create = function create(properties) { - return new FillBehavior(properties); - }; - - /** - * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FillBehavior.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.initialPromptFulfillment != null && Object.hasOwnProperty.call(message, "initialPromptFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.initialPromptFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.repromptEventHandlers != null && message.repromptEventHandlers.length) - for (var i = 0; i < message.repromptEventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.repromptEventHandlers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FillBehavior.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FillBehavior message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @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.Form.Parameter.FillBehavior} FillBehavior - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FillBehavior.decode = function decode(reader, length) { - 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.Form.Parameter.FillBehavior(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: { - message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.repromptEventHandlers && message.repromptEventHandlers.length)) - message.repromptEventHandlers = []; - message.repromptEventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FillBehavior message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FillBehavior.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FillBehavior message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FillBehavior.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.initialPromptFulfillment); - if (error) - return "initialPromptFulfillment." + error; - } - if (message.repromptEventHandlers != null && message.hasOwnProperty("repromptEventHandlers")) { - if (!Array.isArray(message.repromptEventHandlers)) - return "repromptEventHandlers: array expected"; - for (var i = 0; i < message.repromptEventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.repromptEventHandlers[i]); - if (error) - return "repromptEventHandlers." + error; - } - } - return null; - }; - - /** - * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior - */ - FillBehavior.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior(); - if (object.initialPromptFulfillment != null) { - if (typeof object.initialPromptFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.initialPromptFulfillment: object expected"); - message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.initialPromptFulfillment); - } - if (object.repromptEventHandlers) { - if (!Array.isArray(object.repromptEventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: array expected"); - message.repromptEventHandlers = []; - for (var i = 0; i < object.repromptEventHandlers.length; ++i) { - if (typeof object.repromptEventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: object expected"); - message.repromptEventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.repromptEventHandlers[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} message FillBehavior - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FillBehavior.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.repromptEventHandlers = []; - if (options.defaults) - object.initialPromptFulfillment = null; - if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) - object.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.initialPromptFulfillment, options); - if (message.repromptEventHandlers && message.repromptEventHandlers.length) { - object.repromptEventHandlers = []; - for (var j = 0; j < message.repromptEventHandlers.length; ++j) - object.repromptEventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.repromptEventHandlers[j], options); - } - return object; - }; - - /** - * Converts this FillBehavior to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @instance - * @returns {Object.} JSON object - */ - FillBehavior.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FillBehavior - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FillBehavior.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior"; - }; - - return FillBehavior; - })(); - - return Parameter; - })(); - - return Form; + return CreateFlowRequest; })(); - v3beta1.EventHandler = (function() { + v3beta1.DeleteFlowRequest = (function() { /** - * Properties of an EventHandler. + * Properties of a DeleteFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IEventHandler - * @property {string|null} [name] EventHandler name - * @property {string|null} [event] EventHandler event - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] EventHandler triggerFulfillment - * @property {string|null} [targetPage] EventHandler targetPage - * @property {string|null} [targetFlow] EventHandler targetFlow + * @interface IDeleteFlowRequest + * @property {string|null} [name] DeleteFlowRequest name + * @property {boolean|null} [force] DeleteFlowRequest force */ /** - * Constructs a new EventHandler. + * Constructs a new DeleteFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EventHandler. - * @implements IEventHandler + * @classdesc Represents a DeleteFlowRequest. + * @implements IDeleteFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set */ - function EventHandler(properties) { + function DeleteFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92243,145 +90370,89 @@ } /** - * EventHandler name. + * DeleteFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - EventHandler.prototype.name = ""; - - /** - * EventHandler event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - EventHandler.prototype.event = ""; - - /** - * EventHandler triggerFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - EventHandler.prototype.triggerFulfillment = null; - - /** - * EventHandler targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - EventHandler.prototype.targetPage = null; - - /** - * EventHandler targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @instance */ - EventHandler.prototype.targetFlow = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + DeleteFlowRequest.prototype.name = ""; /** - * EventHandler target. - * @member {"targetPage"|"targetFlow"|undefined} target - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * DeleteFlowRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @instance */ - Object.defineProperty(EventHandler.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), - set: $util.oneOfSetter($oneOfFields) - }); + DeleteFlowRequest.prototype.force = false; /** - * Creates a new EventHandler instance using the specified properties. + * Creates a new DeleteFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest instance */ - EventHandler.create = function create(properties) { - return new EventHandler(properties); + DeleteFlowRequest.create = function create(properties) { + return new DeleteFlowRequest(properties); }; /** - * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventHandler.encode = function encode(message, writer) { + DeleteFlowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetFlow); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.event); - if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(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 EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventHandler.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventHandler message from the specified reader or buffer. + * Decodes a DeleteFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @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.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventHandler.decode = function decode(reader, length) { + DeleteFlowRequest.decode = function decode(reader, length) { 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.EventHandler(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 6: { + case 1: { message.name = reader.string(); break; } - case 4: { - message.event = reader.string(); - break; - } - case 5: { - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); - break; - } case 2: { - message.targetPage = reader.string(); - break; - } - case 3: { - message.targetFlow = reader.string(); + message.force = reader.bool(); break; } default: @@ -92393,546 +90464,134 @@ }; /** - * Decodes an EventHandler message from the specified reader or buffer, length delimited. + * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventHandler.decodeDelimited = function decodeDelimited(reader) { + DeleteFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventHandler message. + * Verifies a DeleteFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventHandler.verify = function verify(message) { + DeleteFlowRequest.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.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); - if (error) - return "triggerFulfillment." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.target = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; - } + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates an EventHandler 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest */ - EventHandler.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventHandler) + DeleteFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventHandler(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest(); if (object.name != null) message.name = String(object.name); - if (object.event != null) - message.event = String(object.event); - if (object.triggerFulfillment != null) { - if (typeof object.triggerFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EventHandler.triggerFulfillment: object expected"); - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); - } - if (object.targetPage != null) - message.targetPage = String(object.targetPage); - if (object.targetFlow != null) - message.targetFlow = String(object.targetFlow); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from an EventHandler message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EventHandler} message EventHandler - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EventHandler.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.event = ""; - object.triggerFulfillment = null; - object.name = ""; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; - if (options.oneofs) - object.target = "targetPage"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; - if (options.oneofs) - object.target = "targetFlow"; - } - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) - object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this EventHandler to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - * @returns {Object.} JSON object - */ - EventHandler.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EventHandler - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EventHandler.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EventHandler"; - }; - - return EventHandler; - })(); - - v3beta1.TransitionRoute = (function() { - - /** - * Properties of a TransitionRoute. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionRoute - * @property {string|null} [name] TransitionRoute name - * @property {string|null} [description] TransitionRoute description - * @property {string|null} [intent] TransitionRoute intent - * @property {string|null} [condition] TransitionRoute condition - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] TransitionRoute triggerFulfillment - * @property {string|null} [targetPage] TransitionRoute targetPage - * @property {string|null} [targetFlow] TransitionRoute targetFlow - */ - - /** - * Constructs a new TransitionRoute. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionRoute. - * @implements ITransitionRoute - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set - */ - function TransitionRoute(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]]; - } - - /** - * TransitionRoute name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.name = ""; - - /** - * TransitionRoute description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.description = ""; - - /** - * TransitionRoute intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.intent = ""; - - /** - * TransitionRoute condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.condition = ""; - - /** - * TransitionRoute triggerFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.triggerFulfillment = null; - - /** - * TransitionRoute targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.targetPage = null; - - /** - * TransitionRoute targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.targetFlow = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TransitionRoute target. - * @member {"targetPage"|"targetFlow"|undefined} target - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - Object.defineProperty(TransitionRoute.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TransitionRoute instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute instance - */ - TransitionRoute.create = function create(properties) { - return new TransitionRoute(properties); - }; - - /** - * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionRoute.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.condition != null && Object.hasOwnProperty.call(message, "condition")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.condition); - if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetFlow); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); - return writer; - }; - - /** - * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransitionRoute.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a TransitionRoute message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @static - * @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.TransitionRoute} TransitionRoute - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionRoute.decode = function decode(reader, length) { - 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.TransitionRoute(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 6: { - message.name = reader.string(); - break; - } - case 8: { - message.description = reader.string(); - break; - } - case 1: { - message.intent = reader.string(); - break; - } - case 2: { - message.condition = reader.string(); - break; - } - case 3: { - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); - break; - } - case 4: { - message.targetPage = reader.string(); - break; - } - case 5: { - message.targetFlow = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransitionRoute.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a TransitionRoute message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TransitionRoute.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.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); - if (error) - return "triggerFulfillment." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.target = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; - } - return null; - }; - - /** - * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute - */ - TransitionRoute.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute(); - if (object.name != null) - message.name = String(object.name); - if (object.description != null) - message.description = String(object.description); - if (object.intent != null) - message.intent = String(object.intent); - if (object.condition != null) - message.condition = String(object.condition); - if (object.triggerFulfillment != null) { - if (typeof object.triggerFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRoute.triggerFulfillment: object expected"); - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); - } - if (object.targetPage != null) - message.targetPage = String(object.targetPage); - if (object.targetFlow != null) - message.targetFlow = String(object.targetFlow); - return message; - }; - - /** - * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} message TransitionRoute + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} message DeleteFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRoute.toObject = function toObject(message, options) { + DeleteFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.intent = ""; - object.condition = ""; - object.triggerFulfillment = null; object.name = ""; - object.description = ""; - } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) - object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; - if (options.oneofs) - object.target = "targetPage"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; - if (options.oneofs) - object.target = "targetFlow"; + object.force = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this TransitionRoute to JSON. + * Converts this DeleteFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @instance * @returns {Object.} JSON object */ - TransitionRoute.prototype.toJSON = function toJSON() { + DeleteFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TransitionRoute + * Gets the default type url for DeleteFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TransitionRoute.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRoute"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest"; }; - return TransitionRoute; + return DeleteFlowRequest; })(); - v3beta1.ListPagesRequest = (function() { + v3beta1.ListFlowsRequest = (function() { /** - * Properties of a ListPagesRequest. + * Properties of a ListFlowsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListPagesRequest - * @property {string|null} [parent] ListPagesRequest parent - * @property {string|null} [languageCode] ListPagesRequest languageCode - * @property {number|null} [pageSize] ListPagesRequest pageSize - * @property {string|null} [pageToken] ListPagesRequest pageToken + * @interface IListFlowsRequest + * @property {string|null} [parent] ListFlowsRequest parent + * @property {number|null} [pageSize] ListFlowsRequest pageSize + * @property {string|null} [pageToken] ListFlowsRequest pageToken + * @property {string|null} [languageCode] ListFlowsRequest languageCode */ /** - * Constructs a new ListPagesRequest. + * Constructs a new ListFlowsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListPagesRequest. - * @implements IListPagesRequest + * @classdesc Represents a ListFlowsRequest. + * @implements IListFlowsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set */ - function ListPagesRequest(properties) { + function ListFlowsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -92940,100 +90599,100 @@ } /** - * ListPagesRequest parent. + * ListFlowsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @instance */ - ListPagesRequest.prototype.parent = ""; + ListFlowsRequest.prototype.parent = ""; /** - * ListPagesRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * ListFlowsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @instance */ - ListPagesRequest.prototype.languageCode = ""; + ListFlowsRequest.prototype.pageSize = 0; /** - * ListPagesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * ListFlowsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @instance */ - ListPagesRequest.prototype.pageSize = 0; + ListFlowsRequest.prototype.pageToken = ""; /** - * ListPagesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * ListFlowsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @instance */ - ListPagesRequest.prototype.pageToken = ""; + ListFlowsRequest.prototype.languageCode = ""; /** - * Creates a new ListPagesRequest instance using the specified properties. + * Creates a new ListFlowsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest instance */ - ListPagesRequest.create = function create(properties) { - return new ListPagesRequest(properties); + ListFlowsRequest.create = function create(properties) { + return new ListFlowsRequest(properties); }; /** - * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPagesRequest.encode = function encode(message, writer) { + ListFlowsRequest.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); + writer.uint32(/* id 2, wireType 0 =*/16).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.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 ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPagesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFlowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPagesRequest message from the specified reader or buffer. + * Decodes a ListFlowsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @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.ListPagesRequest} ListPagesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPagesRequest.decode = function decode(reader, length) { + ListFlowsRequest.decode = function decode(reader, length) { 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.ListPagesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -93042,15 +90701,15 @@ break; } case 2: { - message.languageCode = reader.string(); + message.pageSize = reader.int32(); break; } case 3: { - message.pageSize = reader.int32(); + message.pageToken = reader.string(); break; } case 4: { - message.pageToken = reader.string(); + message.languageCode = reader.string(); break; } default: @@ -93062,149 +90721,149 @@ }; /** - * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPagesRequest.decodeDelimited = function decodeDelimited(reader) { + ListFlowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPagesRequest message. + * Verifies a ListFlowsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPagesRequest.verify = function verify(message) { + ListFlowsRequest.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.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 ListPagesRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest */ - ListPagesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest) + ListFlowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest(); 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); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} message ListPagesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} message ListFlowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPagesRequest.toObject = function toObject(message, options) { + ListFlowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.languageCode = ""; object.pageSize = 0; object.pageToken = ""; + object.languageCode = ""; } 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.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this ListPagesRequest to JSON. + * Converts this ListFlowsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @instance * @returns {Object.} JSON object */ - ListPagesRequest.prototype.toJSON = function toJSON() { + ListFlowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPagesRequest + * Gets the default type url for ListFlowsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFlowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListPagesRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest"; }; - return ListPagesRequest; + return ListFlowsRequest; })(); - v3beta1.ListPagesResponse = (function() { + v3beta1.ListFlowsResponse = (function() { /** - * Properties of a ListPagesResponse. + * Properties of a ListFlowsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListPagesResponse - * @property {Array.|null} [pages] ListPagesResponse pages - * @property {string|null} [nextPageToken] ListPagesResponse nextPageToken + * @interface IListFlowsResponse + * @property {Array.|null} [flows] ListFlowsResponse flows + * @property {string|null} [nextPageToken] ListFlowsResponse nextPageToken */ /** - * Constructs a new ListPagesResponse. + * Constructs a new ListFlowsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListPagesResponse. - * @implements IListPagesResponse + * @classdesc Represents a ListFlowsResponse. + * @implements IListFlowsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set */ - function ListPagesResponse(properties) { - this.pages = []; + function ListFlowsResponse(properties) { + this.flows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93212,88 +90871,88 @@ } /** - * ListPagesResponse pages. - * @member {Array.} pages - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * ListFlowsResponse flows. + * @member {Array.} flows + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @instance */ - ListPagesResponse.prototype.pages = $util.emptyArray; + ListFlowsResponse.prototype.flows = $util.emptyArray; /** - * ListPagesResponse nextPageToken. + * ListFlowsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @instance */ - ListPagesResponse.prototype.nextPageToken = ""; + ListFlowsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListPagesResponse instance using the specified properties. + * Creates a new ListFlowsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse instance */ - ListPagesResponse.create = function create(properties) { - return new ListPagesResponse(properties); + ListFlowsResponse.create = function create(properties) { + return new ListFlowsResponse(properties); }; /** - * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPagesResponse.encode = function encode(message, writer) { + ListFlowsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pages != null && message.pages.length) - for (var i = 0; i < message.pages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.pages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.flows != null && message.flows.length) + for (var i = 0; i < message.flows.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flows[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 ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListFlowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPagesResponse message from the specified reader or buffer. + * Decodes a ListFlowsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @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.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPagesResponse.decode = function decode(reader, length) { + ListFlowsResponse.decode = function decode(reader, length) { 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.ListPagesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.pages && message.pages.length)) - message.pages = []; - message.pages.push($root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32())); + if (!(message.flows && message.flows.length)) + message.flows = []; + message.flows.push($root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32())); break; } case 2: { @@ -93309,39 +90968,39 @@ }; /** - * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPagesResponse.decodeDelimited = function decodeDelimited(reader) { + ListFlowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPagesResponse message. + * Verifies a ListFlowsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPagesResponse.verify = function verify(message) { + ListFlowsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pages != null && message.hasOwnProperty("pages")) { - if (!Array.isArray(message.pages)) - return "pages: array expected"; - for (var i = 0; i < message.pages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.pages[i]); + if (message.flows != null && message.hasOwnProperty("flows")) { + if (!Array.isArray(message.flows)) + return "flows: array expected"; + for (var i = 0; i < message.flows.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flows[i]); if (error) - return "pages." + error; + return "flows." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -93351,25 +91010,25 @@ }; /** - * Creates a ListPagesResponse 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse */ - ListPagesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) + ListFlowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse(); - if (object.pages) { - if (!Array.isArray(object.pages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: array expected"); - message.pages = []; - for (var i = 0; i < object.pages.length; ++i) { - if (typeof object.pages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: object expected"); - message.pages[i] = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.pages[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse(); + if (object.flows) { + if (!Array.isArray(object.flows)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: array expected"); + message.flows = []; + for (var i = 0; i < object.flows.length; ++i) { + if (typeof object.flows[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: object expected"); + message.flows[i] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flows[i]); } } if (object.nextPageToken != null) @@ -93378,26 +91037,26 @@ }; /** - * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} message ListPagesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} message ListFlowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPagesResponse.toObject = function toObject(message, options) { + ListFlowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.pages = []; + object.flows = []; if (options.defaults) object.nextPageToken = ""; - if (message.pages && message.pages.length) { - object.pages = []; - for (var j = 0; j < message.pages.length; ++j) - object.pages[j] = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.pages[j], options); + if (message.flows && message.flows.length) { + object.flows = []; + for (var j = 0; j < message.flows.length; ++j) + object.flows[j] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flows[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -93405,53 +91064,53 @@ }; /** - * Converts this ListPagesResponse to JSON. + * Converts this ListFlowsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @instance * @returns {Object.} JSON object */ - ListPagesResponse.prototype.toJSON = function toJSON() { + ListFlowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPagesResponse + * Gets the default type url for ListFlowsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFlowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListPagesResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse"; }; - return ListPagesResponse; + return ListFlowsResponse; })(); - v3beta1.GetPageRequest = (function() { + v3beta1.GetFlowRequest = (function() { /** - * Properties of a GetPageRequest. + * Properties of a GetFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetPageRequest - * @property {string|null} [name] GetPageRequest name - * @property {string|null} [languageCode] GetPageRequest languageCode + * @interface IGetFlowRequest + * @property {string|null} [name] GetFlowRequest name + * @property {string|null} [languageCode] GetFlowRequest languageCode */ /** - * Constructs a new GetPageRequest. + * Constructs a new GetFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetPageRequest. - * @implements IGetPageRequest + * @classdesc Represents a GetFlowRequest. + * @implements IGetFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set */ - function GetPageRequest(properties) { + function GetFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93459,43 +91118,43 @@ } /** - * GetPageRequest name. + * GetFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @instance */ - GetPageRequest.prototype.name = ""; + GetFlowRequest.prototype.name = ""; /** - * GetPageRequest languageCode. + * GetFlowRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @instance */ - GetPageRequest.prototype.languageCode = ""; + GetFlowRequest.prototype.languageCode = ""; /** - * Creates a new GetPageRequest instance using the specified properties. + * Creates a new GetFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest instance */ - GetPageRequest.create = function create(properties) { - return new GetPageRequest(properties); + GetFlowRequest.create = function create(properties) { + return new GetFlowRequest(properties); }; /** - * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPageRequest.encode = function encode(message, writer) { + GetFlowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -93506,33 +91165,33 @@ }; /** - * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPageRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPageRequest message from the specified reader or buffer. + * Decodes a GetFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @static * @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.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPageRequest.decode = function decode(reader, length) { + GetFlowRequest.decode = function decode(reader, length) { 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.GetPageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -93553,30 +91212,30 @@ }; /** - * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPageRequest.decodeDelimited = function decodeDelimited(reader) { + GetFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPageRequest message. + * Verifies a GetFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPageRequest.verify = function verify(message) { + GetFlowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -93589,17 +91248,17 @@ }; /** - * Creates a GetPageRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest */ - GetPageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest) + GetFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest(); if (object.name != null) message.name = String(object.name); if (object.languageCode != null) @@ -93608,15 +91267,15 @@ }; /** - * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} message GetPageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} message GetFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPageRequest.toObject = function toObject(message, options) { + GetFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -93632,54 +91291,54 @@ }; /** - * Converts this GetPageRequest to JSON. + * Converts this GetFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @instance * @returns {Object.} JSON object */ - GetPageRequest.prototype.toJSON = function toJSON() { + GetFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPageRequest + * Gets the default type url for GetFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetPageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetFlowRequest"; }; - return GetPageRequest; + return GetFlowRequest; })(); - v3beta1.CreatePageRequest = (function() { + v3beta1.UpdateFlowRequest = (function() { /** - * Properties of a CreatePageRequest. + * Properties of an UpdateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreatePageRequest - * @property {string|null} [parent] CreatePageRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] CreatePageRequest page - * @property {string|null} [languageCode] CreatePageRequest languageCode + * @interface IUpdateFlowRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] UpdateFlowRequest flow + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFlowRequest updateMask + * @property {string|null} [languageCode] UpdateFlowRequest languageCode */ /** - * Constructs a new CreatePageRequest. + * Constructs a new UpdateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreatePageRequest. - * @implements ICreatePageRequest + * @classdesc Represents an UpdateFlowRequest. + * @implements IUpdateFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set */ - function CreatePageRequest(properties) { + function UpdateFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93687,99 +91346,99 @@ } /** - * CreatePageRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * UpdateFlowRequest flow. + * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @instance */ - CreatePageRequest.prototype.parent = ""; + UpdateFlowRequest.prototype.flow = null; /** - * CreatePageRequest page. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * UpdateFlowRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @instance */ - CreatePageRequest.prototype.page = null; + UpdateFlowRequest.prototype.updateMask = null; /** - * CreatePageRequest languageCode. + * UpdateFlowRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @instance */ - CreatePageRequest.prototype.languageCode = ""; + UpdateFlowRequest.prototype.languageCode = ""; /** - * Creates a new CreatePageRequest instance using the specified properties. + * Creates a new UpdateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest instance */ - CreatePageRequest.create = function create(properties) { - return new CreatePageRequest(properties); + UpdateFlowRequest.create = function create(properties) { + return new UpdateFlowRequest(properties); }; /** - * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePageRequest.encode = function encode(message, writer) { + UpdateFlowRequest.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.page != null && Object.hasOwnProperty.call(message, "page")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, 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 CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePageRequest message from the specified reader or buffer. + * Decodes an UpdateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @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.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePageRequest.decode = function decode(reader, length) { + UpdateFlowRequest.decode = function decode(reader, length) { 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.CreatePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); break; } case 2: { - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 3: { @@ -93795,39 +91454,41 @@ }; /** - * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePageRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePageRequest message. + * Verifies an UpdateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePageRequest.verify = function verify(message) { + UpdateFlowRequest.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.page != null && message.hasOwnProperty("page")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + if (message.flow != null && message.hasOwnProperty("flow")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); if (error) - return "page." + error; + return "flow." + 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)) @@ -93836,23 +91497,26 @@ }; /** - * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest */ - CreatePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest) + UpdateFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest(); + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } if (object.languageCode != null) message.languageCode = String(object.languageCode); @@ -93860,81 +91524,79 @@ }; /** - * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} message CreatePageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} message UpdateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePageRequest.toObject = function toObject(message, options) { + UpdateFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.page = null; + object.flow = null; + object.updateMask = null; object.languageCode = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.page != null && message.hasOwnProperty("page")) - object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, 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 CreatePageRequest to JSON. + * Converts this UpdateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @instance * @returns {Object.} JSON object */ - CreatePageRequest.prototype.toJSON = function toJSON() { + UpdateFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePageRequest + * Gets the default type url for UpdateFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreatePageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest"; }; - return CreatePageRequest; + return UpdateFlowRequest; })(); - v3beta1.UpdatePageRequest = (function() { + v3beta1.TrainFlowRequest = (function() { /** - * Properties of an UpdatePageRequest. + * Properties of a TrainFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdatePageRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] UpdatePageRequest page - * @property {string|null} [languageCode] UpdatePageRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePageRequest updateMask + * @interface ITrainFlowRequest + * @property {string|null} [name] TrainFlowRequest name */ /** - * Constructs a new UpdatePageRequest. + * Constructs a new TrainFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdatePageRequest. - * @implements IUpdatePageRequest + * @classdesc Represents a TrainFlowRequest. + * @implements ITrainFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set */ - function UpdatePageRequest(properties) { + function TrainFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93942,103 +91604,75 @@ } /** - * UpdatePageRequest page. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest - * @instance - */ - UpdatePageRequest.prototype.page = null; - - /** - * UpdatePageRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest - * @instance - */ - UpdatePageRequest.prototype.languageCode = ""; - - /** - * UpdatePageRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * TrainFlowRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @instance */ - UpdatePageRequest.prototype.updateMask = null; + TrainFlowRequest.prototype.name = ""; /** - * Creates a new UpdatePageRequest instance using the specified properties. + * Creates a new TrainFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest instance */ - UpdatePageRequest.create = function create(properties) { - return new UpdatePageRequest(properties); + TrainFlowRequest.create = function create(properties) { + return new TrainFlowRequest(properties); }; /** - * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePageRequest.encode = function encode(message, writer) { + TrainFlowRequest.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.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + TrainFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdatePageRequest message from the specified reader or buffer. + * Decodes a TrainFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @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.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePageRequest.decode = function decode(reader, length) { + TrainFlowRequest.decode = function decode(reader, length) { 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.UpdatePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest(); 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.languageCode = reader.string(); - break; - } - case 3: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -94050,150 +91684,123 @@ }; /** - * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. + * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePageRequest.decodeDelimited = function decodeDelimited(reader) { + TrainFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdatePageRequest message. + * Verifies a TrainFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdatePageRequest.verify = function verify(message) { + TrainFlowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.page != null && message.hasOwnProperty("page")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); - if (error) - return "page." + 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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdatePageRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest */ - UpdatePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest) + TrainFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest(); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); - } - 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.UpdatePageRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdatePageRequest message. Also converts values to other types if specified. + * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} message UpdatePageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} message TrainFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdatePageRequest.toObject = function toObject(message, options) { + TrainFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.page = null; - object.languageCode = ""; - object.updateMask = null; - } - if (message.page != null && message.hasOwnProperty("page")) - object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, 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.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdatePageRequest to JSON. + * Converts this TrainFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @instance * @returns {Object.} JSON object */ - UpdatePageRequest.prototype.toJSON = function toJSON() { + TrainFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdatePageRequest + * Gets the default type url for TrainFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TrainFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest"; }; - return UpdatePageRequest; + return TrainFlowRequest; })(); - v3beta1.DeletePageRequest = (function() { + v3beta1.ValidateFlowRequest = (function() { /** - * Properties of a DeletePageRequest. + * Properties of a ValidateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeletePageRequest - * @property {string|null} [name] DeletePageRequest name - * @property {boolean|null} [force] DeletePageRequest force + * @interface IValidateFlowRequest + * @property {string|null} [name] ValidateFlowRequest name + * @property {string|null} [languageCode] ValidateFlowRequest languageCode */ /** - * Constructs a new DeletePageRequest. + * Constructs a new ValidateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeletePageRequest. - * @implements IDeletePageRequest + * @classdesc Represents a ValidateFlowRequest. + * @implements IValidateFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest=} [properties] Properties to set */ - function DeletePageRequest(properties) { + function ValidateFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94201,80 +91808,80 @@ } /** - * DeletePageRequest name. + * ValidateFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @instance */ - DeletePageRequest.prototype.name = ""; + ValidateFlowRequest.prototype.name = ""; /** - * DeletePageRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * ValidateFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @instance */ - DeletePageRequest.prototype.force = false; + ValidateFlowRequest.prototype.languageCode = ""; /** - * Creates a new DeletePageRequest instance using the specified properties. + * Creates a new ValidateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest instance */ - DeletePageRequest.create = function create(properties) { - return new DeletePageRequest(properties); + ValidateFlowRequest.create = function create(properties) { + return new ValidateFlowRequest(properties); }; /** - * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePageRequest.encode = function encode(message, writer) { + ValidateFlowRequest.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.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePageRequest message from the specified reader or buffer. + * Decodes a ValidateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @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.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePageRequest.decode = function decode(reader, length) { + ValidateFlowRequest.decode = function decode(reader, length) { 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.DeletePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -94283,7 +91890,7 @@ break; } case 2: { - message.force = reader.bool(); + message.languageCode = reader.string(); break; } default: @@ -94295,136 +91902,132 @@ }; /** - * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePageRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePageRequest message. + * Verifies a ValidateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePageRequest.verify = function verify(message) { + ValidateFlowRequest.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.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a DeletePageRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest */ - DeletePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest) + ValidateFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest(); if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a DeletePageRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} message DeletePageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} message ValidateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePageRequest.toObject = function toObject(message, options) { + ValidateFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.force = false; + object.languageCode = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this DeletePageRequest to JSON. + * Converts this ValidateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @instance * @returns {Object.} JSON object */ - DeletePageRequest.prototype.toJSON = function toJSON() { + ValidateFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePageRequest + * Gets the default type url for ValidateFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeletePageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest"; }; - return DeletePageRequest; + return ValidateFlowRequest; })(); - v3beta1.KnowledgeConnectorSettings = (function() { + v3beta1.GetFlowValidationResultRequest = (function() { /** - * Properties of a KnowledgeConnectorSettings. + * Properties of a GetFlowValidationResultRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IKnowledgeConnectorSettings - * @property {boolean|null} [enabled] KnowledgeConnectorSettings enabled - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] KnowledgeConnectorSettings triggerFulfillment - * @property {string|null} [targetPage] KnowledgeConnectorSettings targetPage - * @property {string|null} [targetFlow] KnowledgeConnectorSettings targetFlow - * @property {Array.|null} [dataStoreConnections] KnowledgeConnectorSettings dataStoreConnections + * @interface IGetFlowValidationResultRequest + * @property {string|null} [name] GetFlowValidationResultRequest name + * @property {string|null} [languageCode] GetFlowValidationResultRequest languageCode */ /** - * Constructs a new KnowledgeConnectorSettings. + * Constructs a new GetFlowValidationResultRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a KnowledgeConnectorSettings. - * @implements IKnowledgeConnectorSettings + * @classdesc Represents a GetFlowValidationResultRequest. + * @implements IGetFlowValidationResultRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest=} [properties] Properties to set */ - function KnowledgeConnectorSettings(properties) { - this.dataStoreConnections = []; + function GetFlowValidationResultRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94432,148 +92035,89 @@ } /** - * KnowledgeConnectorSettings enabled. - * @member {boolean} enabled - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings - * @instance - */ - KnowledgeConnectorSettings.prototype.enabled = false; - - /** - * KnowledgeConnectorSettings triggerFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings - * @instance - */ - KnowledgeConnectorSettings.prototype.triggerFulfillment = null; - - /** - * KnowledgeConnectorSettings targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings - * @instance - */ - KnowledgeConnectorSettings.prototype.targetPage = null; - - /** - * KnowledgeConnectorSettings targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings - * @instance - */ - KnowledgeConnectorSettings.prototype.targetFlow = null; - - /** - * KnowledgeConnectorSettings dataStoreConnections. - * @member {Array.} dataStoreConnections - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * GetFlowValidationResultRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @instance */ - KnowledgeConnectorSettings.prototype.dataStoreConnections = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + GetFlowValidationResultRequest.prototype.name = ""; /** - * KnowledgeConnectorSettings target. - * @member {"targetPage"|"targetFlow"|undefined} target - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * GetFlowValidationResultRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @instance */ - Object.defineProperty(KnowledgeConnectorSettings.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetFlowValidationResultRequest.prototype.languageCode = ""; /** - * Creates a new KnowledgeConnectorSettings instance using the specified properties. + * Creates a new GetFlowValidationResultRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings} KnowledgeConnectorSettings instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest instance */ - KnowledgeConnectorSettings.create = function create(properties) { - return new KnowledgeConnectorSettings(properties); + GetFlowValidationResultRequest.create = function create(properties) { + return new GetFlowValidationResultRequest(properties); }; /** - * Encodes the specified KnowledgeConnectorSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify|verify} messages. + * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings} message KnowledgeConnectorSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KnowledgeConnectorSettings.encode = function encode(message, writer) { + GetFlowValidationResultRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetFlow); - if (message.dataStoreConnections != null && message.dataStoreConnections.length) - for (var i = 0; i < message.dataStoreConnections.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.encode(message.dataStoreConnections[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + 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 KnowledgeConnectorSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify|verify} messages. + * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings} message KnowledgeConnectorSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - KnowledgeConnectorSettings.encodeDelimited = function encodeDelimited(message, writer) { + GetFlowValidationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer. + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @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.KnowledgeConnectorSettings} KnowledgeConnectorSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KnowledgeConnectorSettings.decode = function decode(reader, length) { + GetFlowValidationResultRequest.decode = function decode(reader, length) { 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.KnowledgeConnectorSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enabled = reader.bool(); - break; - } - case 3: { - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); - break; - } - case 4: { - message.targetPage = reader.string(); - break; - } - case 5: { - message.targetFlow = reader.string(); + message.name = reader.string(); break; } - case 6: { - if (!(message.dataStoreConnections && message.dataStoreConnections.length)) - message.dataStoreConnections = []; - message.dataStoreConnections.push($root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.decode(reader, reader.uint32())); + case 2: { + message.languageCode = reader.string(); break; } default: @@ -94585,190 +92129,134 @@ }; /** - * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer, length delimited. + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings} KnowledgeConnectorSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - KnowledgeConnectorSettings.decodeDelimited = function decodeDelimited(reader) { + GetFlowValidationResultRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a KnowledgeConnectorSettings message. + * Verifies a GetFlowValidationResultRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - KnowledgeConnectorSettings.verify = function verify(message) { + GetFlowValidationResultRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); - if (error) - return "triggerFulfillment." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.target = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; - } - if (message.dataStoreConnections != null && message.hasOwnProperty("dataStoreConnections")) { - if (!Array.isArray(message.dataStoreConnections)) - return "dataStoreConnections: array expected"; - for (var i = 0; i < message.dataStoreConnections.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify(message.dataStoreConnections[i]); - if (error) - return "dataStoreConnections." + 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 KnowledgeConnectorSettings 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings} KnowledgeConnectorSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest */ - KnowledgeConnectorSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings) + GetFlowValidationResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.triggerFulfillment != null) { - if (typeof object.triggerFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.triggerFulfillment: object expected"); - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); - } - if (object.targetPage != null) - message.targetPage = String(object.targetPage); - if (object.targetFlow != null) - message.targetFlow = String(object.targetFlow); - if (object.dataStoreConnections) { - if (!Array.isArray(object.dataStoreConnections)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.dataStoreConnections: array expected"); - message.dataStoreConnections = []; - for (var i = 0; i < object.dataStoreConnections.length; ++i) { - if (typeof object.dataStoreConnections[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.dataStoreConnections: object expected"); - message.dataStoreConnections[i] = $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.fromObject(object.dataStoreConnections[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest(); + 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 KnowledgeConnectorSettings message. Also converts values to other types if specified. + * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings} message KnowledgeConnectorSettings + * @param {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} message GetFlowValidationResultRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - KnowledgeConnectorSettings.toObject = function toObject(message, options) { + GetFlowValidationResultRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.dataStoreConnections = []; if (options.defaults) { - object.enabled = false; - object.triggerFulfillment = null; - } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) - object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; - if (options.oneofs) - object.target = "targetPage"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; - if (options.oneofs) - object.target = "targetFlow"; - } - if (message.dataStoreConnections && message.dataStoreConnections.length) { - object.dataStoreConnections = []; - for (var j = 0; j < message.dataStoreConnections.length; ++j) - object.dataStoreConnections[j] = $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.toObject(message.dataStoreConnections[j], options); + 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 KnowledgeConnectorSettings to JSON. + * Converts this GetFlowValidationResultRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @instance * @returns {Object.} JSON object */ - KnowledgeConnectorSettings.prototype.toJSON = function toJSON() { + GetFlowValidationResultRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for KnowledgeConnectorSettings + * Gets the default type url for GetFlowValidationResultRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - KnowledgeConnectorSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetFlowValidationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest"; }; - return KnowledgeConnectorSettings; + return GetFlowValidationResultRequest; })(); - v3beta1.DataStoreConnection = (function() { + v3beta1.FlowValidationResult = (function() { /** - * Properties of a DataStoreConnection. + * Properties of a FlowValidationResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDataStoreConnection - * @property {google.cloud.dialogflow.cx.v3beta1.DataStoreType|null} [dataStoreType] DataStoreConnection dataStoreType - * @property {string|null} [dataStore] DataStoreConnection dataStore + * @interface IFlowValidationResult + * @property {string|null} [name] FlowValidationResult name + * @property {Array.|null} [validationMessages] FlowValidationResult validationMessages + * @property {google.protobuf.ITimestamp|null} [updateTime] FlowValidationResult updateTime */ /** - * Constructs a new DataStoreConnection. + * Constructs a new FlowValidationResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DataStoreConnection. - * @implements IDataStoreConnection + * @classdesc Represents a FlowValidationResult. + * @implements IFlowValidationResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult=} [properties] Properties to set */ - function DataStoreConnection(properties) { + function FlowValidationResult(properties) { + this.validationMessages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -94776,89 +92264,106 @@ } /** - * DataStoreConnection dataStoreType. - * @member {google.cloud.dialogflow.cx.v3beta1.DataStoreType} dataStoreType - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * FlowValidationResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @instance */ - DataStoreConnection.prototype.dataStoreType = 0; + FlowValidationResult.prototype.name = ""; /** - * DataStoreConnection dataStore. - * @member {string} dataStore - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * FlowValidationResult validationMessages. + * @member {Array.} validationMessages + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @instance */ - DataStoreConnection.prototype.dataStore = ""; + FlowValidationResult.prototype.validationMessages = $util.emptyArray; /** - * Creates a new DataStoreConnection instance using the specified properties. + * FlowValidationResult updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @instance + */ + FlowValidationResult.prototype.updateTime = null; + + /** + * Creates a new FlowValidationResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DataStoreConnection} DataStoreConnection instance + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult instance */ - DataStoreConnection.create = function create(properties) { - return new DataStoreConnection(properties); + FlowValidationResult.create = function create(properties) { + return new FlowValidationResult(properties); }; /** - * Encodes the specified DataStoreConnection message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify|verify} messages. + * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection} message DataStoreConnection message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult} message FlowValidationResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataStoreConnection.encode = function encode(message, writer) { + FlowValidationResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataStoreType != null && Object.hasOwnProperty.call(message, "dataStoreType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.dataStoreType); - if (message.dataStore != null && Object.hasOwnProperty.call(message, "dataStore")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataStore); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.validationMessages != null && message.validationMessages.length) + for (var i = 0; i < message.validationMessages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.encode(message.validationMessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified DataStoreConnection message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify|verify} messages. + * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection} message DataStoreConnection message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult} message FlowValidationResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataStoreConnection.encodeDelimited = function encodeDelimited(message, writer) { + FlowValidationResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataStoreConnection message from the specified reader or buffer. + * Decodes a FlowValidationResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @static * @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.DataStoreConnection} DataStoreConnection + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataStoreConnection.decode = function decode(reader, length) { + FlowValidationResult.decode = function decode(reader, length) { 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.DataStoreConnection(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dataStoreType = reader.int32(); + message.name = reader.string(); break; } case 2: { - message.dataStore = reader.string(); + if (!(message.validationMessages && message.validationMessages.length)) + message.validationMessages = []; + message.validationMessages.push($root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.decode(reader, reader.uint32())); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -94870,186 +92375,166 @@ }; /** - * Decodes a DataStoreConnection message from the specified reader or buffer, length delimited. + * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DataStoreConnection} DataStoreConnection + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataStoreConnection.decodeDelimited = function decodeDelimited(reader) { + FlowValidationResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataStoreConnection message. + * Verifies a FlowValidationResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataStoreConnection.verify = function verify(message) { + FlowValidationResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataStoreType != null && message.hasOwnProperty("dataStoreType")) - switch (message.dataStoreType) { - default: - return "dataStoreType: 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.validationMessages != null && message.hasOwnProperty("validationMessages")) { + if (!Array.isArray(message.validationMessages)) + return "validationMessages: array expected"; + for (var i = 0; i < message.validationMessages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify(message.validationMessages[i]); + if (error) + return "validationMessages." + error; } - if (message.dataStore != null && message.hasOwnProperty("dataStore")) - if (!$util.isString(message.dataStore)) - return "dataStore: 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 DataStoreConnection 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DataStoreConnection} DataStoreConnection + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult */ - DataStoreConnection.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection) + FlowValidationResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection(); - switch (object.dataStoreType) { - default: - if (typeof object.dataStoreType === "number") { - message.dataStoreType = object.dataStoreType; - break; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult(); + if (object.name != null) + message.name = String(object.name); + if (object.validationMessages) { + if (!Array.isArray(object.validationMessages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.validationMessages: array expected"); + message.validationMessages = []; + for (var i = 0; i < object.validationMessages.length; ++i) { + if (typeof object.validationMessages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.validationMessages: object expected"); + message.validationMessages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.fromObject(object.validationMessages[i]); } - break; - case "DATA_STORE_TYPE_UNSPECIFIED": - case 0: - message.dataStoreType = 0; - break; - case "PUBLIC_WEB": - case 1: - message.dataStoreType = 1; - break; - case "UNSTRUCTURED": - case 2: - message.dataStoreType = 2; - break; - case "STRUCTURED": - case 3: - message.dataStoreType = 3; - break; } - if (object.dataStore != null) - message.dataStore = String(object.dataStore); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } return message; }; /** - * Creates a plain object from a DataStoreConnection message. Also converts values to other types if specified. + * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DataStoreConnection} message DataStoreConnection + * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} message FlowValidationResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataStoreConnection.toObject = function toObject(message, options) { + FlowValidationResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.validationMessages = []; if (options.defaults) { - object.dataStoreType = options.enums === String ? "DATA_STORE_TYPE_UNSPECIFIED" : 0; - object.dataStore = ""; + object.name = ""; + object.updateTime = null; } - if (message.dataStoreType != null && message.hasOwnProperty("dataStoreType")) - object.dataStoreType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.DataStoreType[message.dataStoreType] === undefined ? message.dataStoreType : $root.google.cloud.dialogflow.cx.v3beta1.DataStoreType[message.dataStoreType] : message.dataStoreType; - if (message.dataStore != null && message.hasOwnProperty("dataStore")) - object.dataStore = message.dataStore; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.validationMessages && message.validationMessages.length) { + object.validationMessages = []; + for (var j = 0; j < message.validationMessages.length; ++j) + object.validationMessages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.toObject(message.validationMessages[j], options); + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this DataStoreConnection to JSON. + * Converts this FlowValidationResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @instance * @returns {Object.} JSON object */ - DataStoreConnection.prototype.toJSON = function toJSON() { + FlowValidationResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DataStoreConnection + * Gets the default type url for FlowValidationResult * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DataStoreConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FlowValidationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DataStoreConnection"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.FlowValidationResult"; }; - return DataStoreConnection; - })(); - - /** - * DataStoreType enum. - * @name google.cloud.dialogflow.cx.v3beta1.DataStoreType - * @enum {number} - * @property {number} DATA_STORE_TYPE_UNSPECIFIED=0 DATA_STORE_TYPE_UNSPECIFIED value - * @property {number} PUBLIC_WEB=1 PUBLIC_WEB value - * @property {number} UNSTRUCTURED=2 UNSTRUCTURED value - * @property {number} STRUCTURED=3 STRUCTURED value - */ - v3beta1.DataStoreType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_STORE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PUBLIC_WEB"] = 1; - values[valuesById[2] = "UNSTRUCTURED"] = 2; - values[valuesById[3] = "STRUCTURED"] = 3; - return values; + return FlowValidationResult; })(); - v3beta1.Fulfillment = (function() { + v3beta1.ImportFlowRequest = (function() { /** - * Properties of a Fulfillment. + * Properties of an ImportFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFulfillment - * @property {Array.|null} [messages] Fulfillment messages - * @property {string|null} [webhook] Fulfillment webhook - * @property {boolean|null} [returnPartialResponses] Fulfillment returnPartialResponses - * @property {string|null} [tag] Fulfillment tag - * @property {Array.|null} [setParameterActions] Fulfillment setParameterActions - * @property {Array.|null} [conditionalCases] Fulfillment conditionalCases + * @interface IImportFlowRequest + * @property {string|null} [parent] ImportFlowRequest parent + * @property {string|null} [flowUri] ImportFlowRequest flowUri + * @property {Uint8Array|null} [flowContent] ImportFlowRequest flowContent + * @property {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|null} [importOption] ImportFlowRequest importOption + * @property {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy|null} [flowImportStrategy] ImportFlowRequest flowImportStrategy */ /** - * Constructs a new Fulfillment. + * Constructs a new ImportFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Fulfillment. - * @implements IFulfillment + * @classdesc Represents an ImportFlowRequest. + * @implements IImportFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest=} [properties] Properties to set */ - function Fulfillment(properties) { - this.messages = []; - this.setParameterActions = []; - this.conditionalCases = []; + function ImportFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95057,154 +92542,145 @@ } /** - * Fulfillment messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * ImportFlowRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Fulfillment.prototype.messages = $util.emptyArray; + ImportFlowRequest.prototype.parent = ""; /** - * Fulfillment webhook. - * @member {string} webhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * ImportFlowRequest flowUri. + * @member {string|null|undefined} flowUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Fulfillment.prototype.webhook = ""; + ImportFlowRequest.prototype.flowUri = null; /** - * Fulfillment returnPartialResponses. - * @member {boolean} returnPartialResponses - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * ImportFlowRequest flowContent. + * @member {Uint8Array|null|undefined} flowContent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Fulfillment.prototype.returnPartialResponses = false; + ImportFlowRequest.prototype.flowContent = null; /** - * Fulfillment tag. - * @member {string} tag - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * ImportFlowRequest importOption. + * @member {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption} importOption + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Fulfillment.prototype.tag = ""; + ImportFlowRequest.prototype.importOption = 0; /** - * Fulfillment setParameterActions. - * @member {Array.} setParameterActions - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * ImportFlowRequest flowImportStrategy. + * @member {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy|null|undefined} flowImportStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Fulfillment.prototype.setParameterActions = $util.emptyArray; + ImportFlowRequest.prototype.flowImportStrategy = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Fulfillment conditionalCases. - * @member {Array.} conditionalCases - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * ImportFlowRequest flow. + * @member {"flowUri"|"flowContent"|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Fulfillment.prototype.conditionalCases = $util.emptyArray; + Object.defineProperty(ImportFlowRequest.prototype, "flow", { + get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Fulfillment instance using the specified properties. + * Creates a new ImportFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest instance */ - Fulfillment.create = function create(properties) { - return new Fulfillment(properties); + ImportFlowRequest.create = function create(properties) { + return new ImportFlowRequest(properties); }; /** - * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} message ImportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fulfillment.encode = function encode(message, writer) { + ImportFlowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messages != null && message.messages.length) - for (var i = 0; i < message.messages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.webhook); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tag); - if (message.setParameterActions != null && message.setParameterActions.length) - for (var i = 0; i < message.setParameterActions.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.encode(message.setParameterActions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.conditionalCases != null && message.conditionalCases.length) - for (var i = 0; i < message.conditionalCases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.conditionalCases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.returnPartialResponses != null && Object.hasOwnProperty.call(message, "returnPartialResponses")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.returnPartialResponses); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); + if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.flowContent); + if (message.importOption != null && Object.hasOwnProperty.call(message, "importOption")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.importOption); + if (message.flowImportStrategy != null && Object.hasOwnProperty.call(message, "flowImportStrategy")) + $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.encode(message.flowImportStrategy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * Encodes the specified ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} message ImportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fulfillment.encodeDelimited = function encodeDelimited(message, writer) { + ImportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Fulfillment message from the specified reader or buffer. + * Decodes an ImportFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @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.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fulfillment.decode = function decode(reader, length) { + ImportFlowRequest.decode = function decode(reader, length) { 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.Fulfillment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.messages && message.messages.length)) - message.messages = []; - message.messages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.webhook = reader.string(); - break; - } - case 8: { - message.returnPartialResponses = reader.bool(); + message.flowUri = reader.string(); break; } case 3: { - message.tag = reader.string(); + message.flowContent = reader.bytes(); break; } case 4: { - if (!(message.setParameterActions && message.setParameterActions.length)) - message.setParameterActions = []; - message.setParameterActions.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.decode(reader, reader.uint32())); + message.importOption = reader.int32(); break; } case 5: { - if (!(message.conditionalCases && message.conditionalCases.length)) - message.conditionalCases = []; - message.conditionalCases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32())); + message.flowImportStrategy = $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.decode(reader, reader.uint32()); break; } default: @@ -95216,1192 +92692,661 @@ }; /** - * Decodes a Fulfillment message from the specified reader or buffer, length delimited. + * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fulfillment.decodeDelimited = function decodeDelimited(reader) { + ImportFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Fulfillment message. + * Verifies an ImportFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Fulfillment.verify = function verify(message) { + ImportFlowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.messages != null && message.hasOwnProperty("messages")) { - if (!Array.isArray(message.messages)) - return "messages: array expected"; - for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.messages[i]); - if (error) - return "messages." + error; - } + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + properties.flow = 1; + if (!$util.isString(message.flowUri)) + return "flowUri: string expected"; } - if (message.webhook != null && message.hasOwnProperty("webhook")) - if (!$util.isString(message.webhook)) - return "webhook: string expected"; - if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) - if (typeof message.returnPartialResponses !== "boolean") - return "returnPartialResponses: boolean expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - if (message.setParameterActions != null && message.hasOwnProperty("setParameterActions")) { - if (!Array.isArray(message.setParameterActions)) - return "setParameterActions: array expected"; - for (var i = 0; i < message.setParameterActions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify(message.setParameterActions[i]); - if (error) - return "setParameterActions." + error; - } + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + if (properties.flow === 1) + return "flow: multiple values"; + properties.flow = 1; + if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) + return "flowContent: buffer expected"; } - if (message.conditionalCases != null && message.hasOwnProperty("conditionalCases")) { - if (!Array.isArray(message.conditionalCases)) - return "conditionalCases: array expected"; - for (var i = 0; i < message.conditionalCases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.conditionalCases[i]); - if (error) - return "conditionalCases." + error; + if (message.importOption != null && message.hasOwnProperty("importOption")) + switch (message.importOption) { + default: + return "importOption: enum value expected"; + case 0: + case 1: + case 2: + break; } + if (message.flowImportStrategy != null && message.hasOwnProperty("flowImportStrategy")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify(message.flowImportStrategy); + if (error) + return "flowImportStrategy." + error; } return null; }; /** - * Creates a Fulfillment message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest */ - Fulfillment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment) + ImportFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment(); - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages: array expected"); - message.messages = []; - for (var i = 0; i < object.messages.length; ++i) { - if (typeof object.messages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); - } - } - if (object.webhook != null) - message.webhook = String(object.webhook); - if (object.returnPartialResponses != null) - message.returnPartialResponses = Boolean(object.returnPartialResponses); - if (object.tag != null) - message.tag = String(object.tag); - if (object.setParameterActions) { - if (!Array.isArray(object.setParameterActions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: array expected"); - message.setParameterActions = []; - for (var i = 0; i < object.setParameterActions.length; ++i) { - if (typeof object.setParameterActions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: object expected"); - message.setParameterActions[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.fromObject(object.setParameterActions[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.flowUri != null) + message.flowUri = String(object.flowUri); + if (object.flowContent != null) + if (typeof object.flowContent === "string") + $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); + else if (object.flowContent.length >= 0) + message.flowContent = object.flowContent; + switch (object.importOption) { + default: + if (typeof object.importOption === "number") { + message.importOption = object.importOption; + break; } + break; + case "IMPORT_OPTION_UNSPECIFIED": + case 0: + message.importOption = 0; + break; + case "KEEP": + case 1: + message.importOption = 1; + break; + case "FALLBACK": + case 2: + message.importOption = 2; + break; } - if (object.conditionalCases) { - if (!Array.isArray(object.conditionalCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: array expected"); - message.conditionalCases = []; - for (var i = 0; i < object.conditionalCases.length; ++i) { - if (typeof object.conditionalCases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: object expected"); - message.conditionalCases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.conditionalCases[i]); - } + if (object.flowImportStrategy != null) { + if (typeof object.flowImportStrategy !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.flowImportStrategy: object expected"); + message.flowImportStrategy = $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.fromObject(object.flowImportStrategy); } return message; }; /** - * Creates a plain object from a Fulfillment message. Also converts values to other types if specified. + * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment} message Fulfillment + * @param {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} message ImportFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Fulfillment.toObject = function toObject(message, options) { + ImportFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.messages = []; - object.setParameterActions = []; - object.conditionalCases = []; - } if (options.defaults) { - object.webhook = ""; - object.tag = ""; - object.returnPartialResponses = false; - } - if (message.messages && message.messages.length) { - object.messages = []; - for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.messages[j], options); + object.parent = ""; + object.importOption = options.enums === String ? "IMPORT_OPTION_UNSPECIFIED" : 0; + object.flowImportStrategy = null; } - if (message.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = message.webhook; - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = message.tag; - if (message.setParameterActions && message.setParameterActions.length) { - object.setParameterActions = []; - for (var j = 0; j < message.setParameterActions.length; ++j) - object.setParameterActions[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.toObject(message.setParameterActions[j], options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + object.flowUri = message.flowUri; + if (options.oneofs) + object.flow = "flowUri"; } - if (message.conditionalCases && message.conditionalCases.length) { - object.conditionalCases = []; - for (var j = 0; j < message.conditionalCases.length; ++j) - object.conditionalCases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.conditionalCases[j], options); + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; + if (options.oneofs) + object.flow = "flowContent"; } - if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) - object.returnPartialResponses = message.returnPartialResponses; + if (message.importOption != null && message.hasOwnProperty("importOption")) + object.importOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption[message.importOption] === undefined ? message.importOption : $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption[message.importOption] : message.importOption; + if (message.flowImportStrategy != null && message.hasOwnProperty("flowImportStrategy")) + object.flowImportStrategy = $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.toObject(message.flowImportStrategy, options); return object; }; /** - * Converts this Fulfillment to JSON. + * Converts this ImportFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance * @returns {Object.} JSON object */ - Fulfillment.prototype.toJSON = function toJSON() { + ImportFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Fulfillment + * Gets the default type url for ImportFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Fulfillment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest"; }; - Fulfillment.SetParameterAction = (function() { + /** + * ImportOption enum. + * @name google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption + * @enum {number} + * @property {number} IMPORT_OPTION_UNSPECIFIED=0 IMPORT_OPTION_UNSPECIFIED value + * @property {number} KEEP=1 KEEP value + * @property {number} FALLBACK=2 FALLBACK value + */ + ImportFlowRequest.ImportOption = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IMPORT_OPTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "KEEP"] = 1; + values[valuesById[2] = "FALLBACK"] = 2; + return values; + })(); - /** - * Properties of a SetParameterAction. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment - * @interface ISetParameterAction - * @property {string|null} [parameter] SetParameterAction parameter - * @property {google.protobuf.IValue|null} [value] SetParameterAction value - */ + return ImportFlowRequest; + })(); - /** - * Constructs a new SetParameterAction. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment - * @classdesc Represents a SetParameterAction. - * @implements ISetParameterAction - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set - */ - function SetParameterAction(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.FlowImportStrategy = (function() { - /** - * SetParameterAction parameter. - * @member {string} parameter - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @instance - */ - SetParameterAction.prototype.parameter = ""; + /** + * Properties of a FlowImportStrategy. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IFlowImportStrategy + * @property {google.cloud.dialogflow.cx.v3beta1.ImportStrategy|null} [globalImportStrategy] FlowImportStrategy globalImportStrategy + */ - /** - * SetParameterAction value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @instance - */ - SetParameterAction.prototype.value = null; + /** + * Constructs a new FlowImportStrategy. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a FlowImportStrategy. + * @implements IFlowImportStrategy + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy=} [properties] Properties to set + */ + function FlowImportStrategy(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 SetParameterAction instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction instance - */ - SetParameterAction.create = function create(properties) { - return new SetParameterAction(properties); - }; + /** + * FlowImportStrategy globalImportStrategy. + * @member {google.cloud.dialogflow.cx.v3beta1.ImportStrategy} globalImportStrategy + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @instance + */ + FlowImportStrategy.prototype.globalImportStrategy = 0; - /** - * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetParameterAction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameter != null && Object.hasOwnProperty.call(message, "parameter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameter); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new FlowImportStrategy instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy} FlowImportStrategy instance + */ + FlowImportStrategy.create = function create(properties) { + return new FlowImportStrategy(properties); + }; - /** - * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetParameterAction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified FlowImportStrategy message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy} message FlowImportStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FlowImportStrategy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.globalImportStrategy != null && Object.hasOwnProperty.call(message, "globalImportStrategy")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.globalImportStrategy); + return writer; + }; - /** - * Decodes a SetParameterAction message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @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.Fulfillment.SetParameterAction} SetParameterAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetParameterAction.decode = function decode(reader, length) { - 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.Fulfillment.SetParameterAction(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parameter = reader.string(); - break; - } - case 2: { - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified FlowImportStrategy message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowImportStrategy} message FlowImportStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FlowImportStrategy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FlowImportStrategy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @static + * @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.FlowImportStrategy} FlowImportStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FlowImportStrategy.decode = function decode(reader, length) { + 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.FlowImportStrategy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.globalImportStrategy = reader.int32(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetParameterAction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a FlowImportStrategy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy} FlowImportStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FlowImportStrategy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a SetParameterAction message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SetParameterAction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameter != null && message.hasOwnProperty("parameter")) - if (!$util.isString(message.parameter)) - return "parameter: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; + /** + * Verifies a FlowImportStrategy message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FlowImportStrategy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.globalImportStrategy != null && message.hasOwnProperty("globalImportStrategy")) + switch (message.globalImportStrategy) { + default: + return "globalImportStrategy: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } - return null; - }; + return null; + }; - /** - * Creates a SetParameterAction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction - */ - SetParameterAction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction(); - if (object.parameter != null) - message.parameter = String(object.parameter); - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.value: object expected"); - message.value = $root.google.protobuf.Value.fromObject(object.value); + /** + * Creates a FlowImportStrategy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy} FlowImportStrategy + */ + FlowImportStrategy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy(); + switch (object.globalImportStrategy) { + default: + if (typeof object.globalImportStrategy === "number") { + message.globalImportStrategy = object.globalImportStrategy; + break; } - return message; - }; + break; + case "IMPORT_STRATEGY_UNSPECIFIED": + case 0: + message.globalImportStrategy = 0; + break; + case "IMPORT_STRATEGY_CREATE_NEW": + case 1: + message.globalImportStrategy = 1; + break; + case "IMPORT_STRATEGY_REPLACE": + case 2: + message.globalImportStrategy = 2; + break; + case "IMPORT_STRATEGY_KEEP": + case 3: + message.globalImportStrategy = 3; + break; + case "IMPORT_STRATEGY_MERGE": + case 4: + message.globalImportStrategy = 4; + break; + case "IMPORT_STRATEGY_THROW_ERROR": + case 5: + message.globalImportStrategy = 5; + break; + } + return message; + }; - /** - * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} message SetParameterAction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SetParameterAction.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parameter = ""; - object.value = null; - } - if (message.parameter != null && message.hasOwnProperty("parameter")) - object.parameter = message.parameter; - if (message.value != null && message.hasOwnProperty("value")) - object.value = $root.google.protobuf.Value.toObject(message.value, options); - return object; - }; + /** + * Creates a plain object from a FlowImportStrategy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy} message FlowImportStrategy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FlowImportStrategy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.globalImportStrategy = options.enums === String ? "IMPORT_STRATEGY_UNSPECIFIED" : 0; + if (message.globalImportStrategy != null && message.hasOwnProperty("globalImportStrategy")) + object.globalImportStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ImportStrategy[message.globalImportStrategy] === undefined ? message.globalImportStrategy : $root.google.cloud.dialogflow.cx.v3beta1.ImportStrategy[message.globalImportStrategy] : message.globalImportStrategy; + return object; + }; - /** - * Converts this SetParameterAction to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @instance - * @returns {Object.} JSON object - */ - SetParameterAction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this FlowImportStrategy to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @instance + * @returns {Object.} JSON object + */ + FlowImportStrategy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for SetParameterAction - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SetParameterAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction"; - }; + /** + * Gets the default type url for FlowImportStrategy + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FlowImportStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy"; + }; - return SetParameterAction; - })(); + return FlowImportStrategy; + })(); - Fulfillment.ConditionalCases = (function() { + v3beta1.ImportFlowResponse = (function() { - /** - * Properties of a ConditionalCases. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment - * @interface IConditionalCases - * @property {Array.|null} [cases] ConditionalCases cases - */ + /** + * Properties of an ImportFlowResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IImportFlowResponse + * @property {string|null} [flow] ImportFlowResponse flow + */ - /** - * Constructs a new ConditionalCases. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment - * @classdesc Represents a ConditionalCases. - * @implements IConditionalCases - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set - */ - function ConditionalCases(properties) { - this.cases = []; - 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 ImportFlowResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an ImportFlowResponse. + * @implements IImportFlowResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse=} [properties] Properties to set + */ + function ImportFlowResponse(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]]; + } - /** - * ConditionalCases cases. - * @member {Array.} cases - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @instance - */ - ConditionalCases.prototype.cases = $util.emptyArray; + /** + * ImportFlowResponse flow. + * @member {string} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @instance + */ + ImportFlowResponse.prototype.flow = ""; - /** - * Creates a new ConditionalCases instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases instance - */ - ConditionalCases.create = function create(properties) { - return new ConditionalCases(properties); - }; + /** + * Creates a new ImportFlowResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse instance + */ + ImportFlowResponse.create = function create(properties) { + return new ImportFlowResponse(properties); + }; - /** - * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalCases.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cases != null && message.cases.length) - for (var i = 0; i < message.cases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.encode(message.cases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse} message ImportFlowResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportFlowResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.flow); + return writer; + }; - /** - * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalCases.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse} message ImportFlowResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ConditionalCases message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @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.Fulfillment.ConditionalCases} ConditionalCases - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConditionalCases.decode = function decode(reader, length) { - 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.Fulfillment.ConditionalCases(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.cases && message.cases.length)) - message.cases = []; - message.cases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes an ImportFlowResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @static + * @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.ImportFlowResponse} ImportFlowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportFlowResponse.decode = function decode(reader, length) { + 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.ImportFlowResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.flow = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConditionalCases.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ConditionalCases message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConditionalCases.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cases != null && message.hasOwnProperty("cases")) { - if (!Array.isArray(message.cases)) - return "cases: array expected"; - for (var i = 0; i < message.cases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify(message.cases[i]); - if (error) - return "cases." + error; - } - } - return null; - }; + /** + * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportFlowResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases - */ - ConditionalCases.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases(); - if (object.cases) { - if (!Array.isArray(object.cases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: array expected"); - message.cases = []; - for (var i = 0; i < object.cases.length; ++i) { - if (typeof object.cases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: object expected"); - message.cases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.fromObject(object.cases[i]); - } - } - return message; - }; + /** + * Verifies an ImportFlowResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImportFlowResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.flow != null && message.hasOwnProperty("flow")) + if (!$util.isString(message.flow)) + return "flow: string expected"; + return null; + }; - /** - * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} message ConditionalCases - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConditionalCases.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.cases = []; - if (message.cases && message.cases.length) { - object.cases = []; - for (var j = 0; j < message.cases.length; ++j) - object.cases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.toObject(message.cases[j], options); - } + /** + * Creates an ImportFlowResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse + */ + ImportFlowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse) return object; - }; - - /** - * Converts this ConditionalCases to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @instance - * @returns {Object.} JSON object - */ - ConditionalCases.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ConditionalCases - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConditionalCases.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases"; - }; - - ConditionalCases.Case = (function() { - - /** - * Properties of a Case. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @interface ICase - * @property {string|null} [condition] Case condition - * @property {Array.|null} [caseContent] Case caseContent - */ - - /** - * Constructs a new Case. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @classdesc Represents a Case. - * @implements ICase - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set - */ - function Case(properties) { - this.caseContent = []; - 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]]; - } - - /** - * Case condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @instance - */ - Case.prototype.condition = ""; - - /** - * Case caseContent. - * @member {Array.} caseContent - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @instance - */ - Case.prototype.caseContent = $util.emptyArray; - - /** - * Creates a new Case instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case instance - */ - Case.create = function create(properties) { - return new Case(properties); - }; - - /** - * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Case.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.caseContent != null && message.caseContent.length) - for (var i = 0; i < message.caseContent.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.encode(message.caseContent[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Case.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Case message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @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.Fulfillment.ConditionalCases.Case} Case - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Case.decode = function decode(reader, length) { - 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.Fulfillment.ConditionalCases.Case(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.condition = reader.string(); - break; - } - case 2: { - if (!(message.caseContent && message.caseContent.length)) - message.caseContent = []; - message.caseContent.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Case message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Case.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Case message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Case.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.caseContent != null && message.hasOwnProperty("caseContent")) { - if (!Array.isArray(message.caseContent)) - return "caseContent: array expected"; - for (var i = 0; i < message.caseContent.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify(message.caseContent[i]); - if (error) - return "caseContent." + error; - } - } - return null; - }; - - /** - * Creates a Case message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case - */ - Case.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case(); - if (object.condition != null) - message.condition = String(object.condition); - if (object.caseContent) { - if (!Array.isArray(object.caseContent)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: array expected"); - message.caseContent = []; - for (var i = 0; i < object.caseContent.length; ++i) { - if (typeof object.caseContent[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: object expected"); - message.caseContent[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.fromObject(object.caseContent[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a Case message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} message Case - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Case.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.caseContent = []; - if (options.defaults) - object.condition = ""; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.caseContent && message.caseContent.length) { - object.caseContent = []; - for (var j = 0; j < message.caseContent.length; ++j) - object.caseContent[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.toObject(message.caseContent[j], options); - } - return object; - }; - - /** - * Converts this Case to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @instance - * @returns {Object.} JSON object - */ - Case.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Case - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Case.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case"; - }; - - Case.CaseContent = (function() { - - /** - * Properties of a CaseContent. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @interface ICaseContent - * @property {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null} [message] CaseContent message - * @property {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null} [additionalCases] CaseContent additionalCases - */ - - /** - * Constructs a new CaseContent. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @classdesc Represents a CaseContent. - * @implements ICaseContent - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set - */ - function CaseContent(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]]; - } - - /** - * CaseContent message. - * @member {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null|undefined} message - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - */ - CaseContent.prototype.message = null; - - /** - * CaseContent additionalCases. - * @member {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null|undefined} additionalCases - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - */ - CaseContent.prototype.additionalCases = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CaseContent casesOrMessage. - * @member {"message"|"additionalCases"|undefined} casesOrMessage - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - */ - Object.defineProperty(CaseContent.prototype, "casesOrMessage", { - get: $util.oneOfGetter($oneOfFields = ["message", "additionalCases"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CaseContent instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent instance - */ - CaseContent.create = function create(properties) { - return new CaseContent(properties); - }; - - /** - * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CaseContent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.message, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.additionalCases != null && Object.hasOwnProperty.call(message, "additionalCases")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.additionalCases, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CaseContent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CaseContent message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @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.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CaseContent.decode = function decode(reader, length) { - 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.Fulfillment.ConditionalCases.Case.CaseContent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32()); - break; - } - case 2: { - message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CaseContent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CaseContent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CaseContent message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CaseContent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.message != null && message.hasOwnProperty("message")) { - properties.casesOrMessage = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.message); - if (error) - return "message." + error; - } - } - if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { - if (properties.casesOrMessage === 1) - return "casesOrMessage: multiple values"; - properties.casesOrMessage = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.additionalCases); - if (error) - return "additionalCases." + error; - } - } - return null; - }; - - /** - * Creates a CaseContent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent - */ - CaseContent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent(); - if (object.message != null) { - if (typeof object.message !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.message: object expected"); - message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.message); - } - if (object.additionalCases != null) { - if (typeof object.additionalCases !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.additionalCases: object expected"); - message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.additionalCases); - } - return message; - }; - - /** - * Creates a plain object from a CaseContent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} message CaseContent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CaseContent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.message != null && message.hasOwnProperty("message")) { - object.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.message, options); - if (options.oneofs) - object.casesOrMessage = "message"; - } - if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { - object.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.additionalCases, options); - if (options.oneofs) - object.casesOrMessage = "additionalCases"; - } - return object; - }; - - /** - * Converts this CaseContent to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - * @returns {Object.} JSON object - */ - CaseContent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CaseContent - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CaseContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent"; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse(); + if (object.flow != null) + message.flow = String(object.flow); + return message; + }; - return CaseContent; - })(); + /** + * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} message ImportFlowResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImportFlowResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.flow = ""; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = message.flow; + return object; + }; - return Case; - })(); + /** + * Converts this ImportFlowResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @instance + * @returns {Object.} JSON object + */ + ImportFlowResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ConditionalCases; - })(); + /** + * Gets the default type url for ImportFlowResponse + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse"; + }; - return Fulfillment; + return ImportFlowResponse; })(); - v3beta1.ResponseMessage = (function() { + v3beta1.ExportFlowRequest = (function() { /** - * Properties of a ResponseMessage. + * Properties of an ExportFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IResponseMessage - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null} [text] ResponseMessage text - * @property {google.protobuf.IStruct|null} [payload] ResponseMessage payload - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null} [conversationSuccess] ResponseMessage conversationSuccess - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null} [outputAudioText] ResponseMessage outputAudioText - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null} [liveAgentHandoff] ResponseMessage liveAgentHandoff - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null} [endInteraction] ResponseMessage endInteraction - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null} [playAudio] ResponseMessage playAudio - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null} [mixedAudio] ResponseMessage mixedAudio - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null} [telephonyTransferCall] ResponseMessage telephonyTransferCall - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard|null} [knowledgeInfoCard] ResponseMessage knowledgeInfoCard - * @property {string|null} [channel] ResponseMessage channel + * @interface IExportFlowRequest + * @property {string|null} [name] ExportFlowRequest name + * @property {string|null} [flowUri] ExportFlowRequest flowUri + * @property {boolean|null} [includeReferencedFlows] ExportFlowRequest includeReferencedFlows */ /** - * Constructs a new ResponseMessage. + * Constructs a new ExportFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ResponseMessage. - * @implements IResponseMessage + * @classdesc Represents an ExportFlowRequest. + * @implements IExportFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest=} [properties] Properties to set */ - function ResponseMessage(properties) { + function ExportFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96409,229 +93354,103 @@ } /** - * ResponseMessage text. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance - */ - ResponseMessage.prototype.text = null; - - /** - * ResponseMessage payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance - */ - ResponseMessage.prototype.payload = null; - - /** - * ResponseMessage conversationSuccess. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null|undefined} conversationSuccess - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance - */ - ResponseMessage.prototype.conversationSuccess = null; - - /** - * ResponseMessage outputAudioText. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null|undefined} outputAudioText - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance - */ - ResponseMessage.prototype.outputAudioText = null; - - /** - * ResponseMessage liveAgentHandoff. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null|undefined} liveAgentHandoff - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance - */ - ResponseMessage.prototype.liveAgentHandoff = null; - - /** - * ResponseMessage endInteraction. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null|undefined} endInteraction - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance - */ - ResponseMessage.prototype.endInteraction = null; - - /** - * ResponseMessage playAudio. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null|undefined} playAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance - */ - ResponseMessage.prototype.playAudio = null; - - /** - * ResponseMessage mixedAudio. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null|undefined} mixedAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance - */ - ResponseMessage.prototype.mixedAudio = null; - - /** - * ResponseMessage telephonyTransferCall. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null|undefined} telephonyTransferCall - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance - */ - ResponseMessage.prototype.telephonyTransferCall = null; - - /** - * ResponseMessage knowledgeInfoCard. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard|null|undefined} knowledgeInfoCard - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * ExportFlowRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @instance */ - ResponseMessage.prototype.knowledgeInfoCard = null; + ExportFlowRequest.prototype.name = ""; /** - * ResponseMessage channel. - * @member {string} channel - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * ExportFlowRequest flowUri. + * @member {string} flowUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @instance */ - ResponseMessage.prototype.channel = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ExportFlowRequest.prototype.flowUri = ""; /** - * ResponseMessage message. - * @member {"text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"|"knowledgeInfoCard"|undefined} message - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * ExportFlowRequest includeReferencedFlows. + * @member {boolean} includeReferencedFlows + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @instance */ - Object.defineProperty(ResponseMessage.prototype, "message", { - get: $util.oneOfGetter($oneOfFields = ["text", "payload", "conversationSuccess", "outputAudioText", "liveAgentHandoff", "endInteraction", "playAudio", "mixedAudio", "telephonyTransferCall", "knowledgeInfoCard"]), - set: $util.oneOfSetter($oneOfFields) - }); + ExportFlowRequest.prototype.includeReferencedFlows = false; /** - * Creates a new ResponseMessage instance using the specified properties. + * Creates a new ExportFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest instance */ - ResponseMessage.create = function create(properties) { - return new ResponseMessage(properties); + ExportFlowRequest.create = function create(properties) { + return new ExportFlowRequest(properties); }; /** - * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} message ExportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseMessage.encode = function encode(message, writer) { + ExportFlowRequest.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.ResponseMessage.Text.encode(message.text, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudioText != null && Object.hasOwnProperty.call(message, "outputAudioText")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.encode(message.outputAudioText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.conversationSuccess != null && Object.hasOwnProperty.call(message, "conversationSuccess")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.encode(message.conversationSuccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.liveAgentHandoff != null && Object.hasOwnProperty.call(message, "liveAgentHandoff")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.encode(message.liveAgentHandoff, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.endInteraction != null && Object.hasOwnProperty.call(message, "endInteraction")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.encode(message.endInteraction, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.playAudio != null && Object.hasOwnProperty.call(message, "playAudio")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.encode(message.playAudio, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.mixedAudio != null && Object.hasOwnProperty.call(message, "mixedAudio")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.encode(message.mixedAudio, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.telephonyTransferCall != null && Object.hasOwnProperty.call(message, "telephonyTransferCall")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.encode(message.telephonyTransferCall, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.channel); - if (message.knowledgeInfoCard != null && Object.hasOwnProperty.call(message, "knowledgeInfoCard")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.encode(message.knowledgeInfoCard, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); + if (message.includeReferencedFlows != null && Object.hasOwnProperty.call(message, "includeReferencedFlows")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeReferencedFlows); return writer; }; /** - * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} message ExportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseMessage.encodeDelimited = function encodeDelimited(message, writer) { + ExportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseMessage message from the specified reader or buffer. + * Decodes an ExportFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static * @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.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseMessage.decode = function decode(reader, length) { + ExportFlowRequest.decode = function decode(reader, length) { 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.ResponseMessage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - } - case 9: { - message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.decode(reader, reader.uint32()); - break; - } - case 8: { - message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.decode(reader, reader.uint32()); - break; - } - case 10: { - message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.decode(reader, reader.uint32()); - break; - } - case 11: { - message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.decode(reader, reader.uint32()); - break; - } - case 12: { - message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.decode(reader, reader.uint32()); - break; - } - case 13: { - message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.decode(reader, reader.uint32()); - break; - } - case 18: { - message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.decode(reader, reader.uint32()); - break; - } - case 20: { - message.knowledgeInfoCard = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.decode(reader, reader.uint32()); + message.flowUri = reader.string(); break; } - case 19: { - message.channel = reader.string(); + case 4: { + message.includeReferencedFlows = reader.bool(); break; } default: @@ -96643,769 +93462,1310 @@ }; /** - * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. + * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseMessage.decodeDelimited = function decodeDelimited(reader) { + ExportFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseMessage message. + * Verifies an ExportFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseMessage.verify = function verify(message) { + ExportFlowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify(message.text); - if (error) - return "text." + error; - } - } - if (message.payload != null && message.hasOwnProperty("payload")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } - } - if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify(message.conversationSuccess); - if (error) - return "conversationSuccess." + error; - } - } - if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify(message.outputAudioText); - if (error) - return "outputAudioText." + error; - } - } - if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify(message.liveAgentHandoff); - if (error) - return "liveAgentHandoff." + error; - } - } - if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify(message.endInteraction); - if (error) - return "endInteraction." + error; - } - } - if (message.playAudio != null && message.hasOwnProperty("playAudio")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify(message.playAudio); - if (error) - return "playAudio." + error; - } - } - if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify(message.mixedAudio); - if (error) - return "mixedAudio." + error; - } - } - if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify(message.telephonyTransferCall); - if (error) - return "telephonyTransferCall." + error; - } - } - if (message.knowledgeInfoCard != null && message.hasOwnProperty("knowledgeInfoCard")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify(message.knowledgeInfoCard); - if (error) - return "knowledgeInfoCard." + error; - } - } - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) + if (!$util.isString(message.flowUri)) + return "flowUri: string expected"; + if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) + if (typeof message.includeReferencedFlows !== "boolean") + return "includeReferencedFlows: boolean expected"; return null; }; /** - * Creates a ResponseMessage message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest */ - ResponseMessage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage) + ExportFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage(); - if (object.text != null) { - if (typeof object.text !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.text: object expected"); - message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.fromObject(object.text); - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.flowUri != null) + message.flowUri = String(object.flowUri); + if (object.includeReferencedFlows != null) + message.includeReferencedFlows = Boolean(object.includeReferencedFlows); + return message; + }; + + /** + * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} message ExportFlowRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportFlowRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.flowUri = ""; + object.includeReferencedFlows = false; } - if (object.conversationSuccess != null) { - if (typeof object.conversationSuccess !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.conversationSuccess: object expected"); - message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.fromObject(object.conversationSuccess); - } - if (object.outputAudioText != null) { - if (typeof object.outputAudioText !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.outputAudioText: object expected"); - message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.fromObject(object.outputAudioText); - } - if (object.liveAgentHandoff != null) { - if (typeof object.liveAgentHandoff !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.liveAgentHandoff: object expected"); - message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.fromObject(object.liveAgentHandoff); - } - if (object.endInteraction != null) { - if (typeof object.endInteraction !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.endInteraction: object expected"); - message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.fromObject(object.endInteraction); - } - if (object.playAudio != null) { - if (typeof object.playAudio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.playAudio: object expected"); - message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.fromObject(object.playAudio); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) + object.flowUri = message.flowUri; + if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) + object.includeReferencedFlows = message.includeReferencedFlows; + return object; + }; + + /** + * Converts this ExportFlowRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @instance + * @returns {Object.} JSON object + */ + ExportFlowRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExportFlowRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (object.mixedAudio != null) { - if (typeof object.mixedAudio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.mixedAudio: object expected"); - message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.fromObject(object.mixedAudio); + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest"; + }; + + return ExportFlowRequest; + })(); + + v3beta1.ExportFlowResponse = (function() { + + /** + * Properties of an ExportFlowResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IExportFlowResponse + * @property {string|null} [flowUri] ExportFlowResponse flowUri + * @property {Uint8Array|null} [flowContent] ExportFlowResponse flowContent + */ + + /** + * Constructs a new ExportFlowResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an ExportFlowResponse. + * @implements IExportFlowResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse=} [properties] Properties to set + */ + function ExportFlowResponse(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]]; + } + + /** + * ExportFlowResponse flowUri. + * @member {string|null|undefined} flowUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @instance + */ + ExportFlowResponse.prototype.flowUri = null; + + /** + * ExportFlowResponse flowContent. + * @member {Uint8Array|null|undefined} flowContent + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @instance + */ + ExportFlowResponse.prototype.flowContent = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExportFlowResponse flow. + * @member {"flowUri"|"flowContent"|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @instance + */ + Object.defineProperty(ExportFlowResponse.prototype, "flow", { + get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExportFlowResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse instance + */ + ExportFlowResponse.create = function create(properties) { + return new ExportFlowResponse(properties); + }; + + /** + * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse} message ExportFlowResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFlowResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.flowUri); + if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.flowContent); + return writer; + }; + + /** + * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse} message ExportFlowResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportFlowResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @static + * @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.ExportFlowResponse} ExportFlowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFlowResponse.decode = function decode(reader, length) { + 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.ExportFlowResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.flowUri = reader.string(); + break; + } + case 2: { + message.flowContent = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - if (object.telephonyTransferCall != null) { - if (typeof object.telephonyTransferCall !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.telephonyTransferCall: object expected"); - message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.fromObject(object.telephonyTransferCall); + return message; + }; + + /** + * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFlowResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportFlowResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportFlowResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + properties.flow = 1; + if (!$util.isString(message.flowUri)) + return "flowUri: string expected"; } - if (object.knowledgeInfoCard != null) { - if (typeof object.knowledgeInfoCard !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.knowledgeInfoCard: object expected"); - message.knowledgeInfoCard = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.fromObject(object.knowledgeInfoCard); + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + if (properties.flow === 1) + return "flow: multiple values"; + properties.flow = 1; + if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) + return "flowContent: buffer expected"; } - if (object.channel != null) - message.channel = String(object.channel); + return null; + }; + + /** + * Creates an ExportFlowResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse + */ + ExportFlowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse(); + if (object.flowUri != null) + message.flowUri = String(object.flowUri); + if (object.flowContent != null) + if (typeof object.flowContent === "string") + $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); + else if (object.flowContent.length >= 0) + message.flowContent = object.flowContent; return message; }; /** - * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. + * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} message ResponseMessage + * @param {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} message ExportFlowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseMessage.toObject = function toObject(message, options) { + ExportFlowResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.channel = ""; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.toObject(message.text, options); - if (options.oneofs) - object.message = "text"; - } - if (message.payload != null && message.hasOwnProperty("payload")) { - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (options.oneofs) - object.message = "payload"; - } - if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { - object.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.toObject(message.outputAudioText, options); - if (options.oneofs) - object.message = "outputAudioText"; - } - if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { - object.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.toObject(message.conversationSuccess, options); - if (options.oneofs) - object.message = "conversationSuccess"; - } - if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { - object.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.toObject(message.liveAgentHandoff, options); - if (options.oneofs) - object.message = "liveAgentHandoff"; - } - if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { - object.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.toObject(message.endInteraction, options); - if (options.oneofs) - object.message = "endInteraction"; - } - if (message.playAudio != null && message.hasOwnProperty("playAudio")) { - object.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.toObject(message.playAudio, options); - if (options.oneofs) - object.message = "playAudio"; - } - if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { - object.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.toObject(message.mixedAudio, options); - if (options.oneofs) - object.message = "mixedAudio"; - } - if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { - object.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.toObject(message.telephonyTransferCall, options); + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + object.flowUri = message.flowUri; if (options.oneofs) - object.message = "telephonyTransferCall"; + object.flow = "flowUri"; } - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; - if (message.knowledgeInfoCard != null && message.hasOwnProperty("knowledgeInfoCard")) { - object.knowledgeInfoCard = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.toObject(message.knowledgeInfoCard, options); + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; if (options.oneofs) - object.message = "knowledgeInfoCard"; + object.flow = "flowContent"; } return object; }; /** - * Converts this ResponseMessage to JSON. + * Converts this ExportFlowResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @instance * @returns {Object.} JSON object */ - ResponseMessage.prototype.toJSON = function toJSON() { + ExportFlowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResponseMessage + * Gets the default type url for ExportFlowResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResponseMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse"; }; - ResponseMessage.Text = (function() { + return ExportFlowResponse; + })(); - /** - * Properties of a Text. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IText - * @property {Array.|null} [text] Text text - * @property {boolean|null} [allowPlaybackInterruption] Text allowPlaybackInterruption - */ + /** + * ImportStrategy enum. + * @name google.cloud.dialogflow.cx.v3beta1.ImportStrategy + * @enum {number} + * @property {number} IMPORT_STRATEGY_UNSPECIFIED=0 IMPORT_STRATEGY_UNSPECIFIED value + * @property {number} IMPORT_STRATEGY_CREATE_NEW=1 IMPORT_STRATEGY_CREATE_NEW value + * @property {number} IMPORT_STRATEGY_REPLACE=2 IMPORT_STRATEGY_REPLACE value + * @property {number} IMPORT_STRATEGY_KEEP=3 IMPORT_STRATEGY_KEEP value + * @property {number} IMPORT_STRATEGY_MERGE=4 IMPORT_STRATEGY_MERGE value + * @property {number} IMPORT_STRATEGY_THROW_ERROR=5 IMPORT_STRATEGY_THROW_ERROR value + */ + v3beta1.ImportStrategy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IMPORT_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[1] = "IMPORT_STRATEGY_CREATE_NEW"] = 1; + values[valuesById[2] = "IMPORT_STRATEGY_REPLACE"] = 2; + values[valuesById[3] = "IMPORT_STRATEGY_KEEP"] = 3; + values[valuesById[4] = "IMPORT_STRATEGY_MERGE"] = 4; + values[valuesById[5] = "IMPORT_STRATEGY_THROW_ERROR"] = 5; + return values; + })(); - /** - * Constructs a new Text. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a Text. - * @implements IText - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set - */ - function Text(properties) { - this.text = []; - 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.Pages = (function() { - /** - * Text text. - * @member {Array.} text - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @instance - */ - Text.prototype.text = $util.emptyArray; + /** + * Constructs a new Pages service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Pages + * @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 Pages(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * Text allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @instance - */ - Text.prototype.allowPlaybackInterruption = false; + (Pages.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Pages; - /** - * Creates a new Text instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text instance - */ - Text.create = function create(properties) { - return new Text(properties); - }; + /** + * Creates new Pages service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @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 {Pages} RPC service. Useful where requests and/or responses are streamed. + */ + Pages.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Text.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && message.text.length) - for (var i = 0; i < message.text.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text[i]); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); - return writer; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|listPages}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef ListPagesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} [response] ListPagesResponse + */ - /** - * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Text.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls ListPages. + * @function listPages + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback} callback Node-style callback called with the error, if any, and ListPagesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Pages.prototype.listPages = function listPages(request, callback) { + return this.rpcCall(listPages, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, request, callback); + }, "name", { value: "ListPages" }); - /** - * Decodes a Text message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @static - * @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.ResponseMessage.Text} Text - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Text.decode = function decode(reader, length) { - 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.ResponseMessage.Text(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.text && message.text.length)) - message.text = []; - message.text.push(reader.string()); - break; - } - case 2: { - message.allowPlaybackInterruption = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Calls ListPages. + * @function listPages + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes a Text message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Text.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.Pages|getPage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef GetPageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page + */ - /** - * Verifies a Text message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Text.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) { - if (!Array.isArray(message.text)) - return "text: array expected"; - for (var i = 0; i < message.text.length; ++i) - if (!$util.isString(message.text[i])) - return "text: string[] expected"; - } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; - return null; - }; + /** + * Calls GetPage. + * @function getPage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback} callback Node-style callback called with the error, if any, and Page + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Pages.prototype.getPage = function getPage(request, callback) { + return this.rpcCall(getPage, $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); + }, "name", { value: "GetPage" }); - /** - * Creates a Text message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text - */ - Text.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text(); - if (object.text) { - if (!Array.isArray(object.text)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.text: array expected"); - message.text = []; - for (var i = 0; i < object.text.length; ++i) - message.text[i] = String(object.text[i]); - } - if (object.allowPlaybackInterruption != null) - message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); - return message; - }; + /** + * Calls GetPage. + * @function getPage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a plain object from a Text message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} message Text - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Text.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.text = []; - if (options.defaults) - object.allowPlaybackInterruption = false; - if (message.text && message.text.length) { - object.text = []; - for (var j = 0; j < message.text.length; ++j) - object.text[j] = message.text[j]; - } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; - return object; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|createPage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef CreatePageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page + */ - /** - * Converts this Text to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @instance - * @returns {Object.} JSON object - */ - Text.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls CreatePage. + * @function createPage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback} callback Node-style callback called with the error, if any, and Page + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Pages.prototype.createPage = function createPage(request, callback) { + return this.rpcCall(createPage, $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); + }, "name", { value: "CreatePage" }); - /** - * Gets the default type url for Text - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Text.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text"; - }; + /** + * Calls CreatePage. + * @function createPage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - return Text; - })(); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|updatePage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef UpdatePageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page + */ - ResponseMessage.LiveAgentHandoff = (function() { + /** + * Calls UpdatePage. + * @function updatePage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback} callback Node-style callback called with the error, if any, and Page + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Pages.prototype.updatePage = function updatePage(request, callback) { + return this.rpcCall(updatePage, $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); + }, "name", { value: "UpdatePage" }); - /** - * Properties of a LiveAgentHandoff. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface ILiveAgentHandoff - * @property {google.protobuf.IStruct|null} [metadata] LiveAgentHandoff metadata - */ + /** + * Calls UpdatePage. + * @function updatePage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Constructs a new LiveAgentHandoff. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a LiveAgentHandoff. - * @implements ILiveAgentHandoff - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set - */ - function LiveAgentHandoff(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]]; - } + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|deletePage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef DeletePageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ - /** - * LiveAgentHandoff metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @instance - */ - LiveAgentHandoff.prototype.metadata = null; + /** + * Calls DeletePage. + * @function deletePage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Pages.prototype.deletePage = function deletePage(request, callback) { + return this.rpcCall(deletePage, $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeletePage" }); - /** - * Creates a new LiveAgentHandoff instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff instance - */ - LiveAgentHandoff.create = function create(properties) { - return new LiveAgentHandoff(properties); - }; + /** + * Calls DeletePage. + * @function deletePage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiveAgentHandoff.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + return Pages; + })(); - /** - * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiveAgentHandoff.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v3beta1.Page = (function() { - /** - * Decodes a LiveAgentHandoff message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @static - * @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.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiveAgentHandoff.decode = function decode(reader, length) { - 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.ResponseMessage.LiveAgentHandoff(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of a Page. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IPage + * @property {string|null} [name] Page name + * @property {string|null} [displayName] Page displayName + * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [entryFulfillment] Page entryFulfillment + * @property {google.cloud.dialogflow.cx.v3beta1.IForm|null} [form] Page form + * @property {Array.|null} [transitionRouteGroups] Page transitionRouteGroups + * @property {Array.|null} [transitionRoutes] Page transitionRoutes + * @property {Array.|null} [eventHandlers] Page eventHandlers + * @property {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null} [advancedSettings] Page advancedSettings + * @property {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null} [knowledgeConnectorSettings] Page knowledgeConnectorSettings + */ - /** - * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiveAgentHandoff.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new Page. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Page. + * @implements IPage + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set + */ + function Page(properties) { + this.transitionRouteGroups = []; + this.transitionRoutes = []; + this.eventHandlers = []; + 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 LiveAgentHandoff message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiveAgentHandoff.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; + /** + * Page name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.name = ""; - /** - * Creates a LiveAgentHandoff message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff - */ - LiveAgentHandoff.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); - } - return message; - }; + /** + * Page displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.displayName = ""; - /** - * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} message LiveAgentHandoff - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LiveAgentHandoff.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.metadata = null; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); - return object; - }; + /** + * Page entryFulfillment. + * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} entryFulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.entryFulfillment = null; - /** - * Converts this LiveAgentHandoff to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @instance - * @returns {Object.} JSON object - */ - LiveAgentHandoff.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Page form. + * @member {google.cloud.dialogflow.cx.v3beta1.IForm|null|undefined} form + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.form = null; - /** - * Gets the default type url for LiveAgentHandoff - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LiveAgentHandoff.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff"; - }; + /** + * Page transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.transitionRouteGroups = $util.emptyArray; - return LiveAgentHandoff; - })(); + /** + * Page transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.transitionRoutes = $util.emptyArray; - ResponseMessage.ConversationSuccess = (function() { + /** + * Page eventHandlers. + * @member {Array.} eventHandlers + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.eventHandlers = $util.emptyArray; + + /** + * Page advancedSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.advancedSettings = null; + + /** + * Page knowledgeConnectorSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings|null|undefined} knowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.knowledgeConnectorSettings = null; + + /** + * Creates a new Page instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page instance + */ + Page.create = function create(properties) { + return new Page(properties); + }; + + /** + * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Page.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.form != null && Object.hasOwnProperty.call(message, "form")) + $root.google.cloud.dialogflow.cx.v3beta1.Form.encode(message.form, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.entryFulfillment != null && Object.hasOwnProperty.call(message, "entryFulfillment")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.entryFulfillment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + 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 9, wireType 2 =*/74).fork()).ldelim(); + if (message.eventHandlers != null && message.eventHandlers.length) + for (var i = 0; i < message.eventHandlers.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) + for (var i = 0; i < message.transitionRouteGroups.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.transitionRouteGroups[i]); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.knowledgeConnectorSettings != null && Object.hasOwnProperty.call(message, "knowledgeConnectorSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.encode(message.knowledgeConnectorSettings, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Page.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Page message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @static + * @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.Page} Page + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Page.decode = function decode(reader, length) { + 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.Page(); + 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 7: { + message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 4: { + message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.decode(reader, reader.uint32()); + break; + } + case 11: { + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push(reader.string()); + break; + } + case 9: { + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.eventHandlers && message.eventHandlers.length)) + message.eventHandlers = []; + message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); + break; + } + case 13: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.decode(reader, reader.uint32()); + break; + } + case 18: { + message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Page message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Page.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Page message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Page.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.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.entryFulfillment); + if (error) + return "entryFulfillment." + error; + } + if (message.form != null && message.hasOwnProperty("form")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.verify(message.form); + if (error) + return "form." + 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) + if (!$util.isString(message.transitionRouteGroups[i])) + return "transitionRouteGroups: 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; + } + } + if (message.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { + if (!Array.isArray(message.eventHandlers)) + return "eventHandlers: array expected"; + for (var i = 0; i < message.eventHandlers.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandlers[i]); + if (error) + return "eventHandlers." + error; + } + } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } + if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify(message.knowledgeConnectorSettings); + if (error) + return "knowledgeConnectorSettings." + error; + } + return null; + }; + + /** + * Creates a Page message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page + */ + Page.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Page) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Page(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.entryFulfillment != null) { + if (typeof object.entryFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.entryFulfillment: object expected"); + message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.entryFulfillment); + } + if (object.form != null) { + if (typeof object.form !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.form: object expected"); + message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.fromObject(object.form); + } + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) + message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); + } + if (object.transitionRoutes) { + if (!Array.isArray(object.transitionRoutes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.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.Page.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); + } + } + if (object.eventHandlers) { + if (!Array.isArray(object.eventHandlers)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: array expected"); + message.eventHandlers = []; + for (var i = 0; i < object.eventHandlers.length; ++i) { + if (typeof object.eventHandlers[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: object expected"); + message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandlers[i]); + } + } + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.fromObject(object.advancedSettings); + } + if (object.knowledgeConnectorSettings != null) { + if (typeof object.knowledgeConnectorSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.knowledgeConnectorSettings: object expected"); + message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.fromObject(object.knowledgeConnectorSettings); + } + return message; + }; + + /** + * Creates a plain object from a Page message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Page} message Page + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Page.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.transitionRoutes = []; + object.eventHandlers = []; + object.transitionRouteGroups = []; + } + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.form = null; + object.entryFulfillment = null; + object.advancedSettings = null; + object.knowledgeConnectorSettings = 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.form != null && message.hasOwnProperty("form")) + object.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.toObject(message.form, options); + if (message.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) + object.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.entryFulfillment, options); + 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); + } + if (message.eventHandlers && message.eventHandlers.length) { + object.eventHandlers = []; + for (var j = 0; j < message.eventHandlers.length; ++j) + object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandlers[j], options); + } + if (message.transitionRouteGroups && message.transitionRouteGroups.length) { + object.transitionRouteGroups = []; + for (var j = 0; j < message.transitionRouteGroups.length; ++j) + object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; + } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.toObject(message.advancedSettings, options); + if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) + object.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.toObject(message.knowledgeConnectorSettings, options); + return object; + }; + + /** + * Converts this Page to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + * @returns {Object.} JSON object + */ + Page.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Page + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Page.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Page"; + }; + + return Page; + })(); + + v3beta1.Form = (function() { + + /** + * Properties of a Form. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IForm + * @property {Array.|null} [parameters] Form parameters + */ + + /** + * Constructs a new Form. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Form. + * @implements IForm + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set + */ + function Form(properties) { + this.parameters = []; + 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]]; + } + + /** + * Form parameters. + * @member {Array.} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @instance + */ + Form.prototype.parameters = $util.emptyArray; + + /** + * Creates a new Form instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form instance + */ + Form.create = function create(properties) { + return new Form(properties); + }; + + /** + * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Form.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.encode(message.parameters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Form.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Form message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @static + * @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.Form} Form + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Form.decode = function decode(reader, length) { + 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.Form(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Form message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Form.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Form message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Form.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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.Form.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } + return null; + }; + + /** + * Creates a Form message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form + */ + Form.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form(); + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.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.Form.parameters: object expected"); + message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fromObject(object.parameters[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Form message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form} message Form + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Form.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parameters = []; + 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.Form.Parameter.toObject(message.parameters[j], options); + } + return object; + }; + + /** + * Converts this Form to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @instance + * @returns {Object.} JSON object + */ + Form.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Form + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Form.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form"; + }; + + Form.Parameter = (function() { /** - * Properties of a ConversationSuccess. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IConversationSuccess - * @property {google.protobuf.IStruct|null} [metadata] ConversationSuccess metadata + * Properties of a Parameter. + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @interface IParameter + * @property {string|null} [displayName] Parameter displayName + * @property {boolean|null} [required] Parameter required + * @property {string|null} [entityType] Parameter entityType + * @property {boolean|null} [isList] Parameter isList + * @property {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null} [fillBehavior] Parameter fillBehavior + * @property {google.protobuf.IValue|null} [defaultValue] Parameter defaultValue + * @property {boolean|null} [redact] Parameter redact + * @property {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null} [advancedSettings] Parameter advancedSettings */ /** - * Constructs a new ConversationSuccess. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a ConversationSuccess. - * @implements IConversationSuccess + * Constructs a new Parameter. + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @classdesc Represents a Parameter. + * @implements IParameter * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter=} [properties] Properties to set */ - function ConversationSuccess(properties) { + function Parameter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97413,75 +94773,173 @@ } /** - * ConversationSuccess metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * Parameter displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @instance */ - ConversationSuccess.prototype.metadata = null; + Parameter.prototype.displayName = ""; /** - * Creates a new ConversationSuccess instance using the specified properties. + * Parameter required. + * @member {boolean} required + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.required = false; + + /** + * Parameter entityType. + * @member {string} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.entityType = ""; + + /** + * Parameter isList. + * @member {boolean} isList + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.isList = false; + + /** + * Parameter fillBehavior. + * @member {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null|undefined} fillBehavior + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.fillBehavior = null; + + /** + * Parameter defaultValue. + * @member {google.protobuf.IValue|null|undefined} defaultValue + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.defaultValue = null; + + /** + * Parameter redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.redact = false; + + /** + * Parameter advancedSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.advancedSettings = null; + + /** + * Creates a new Parameter instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess instance + * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter instance */ - ConversationSuccess.create = function create(properties) { - return new ConversationSuccess(properties); + Parameter.create = function create(properties) { + return new Parameter(properties); }; /** - * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter} message Parameter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationSuccess.encode = function encode(message, writer) { + Parameter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.required != null && Object.hasOwnProperty.call(message, "required")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.required); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType); + if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isList); + if (message.fillBehavior != null && Object.hasOwnProperty.call(message, "fillBehavior")) + $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.encode(message.fillBehavior, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.redact); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter} message Parameter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConversationSuccess.encodeDelimited = function encodeDelimited(message, writer) { + Parameter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConversationSuccess message from the specified reader or buffer. + * Decodes a Parameter message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.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.ResponseMessage.ConversationSuccess} ConversationSuccess + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationSuccess.decode = function decode(reader, length) { + 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.ResponseMessage.ConversationSuccess(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.displayName = reader.string(); + break; + } + case 2: { + message.required = reader.bool(); + break; + } + case 3: { + message.entityType = reader.string(); + break; + } + case 4: { + message.isList = reader.bool(); + break; + } + case 7: { + message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.decode(reader, reader.uint32()); + break; + } + case 9: { + message.defaultValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 11: { + message.redact = reader.bool(); + break; + } + case 12: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.decode(reader, reader.uint32()); break; } default: @@ -97493,1144 +94951,286 @@ }; /** - * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. + * Decodes a Parameter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConversationSuccess.decodeDelimited = function decodeDelimited(reader) { + Parameter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConversationSuccess message. + * Verifies a Parameter message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConversationSuccess.verify = function verify(message) { + Parameter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.required != null && message.hasOwnProperty("required")) + if (typeof message.required !== "boolean") + return "required: boolean 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.fillBehavior != null && message.hasOwnProperty("fillBehavior")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify(message.fillBehavior); if (error) - return "metadata." + error; + return "fillBehavior." + error; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + var error = $root.google.protobuf.Value.verify(message.defaultValue); + if (error) + return "defaultValue." + error; + } + if (message.redact != null && message.hasOwnProperty("redact")) + if (typeof message.redact !== "boolean") + return "redact: boolean expected"; + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; } return null; }; /** - * Creates a ConversationSuccess message from a plain object. Also converts values to their respective internal types. + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter */ - ConversationSuccess.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess) + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.required != null) + message.required = Boolean(object.required); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.isList != null) + message.isList = Boolean(object.isList); + if (object.fillBehavior != null) { + if (typeof object.fillBehavior !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fillBehavior: object expected"); + message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.fromObject(object.fillBehavior); + } + if (object.defaultValue != null) { + if (typeof object.defaultValue !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.defaultValue: object expected"); + message.defaultValue = $root.google.protobuf.Value.fromObject(object.defaultValue); + } + if (object.redact != null) + message.redact = Boolean(object.redact); + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.fromObject(object.advancedSettings); } return message; }; /** - * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. + * Creates a plain object from a Parameter message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} message ConversationSuccess + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} message Parameter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConversationSuccess.toObject = function toObject(message, options) { + Parameter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.metadata = null; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + if (options.defaults) { + object.displayName = ""; + object.required = false; + object.entityType = ""; + object.isList = false; + object.fillBehavior = null; + object.defaultValue = null; + object.redact = false; + object.advancedSettings = null; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.required != null && message.hasOwnProperty("required")) + object.required = message.required; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.isList != null && message.hasOwnProperty("isList")) + object.isList = message.isList; + if (message.fillBehavior != null && message.hasOwnProperty("fillBehavior")) + object.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.toObject(message.fillBehavior, options); + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options); + if (message.redact != null && message.hasOwnProperty("redact")) + object.redact = message.redact; + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.toObject(message.advancedSettings, options); return object; }; /** - * Converts this ConversationSuccess to JSON. + * Converts this Parameter to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @instance * @returns {Object.} JSON object */ - ConversationSuccess.prototype.toJSON = function toJSON() { + Parameter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConversationSuccess + * Gets the default type url for Parameter * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConversationSuccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form.Parameter"; }; - return ConversationSuccess; - })(); - - ResponseMessage.OutputAudioText = (function() { - - /** - * Properties of an OutputAudioText. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IOutputAudioText - * @property {string|null} [text] OutputAudioText text - * @property {string|null} [ssml] OutputAudioText ssml - * @property {boolean|null} [allowPlaybackInterruption] OutputAudioText allowPlaybackInterruption - */ + Parameter.FillBehavior = (function() { - /** - * Constructs a new OutputAudioText. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents an OutputAudioText. - * @implements IOutputAudioText - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set - */ - function OutputAudioText(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 FillBehavior. + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @interface IFillBehavior + * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [initialPromptFulfillment] FillBehavior initialPromptFulfillment + * @property {Array.|null} [repromptEventHandlers] FillBehavior repromptEventHandlers + */ - /** - * OutputAudioText text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - */ - OutputAudioText.prototype.text = null; + /** + * Constructs a new FillBehavior. + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @classdesc Represents a FillBehavior. + * @implements IFillBehavior + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set + */ + function FillBehavior(properties) { + this.repromptEventHandlers = []; + 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]]; + } - /** - * OutputAudioText ssml. - * @member {string|null|undefined} ssml - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - */ - OutputAudioText.prototype.ssml = null; + /** + * FillBehavior initialPromptFulfillment. + * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} initialPromptFulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @instance + */ + FillBehavior.prototype.initialPromptFulfillment = null; - /** - * OutputAudioText allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - */ - OutputAudioText.prototype.allowPlaybackInterruption = false; + /** + * FillBehavior repromptEventHandlers. + * @member {Array.} repromptEventHandlers + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @instance + */ + FillBehavior.prototype.repromptEventHandlers = $util.emptyArray; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * OutputAudioText source. - * @member {"text"|"ssml"|undefined} source - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - */ - Object.defineProperty(OutputAudioText.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["text", "ssml"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new OutputAudioText instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText instance - */ - OutputAudioText.create = function create(properties) { - return new OutputAudioText(properties); - }; - - /** - * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputAudioText.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.ssml != null && Object.hasOwnProperty.call(message, "ssml")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.ssml); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); - return writer; - }; - - /** - * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputAudioText.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OutputAudioText message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @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.ResponseMessage.OutputAudioText} OutputAudioText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputAudioText.decode = function decode(reader, length) { - 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.ResponseMessage.OutputAudioText(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.text = reader.string(); - break; - } - case 2: { - message.ssml = reader.string(); - break; - } - case 3: { - message.allowPlaybackInterruption = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputAudioText.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OutputAudioText message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputAudioText.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.source = 1; - if (!$util.isString(message.text)) - return "text: string expected"; - } - if (message.ssml != null && message.hasOwnProperty("ssml")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - if (!$util.isString(message.ssml)) - return "ssml: string expected"; - } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; - return null; - }; - - /** - * Creates an OutputAudioText message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText - */ - OutputAudioText.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText(); - if (object.text != null) - message.text = String(object.text); - if (object.ssml != null) - message.ssml = String(object.ssml); - if (object.allowPlaybackInterruption != null) - message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); - return message; - }; - - /** - * Creates a plain object from an OutputAudioText message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} message OutputAudioText - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OutputAudioText.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.allowPlaybackInterruption = false; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = message.text; - if (options.oneofs) - object.source = "text"; - } - if (message.ssml != null && message.hasOwnProperty("ssml")) { - object.ssml = message.ssml; - if (options.oneofs) - object.source = "ssml"; - } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; - return object; - }; - - /** - * Converts this OutputAudioText to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - * @returns {Object.} JSON object - */ - OutputAudioText.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OutputAudioText - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OutputAudioText.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText"; - }; - - return OutputAudioText; - })(); - - ResponseMessage.EndInteraction = (function() { - - /** - * Properties of an EndInteraction. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IEndInteraction - */ - - /** - * Constructs a new EndInteraction. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents an EndInteraction. - * @implements IEndInteraction - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set - */ - function EndInteraction(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 EndInteraction instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction instance - */ - EndInteraction.create = function create(properties) { - return new EndInteraction(properties); - }; - - /** - * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EndInteraction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EndInteraction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EndInteraction message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @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.ResponseMessage.EndInteraction} EndInteraction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EndInteraction.decode = function decode(reader, length) { - 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.ResponseMessage.EndInteraction(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EndInteraction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EndInteraction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EndInteraction message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EndInteraction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction - */ - EndInteraction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction) - return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction(); - }; - - /** - * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} message EndInteraction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EndInteraction.toObject = function toObject() { - return {}; - }; - - /** - * Converts this EndInteraction to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @instance - * @returns {Object.} JSON object - */ - EndInteraction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EndInteraction - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EndInteraction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction"; - }; - - return EndInteraction; - })(); - - ResponseMessage.PlayAudio = (function() { - - /** - * Properties of a PlayAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IPlayAudio - * @property {string|null} [audioUri] PlayAudio audioUri - * @property {boolean|null} [allowPlaybackInterruption] PlayAudio allowPlaybackInterruption - */ - - /** - * Constructs a new PlayAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a PlayAudio. - * @implements IPlayAudio - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set - */ - function PlayAudio(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]]; - } - - /** - * PlayAudio audioUri. - * @member {string} audioUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @instance - */ - PlayAudio.prototype.audioUri = ""; - - /** - * PlayAudio allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @instance - */ - PlayAudio.prototype.allowPlaybackInterruption = false; - - /** - * Creates a new PlayAudio instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio instance - */ - PlayAudio.create = function create(properties) { - return new PlayAudio(properties); - }; - - /** - * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PlayAudio.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.audioUri != null && Object.hasOwnProperty.call(message, "audioUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.audioUri); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); - return writer; - }; - - /** - * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PlayAudio.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PlayAudio message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @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.ResponseMessage.PlayAudio} PlayAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PlayAudio.decode = function decode(reader, length) { - 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.ResponseMessage.PlayAudio(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.audioUri = reader.string(); - break; - } - case 2: { - message.allowPlaybackInterruption = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PlayAudio message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PlayAudio.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PlayAudio message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PlayAudio.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.audioUri != null && message.hasOwnProperty("audioUri")) - if (!$util.isString(message.audioUri)) - return "audioUri: string expected"; - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; - return null; - }; - - /** - * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio - */ - PlayAudio.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio(); - if (object.audioUri != null) - message.audioUri = String(object.audioUri); - if (object.allowPlaybackInterruption != null) - message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); - return message; - }; - - /** - * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} message PlayAudio - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PlayAudio.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.audioUri = ""; - object.allowPlaybackInterruption = false; - } - if (message.audioUri != null && message.hasOwnProperty("audioUri")) - object.audioUri = message.audioUri; - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; - return object; - }; - - /** - * Converts this PlayAudio to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @instance - * @returns {Object.} JSON object - */ - PlayAudio.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PlayAudio - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PlayAudio.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio"; - }; - - return PlayAudio; - })(); - - ResponseMessage.MixedAudio = (function() { - - /** - * Properties of a MixedAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IMixedAudio - * @property {Array.|null} [segments] MixedAudio segments - */ - - /** - * Constructs a new MixedAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a MixedAudio. - * @implements IMixedAudio - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set - */ - function MixedAudio(properties) { - this.segments = []; - 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]]; - } - - /** - * MixedAudio segments. - * @member {Array.} segments - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @instance - */ - MixedAudio.prototype.segments = $util.emptyArray; - - /** - * Creates a new MixedAudio instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio instance - */ - MixedAudio.create = function create(properties) { - return new MixedAudio(properties); - }; - - /** - * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MixedAudio.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.segments != null && message.segments.length) - for (var i = 0; i < message.segments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MixedAudio.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MixedAudio message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @static - * @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.ResponseMessage.MixedAudio} MixedAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MixedAudio.decode = function decode(reader, length) { - 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.ResponseMessage.MixedAudio(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.segments && message.segments.length)) - message.segments = []; - message.segments.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MixedAudio message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MixedAudio.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MixedAudio message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MixedAudio.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.segments != null && message.hasOwnProperty("segments")) { - if (!Array.isArray(message.segments)) - return "segments: array expected"; - for (var i = 0; i < message.segments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify(message.segments[i]); - if (error) - return "segments." + error; - } - } - return null; - }; - - /** - * Creates a MixedAudio message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio - */ - MixedAudio.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio(); - if (object.segments) { - if (!Array.isArray(object.segments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: array expected"); - message.segments = []; - for (var i = 0; i < object.segments.length; ++i) { - if (typeof object.segments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: object expected"); - message.segments[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.fromObject(object.segments[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a MixedAudio message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} message MixedAudio - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MixedAudio.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.segments = []; - if (message.segments && message.segments.length) { - object.segments = []; - for (var j = 0; j < message.segments.length; ++j) - object.segments[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.toObject(message.segments[j], options); - } - return object; - }; - - /** - * Converts this MixedAudio to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @instance - * @returns {Object.} JSON object - */ - MixedAudio.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MixedAudio - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MixedAudio.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio"; - }; - - MixedAudio.Segment = (function() { - - /** - * Properties of a Segment. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @interface ISegment - * @property {Uint8Array|null} [audio] Segment audio - * @property {string|null} [uri] Segment uri - * @property {boolean|null} [allowPlaybackInterruption] Segment allowPlaybackInterruption - */ - - /** - * Constructs a new Segment. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @classdesc Represents a Segment. - * @implements ISegment - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set - */ - function Segment(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]]; - } - - /** - * Segment audio. - * @member {Uint8Array|null|undefined} audio - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @instance - */ - Segment.prototype.audio = null; - - /** - * Segment uri. - * @member {string|null|undefined} uri - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @instance - */ - Segment.prototype.uri = null; - - /** - * Segment allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @instance - */ - Segment.prototype.allowPlaybackInterruption = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Segment content. - * @member {"audio"|"uri"|undefined} content - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @instance - */ - Object.defineProperty(Segment.prototype, "content", { - get: $util.oneOfGetter($oneOfFields = ["audio", "uri"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Segment instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment instance - */ - Segment.create = function create(properties) { - return new Segment(properties); - }; + /** + * Creates a new FillBehavior instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior instance + */ + FillBehavior.create = function create(properties) { + return new FillBehavior(properties); + }; /** - * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Segment.encode = function encode(message, writer) { + FillBehavior.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.audio); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); + if (message.initialPromptFulfillment != null && Object.hasOwnProperty.call(message, "initialPromptFulfillment")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.initialPromptFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.repromptEventHandlers != null && message.repromptEventHandlers.length) + for (var i = 0; i < message.repromptEventHandlers.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.repromptEventHandlers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Segment.encodeDelimited = function encodeDelimited(message, writer) { + FillBehavior.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Segment message from the specified reader or buffer. + * Decodes a FillBehavior message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior * @static * @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.ResponseMessage.MixedAudio.Segment} Segment + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Segment.decode = function decode(reader, length) { + FillBehavior.decode = function decode(reader, length) { 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.ResponseMessage.MixedAudio.Segment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.audio = reader.bytes(); - break; - } - case 2: { - message.uri = reader.string(); + case 3: { + message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); break; } - case 3: { - message.allowPlaybackInterruption = reader.bool(); + case 5: { + if (!(message.repromptEventHandlers && message.repromptEventHandlers.length)) + message.repromptEventHandlers = []; + message.repromptEventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); break; } default: @@ -98642,155 +95242,11110 @@ }; /** - * Decodes a Segment message from the specified reader or buffer, length delimited. + * Decodes a FillBehavior message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Segment.decodeDelimited = function decodeDelimited(reader) { + FillBehavior.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Segment message. + * Verifies a FillBehavior message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Segment.verify = function verify(message) { + FillBehavior.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.audio != null && message.hasOwnProperty("audio")) { - properties.content = 1; - if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) - return "audio: buffer expected"; + if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.initialPromptFulfillment); + if (error) + return "initialPromptFulfillment." + error; } - if (message.uri != null && message.hasOwnProperty("uri")) { - if (properties.content === 1) - return "content: multiple values"; - properties.content = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; + if (message.repromptEventHandlers != null && message.hasOwnProperty("repromptEventHandlers")) { + if (!Array.isArray(message.repromptEventHandlers)) + return "repromptEventHandlers: array expected"; + for (var i = 0; i < message.repromptEventHandlers.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.repromptEventHandlers[i]); + if (error) + return "repromptEventHandlers." + error; + } } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; return null; }; /** - * Creates a Segment message from a plain object. Also converts values to their respective internal types. + * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior */ - Segment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment) + FillBehavior.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment(); - 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 >= 0) - message.audio = object.audio; - if (object.uri != null) - message.uri = String(object.uri); - if (object.allowPlaybackInterruption != null) - message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); - return message; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior(); + if (object.initialPromptFulfillment != null) { + if (typeof object.initialPromptFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.initialPromptFulfillment: object expected"); + message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.initialPromptFulfillment); + } + if (object.repromptEventHandlers) { + if (!Array.isArray(object.repromptEventHandlers)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: array expected"); + message.repromptEventHandlers = []; + for (var i = 0; i < object.repromptEventHandlers.length; ++i) { + if (typeof object.repromptEventHandlers[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: object expected"); + message.repromptEventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.repromptEventHandlers[i]); + } + } + return message; + }; /** - * Creates a plain object from a Segment message. Also converts values to other types if specified. + * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} message Segment + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} message FillBehavior * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Segment.toObject = function toObject(message, options) { + FillBehavior.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.repromptEventHandlers = []; if (options.defaults) - object.allowPlaybackInterruption = false; - 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 (options.oneofs) - object.content = "audio"; - } - if (message.uri != null && message.hasOwnProperty("uri")) { - object.uri = message.uri; - if (options.oneofs) - object.content = "uri"; + object.initialPromptFulfillment = null; + if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) + object.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.initialPromptFulfillment, options); + if (message.repromptEventHandlers && message.repromptEventHandlers.length) { + object.repromptEventHandlers = []; + for (var j = 0; j < message.repromptEventHandlers.length; ++j) + object.repromptEventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.repromptEventHandlers[j], options); } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; return object; }; /** - * Converts this Segment to JSON. + * Converts this FillBehavior to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior * @instance * @returns {Object.} JSON object */ - Segment.prototype.toJSON = function toJSON() { + FillBehavior.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Segment + * Gets the default type url for FillBehavior * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Segment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FillBehavior.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior"; }; - return Segment; + return FillBehavior; })(); - return MixedAudio; + return Parameter; + })(); + + return Form; + })(); + + v3beta1.EventHandler = (function() { + + /** + * Properties of an EventHandler. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IEventHandler + * @property {string|null} [name] EventHandler name + * @property {string|null} [event] EventHandler event + * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] EventHandler triggerFulfillment + * @property {string|null} [targetPage] EventHandler targetPage + * @property {string|null} [targetFlow] EventHandler targetFlow + */ + + /** + * Constructs a new EventHandler. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an EventHandler. + * @implements IEventHandler + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set + */ + function EventHandler(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]]; + } + + /** + * EventHandler name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + EventHandler.prototype.name = ""; + + /** + * EventHandler event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + EventHandler.prototype.event = ""; + + /** + * EventHandler triggerFulfillment. + * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + EventHandler.prototype.triggerFulfillment = null; + + /** + * EventHandler targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + EventHandler.prototype.targetPage = null; + + /** + * EventHandler targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + EventHandler.prototype.targetFlow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EventHandler target. + * @member {"targetPage"|"targetFlow"|undefined} target + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + Object.defineProperty(EventHandler.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EventHandler instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler instance + */ + EventHandler.create = function create(properties) { + return new EventHandler(properties); + }; + + /** + * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventHandler.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetFlow); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.event); + if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventHandler.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EventHandler message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @static + * @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.EventHandler} EventHandler + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventHandler.decode = function decode(reader, length) { + 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.EventHandler(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 6: { + message.name = reader.string(); + break; + } + case 4: { + message.event = reader.string(); + break; + } + case 5: { + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 2: { + message.targetPage = reader.string(); + break; + } + case 3: { + message.targetFlow = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EventHandler message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventHandler.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EventHandler message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventHandler.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.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); + if (error) + return "triggerFulfillment." + error; + } + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.target = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; + } + return null; + }; + + /** + * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler + */ + EventHandler.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventHandler) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventHandler(); + if (object.name != null) + message.name = String(object.name); + if (object.event != null) + message.event = String(object.event); + if (object.triggerFulfillment != null) { + if (typeof object.triggerFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EventHandler.triggerFulfillment: object expected"); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); + } + if (object.targetPage != null) + message.targetPage = String(object.targetPage); + if (object.targetFlow != null) + message.targetFlow = String(object.targetFlow); + return message; + }; + + /** + * Creates a plain object from an EventHandler message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.EventHandler} message EventHandler + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EventHandler.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.event = ""; + object.triggerFulfillment = null; + object.name = ""; + } + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.target = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.target = "targetFlow"; + } + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) + object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this EventHandler to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + * @returns {Object.} JSON object + */ + EventHandler.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EventHandler + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EventHandler.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EventHandler"; + }; + + return EventHandler; + })(); + + v3beta1.TransitionRoute = (function() { + + /** + * Properties of a TransitionRoute. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ITransitionRoute + * @property {string|null} [name] TransitionRoute name + * @property {string|null} [description] TransitionRoute description + * @property {string|null} [intent] TransitionRoute intent + * @property {string|null} [condition] TransitionRoute condition + * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] TransitionRoute triggerFulfillment + * @property {string|null} [targetPage] TransitionRoute targetPage + * @property {string|null} [targetFlow] TransitionRoute targetFlow + */ + + /** + * Constructs a new TransitionRoute. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a TransitionRoute. + * @implements ITransitionRoute + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set + */ + function TransitionRoute(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]]; + } + + /** + * TransitionRoute name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.name = ""; + + /** + * TransitionRoute description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.description = ""; + + /** + * TransitionRoute intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.intent = ""; + + /** + * TransitionRoute condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.condition = ""; + + /** + * TransitionRoute triggerFulfillment. + * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.triggerFulfillment = null; + + /** + * TransitionRoute targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.targetPage = null; + + /** + * TransitionRoute targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.targetFlow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TransitionRoute target. + * @member {"targetPage"|"targetFlow"|undefined} target + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + Object.defineProperty(TransitionRoute.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TransitionRoute instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute instance + */ + TransitionRoute.create = function create(properties) { + return new TransitionRoute(properties); + }; + + /** + * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionRoute.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.condition != null && Object.hasOwnProperty.call(message, "condition")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.condition); + if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetFlow); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); + return writer; + }; + + /** + * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransitionRoute.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TransitionRoute message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @static + * @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.TransitionRoute} TransitionRoute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionRoute.decode = function decode(reader, length) { + 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.TransitionRoute(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 6: { + message.name = reader.string(); + break; + } + case 8: { + message.description = reader.string(); + break; + } + case 1: { + message.intent = reader.string(); + break; + } + case 2: { + message.condition = reader.string(); + break; + } + case 3: { + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 4: { + message.targetPage = reader.string(); + break; + } + case 5: { + message.targetFlow = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransitionRoute.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TransitionRoute message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TransitionRoute.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.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); + if (error) + return "triggerFulfillment." + error; + } + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.target = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; + } + return null; + }; + + /** + * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute + */ + TransitionRoute.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + if (object.intent != null) + message.intent = String(object.intent); + if (object.condition != null) + message.condition = String(object.condition); + if (object.triggerFulfillment != null) { + if (typeof object.triggerFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRoute.triggerFulfillment: object expected"); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); + } + if (object.targetPage != null) + message.targetPage = String(object.targetPage); + if (object.targetFlow != null) + message.targetFlow = String(object.targetFlow); + return message; + }; + + /** + * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} message TransitionRoute + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransitionRoute.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.intent = ""; + object.condition = ""; + object.triggerFulfillment = null; + object.name = ""; + object.description = ""; + } + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) + object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.target = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.target = "targetFlow"; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this TransitionRoute to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + * @returns {Object.} JSON object + */ + TransitionRoute.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TransitionRoute + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransitionRoute.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRoute"; + }; + + return TransitionRoute; + })(); + + v3beta1.ListPagesRequest = (function() { + + /** + * Properties of a ListPagesRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListPagesRequest + * @property {string|null} [parent] ListPagesRequest parent + * @property {string|null} [languageCode] ListPagesRequest languageCode + * @property {number|null} [pageSize] ListPagesRequest pageSize + * @property {string|null} [pageToken] ListPagesRequest pageToken + */ + + /** + * Constructs a new ListPagesRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListPagesRequest. + * @implements IListPagesRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set + */ + function ListPagesRequest(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]]; + } + + /** + * ListPagesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @instance + */ + ListPagesRequest.prototype.parent = ""; + + /** + * ListPagesRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @instance + */ + ListPagesRequest.prototype.languageCode = ""; + + /** + * ListPagesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @instance + */ + ListPagesRequest.prototype.pageSize = 0; + + /** + * ListPagesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @instance + */ + ListPagesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListPagesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest instance + */ + ListPagesRequest.create = function create(properties) { + return new ListPagesRequest(properties); + }; + + /** + * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPagesRequest.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); + return writer; + }; + + /** + * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPagesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPagesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @static + * @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.ListPagesRequest} ListPagesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPagesRequest.decode = function decode(reader, length) { + 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.ListPagesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.languageCode = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPagesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPagesRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPagesRequest.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.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 ListPagesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest + */ + ListPagesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest(); + 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 ListPagesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} message ListPagesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPagesRequest.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 ListPagesRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @instance + * @returns {Object.} JSON object + */ + ListPagesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPagesRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListPagesRequest"; + }; + + return ListPagesRequest; + })(); + + v3beta1.ListPagesResponse = (function() { + + /** + * Properties of a ListPagesResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListPagesResponse + * @property {Array.|null} [pages] ListPagesResponse pages + * @property {string|null} [nextPageToken] ListPagesResponse nextPageToken + */ + + /** + * Constructs a new ListPagesResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListPagesResponse. + * @implements IListPagesResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set + */ + function ListPagesResponse(properties) { + this.pages = []; + 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]]; + } + + /** + * ListPagesResponse pages. + * @member {Array.} pages + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @instance + */ + ListPagesResponse.prototype.pages = $util.emptyArray; + + /** + * ListPagesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @instance + */ + ListPagesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListPagesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse instance + */ + ListPagesResponse.create = function create(properties) { + return new ListPagesResponse(properties); + }; + + /** + * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPagesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pages != null && message.pages.length) + for (var i = 0; i < message.pages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.pages[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 ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @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.ListPagesResponse} ListPagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPagesResponse.decode = function decode(reader, length) { + 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.ListPagesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.pages && message.pages.length)) + message.pages = []; + message.pages.push($root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPagesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPagesResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPagesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pages != null && message.hasOwnProperty("pages")) { + if (!Array.isArray(message.pages)) + return "pages: array expected"; + for (var i = 0; i < message.pages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.pages[i]); + if (error) + return "pages." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + */ + ListPagesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse(); + if (object.pages) { + if (!Array.isArray(object.pages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: array expected"); + message.pages = []; + for (var i = 0; i < object.pages.length; ++i) { + if (typeof object.pages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: object expected"); + message.pages[i] = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.pages[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} message ListPagesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPagesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pages = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.pages && message.pages.length) { + object.pages = []; + for (var j = 0; j < message.pages.length; ++j) + object.pages[j] = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.pages[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListPagesResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @instance + * @returns {Object.} JSON object + */ + ListPagesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListPagesResponse + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListPagesResponse"; + }; + + return ListPagesResponse; + })(); + + v3beta1.GetPageRequest = (function() { + + /** + * Properties of a GetPageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IGetPageRequest + * @property {string|null} [name] GetPageRequest name + * @property {string|null} [languageCode] GetPageRequest languageCode + */ + + /** + * Constructs a new GetPageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GetPageRequest. + * @implements IGetPageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set + */ + function GetPageRequest(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]]; + } + + /** + * GetPageRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @instance + */ + GetPageRequest.prototype.name = ""; + + /** + * GetPageRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @instance + */ + GetPageRequest.prototype.languageCode = ""; + + /** + * Creates a new GetPageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest instance + */ + GetPageRequest.create = function create(properties) { + return new GetPageRequest(properties); + }; + + /** + * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPageRequest.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 GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetPageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetPageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @static + * @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.GetPageRequest} GetPageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPageRequest.decode = function decode(reader, length) { + 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.GetPageRequest(); + 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; + }; + + /** + * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetPageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetPageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetPageRequest.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 GetPageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest + */ + GetPageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest(); + 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 GetPageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} message GetPageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetPageRequest.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 GetPageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @instance + * @returns {Object.} JSON object + */ + GetPageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetPageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetPageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetPageRequest"; + }; + + return GetPageRequest; + })(); + + v3beta1.CreatePageRequest = (function() { + + /** + * Properties of a CreatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ICreatePageRequest + * @property {string|null} [parent] CreatePageRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] CreatePageRequest page + * @property {string|null} [languageCode] CreatePageRequest languageCode + */ + + /** + * Constructs a new CreatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a CreatePageRequest. + * @implements ICreatePageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set + */ + function CreatePageRequest(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]]; + } + + /** + * CreatePageRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @instance + */ + CreatePageRequest.prototype.parent = ""; + + /** + * CreatePageRequest page. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @instance + */ + CreatePageRequest.prototype.page = null; + + /** + * CreatePageRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @instance + */ + CreatePageRequest.prototype.languageCode = ""; + + /** + * Creates a new CreatePageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest instance + */ + CreatePageRequest.create = function create(properties) { + return new CreatePageRequest(properties); + }; + + /** + * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePageRequest.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.page != null && Object.hasOwnProperty.call(message, "page")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, 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 CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreatePageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @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.CreatePageRequest} CreatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePageRequest.decode = function decode(reader, length) { + 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.CreatePageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + break; + } + case 3: { + message.languageCode = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreatePageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreatePageRequest.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.page != null && message.hasOwnProperty("page")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + if (error) + return "page." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; + + /** + * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + */ + CreatePageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; + + /** + * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} message CreatePageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreatePageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.page = null; + object.languageCode = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.page != null && message.hasOwnProperty("page")) + object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; + + /** + * Converts this CreatePageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @instance + * @returns {Object.} JSON object + */ + CreatePageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreatePageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreatePageRequest"; + }; + + return CreatePageRequest; + })(); + + v3beta1.UpdatePageRequest = (function() { + + /** + * Properties of an UpdatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IUpdatePageRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] UpdatePageRequest page + * @property {string|null} [languageCode] UpdatePageRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePageRequest updateMask + */ + + /** + * Constructs a new UpdatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an UpdatePageRequest. + * @implements IUpdatePageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set + */ + function UpdatePageRequest(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]]; + } + + /** + * UpdatePageRequest page. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @instance + */ + UpdatePageRequest.prototype.page = null; + + /** + * UpdatePageRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @instance + */ + UpdatePageRequest.prototype.languageCode = ""; + + /** + * UpdatePageRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @instance + */ + UpdatePageRequest.prototype.updateMask = null; + + /** + * Creates a new UpdatePageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest instance + */ + UpdatePageRequest.create = function create(properties) { + return new UpdatePageRequest(properties); + }; + + /** + * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePageRequest.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.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 UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdatePageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @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.UpdatePageRequest} UpdatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePageRequest.decode = function decode(reader, length) { + 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.UpdatePageRequest(); + 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.languageCode = reader.string(); + break; + } + case 3: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdatePageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdatePageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.page != null && message.hasOwnProperty("page")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + if (error) + return "page." + 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 UpdatePageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + */ + UpdatePageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest(); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + } + 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.UpdatePageRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdatePageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} message UpdatePageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdatePageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.page = null; + object.languageCode = ""; + object.updateMask = null; + } + if (message.page != null && message.hasOwnProperty("page")) + object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, 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 UpdatePageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @instance + * @returns {Object.} JSON object + */ + UpdatePageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdatePageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest"; + }; + + return UpdatePageRequest; + })(); + + v3beta1.DeletePageRequest = (function() { + + /** + * Properties of a DeletePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDeletePageRequest + * @property {string|null} [name] DeletePageRequest name + * @property {boolean|null} [force] DeletePageRequest force + */ + + /** + * Constructs a new DeletePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a DeletePageRequest. + * @implements IDeletePageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set + */ + function DeletePageRequest(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]]; + } + + /** + * DeletePageRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @instance + */ + DeletePageRequest.prototype.name = ""; + + /** + * DeletePageRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @instance + */ + DeletePageRequest.prototype.force = false; + + /** + * Creates a new DeletePageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest instance + */ + DeletePageRequest.create = function create(properties) { + return new DeletePageRequest(properties); + }; + + /** + * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePageRequest.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 DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeletePageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @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.DeletePageRequest} DeletePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePageRequest.decode = function decode(reader, length) { + 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.DeletePageRequest(); + 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; + } + } + return message; + }; + + /** + * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeletePageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeletePageRequest.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 DeletePageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + */ + DeletePageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest(); + 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 DeletePageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} message DeletePageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeletePageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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 DeletePageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @instance + * @returns {Object.} JSON object + */ + DeletePageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeletePageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeletePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeletePageRequest"; + }; + + return DeletePageRequest; + })(); + + v3beta1.KnowledgeConnectorSettings = (function() { + + /** + * Properties of a KnowledgeConnectorSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IKnowledgeConnectorSettings + * @property {boolean|null} [enabled] KnowledgeConnectorSettings enabled + * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] KnowledgeConnectorSettings triggerFulfillment + * @property {string|null} [targetPage] KnowledgeConnectorSettings targetPage + * @property {string|null} [targetFlow] KnowledgeConnectorSettings targetFlow + * @property {Array.|null} [dataStoreConnections] KnowledgeConnectorSettings dataStoreConnections + */ + + /** + * Constructs a new KnowledgeConnectorSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a KnowledgeConnectorSettings. + * @implements IKnowledgeConnectorSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings=} [properties] Properties to set + */ + function KnowledgeConnectorSettings(properties) { + this.dataStoreConnections = []; + 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]]; + } + + /** + * KnowledgeConnectorSettings enabled. + * @member {boolean} enabled + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.enabled = false; + + /** + * KnowledgeConnectorSettings triggerFulfillment. + * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.triggerFulfillment = null; + + /** + * KnowledgeConnectorSettings targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.targetPage = null; + + /** + * KnowledgeConnectorSettings targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.targetFlow = null; + + /** + * KnowledgeConnectorSettings dataStoreConnections. + * @member {Array.} dataStoreConnections + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.dataStoreConnections = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * KnowledgeConnectorSettings target. + * @member {"targetPage"|"targetFlow"|undefined} target + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @instance + */ + Object.defineProperty(KnowledgeConnectorSettings.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new KnowledgeConnectorSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings} KnowledgeConnectorSettings instance + */ + KnowledgeConnectorSettings.create = function create(properties) { + return new KnowledgeConnectorSettings(properties); + }; + + /** + * Encodes the specified KnowledgeConnectorSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings} message KnowledgeConnectorSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KnowledgeConnectorSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetFlow); + if (message.dataStoreConnections != null && message.dataStoreConnections.length) + for (var i = 0; i < message.dataStoreConnections.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.encode(message.dataStoreConnections[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified KnowledgeConnectorSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IKnowledgeConnectorSettings} message KnowledgeConnectorSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KnowledgeConnectorSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @static + * @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.KnowledgeConnectorSettings} KnowledgeConnectorSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KnowledgeConnectorSettings.decode = function decode(reader, length) { + 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.KnowledgeConnectorSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enabled = reader.bool(); + break; + } + case 3: { + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 4: { + message.targetPage = reader.string(); + break; + } + case 5: { + message.targetFlow = reader.string(); + break; + } + case 6: { + if (!(message.dataStoreConnections && message.dataStoreConnections.length)) + message.dataStoreConnections = []; + message.dataStoreConnections.push($root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings} KnowledgeConnectorSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KnowledgeConnectorSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KnowledgeConnectorSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KnowledgeConnectorSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); + if (error) + return "triggerFulfillment." + error; + } + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.target = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; + } + if (message.dataStoreConnections != null && message.hasOwnProperty("dataStoreConnections")) { + if (!Array.isArray(message.dataStoreConnections)) + return "dataStoreConnections: array expected"; + for (var i = 0; i < message.dataStoreConnections.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify(message.dataStoreConnections[i]); + if (error) + return "dataStoreConnections." + error; + } + } + return null; + }; + + /** + * Creates a KnowledgeConnectorSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings} KnowledgeConnectorSettings + */ + KnowledgeConnectorSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.triggerFulfillment != null) { + if (typeof object.triggerFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.triggerFulfillment: object expected"); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); + } + if (object.targetPage != null) + message.targetPage = String(object.targetPage); + if (object.targetFlow != null) + message.targetFlow = String(object.targetFlow); + if (object.dataStoreConnections) { + if (!Array.isArray(object.dataStoreConnections)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.dataStoreConnections: array expected"); + message.dataStoreConnections = []; + for (var i = 0; i < object.dataStoreConnections.length; ++i) { + if (typeof object.dataStoreConnections[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings.dataStoreConnections: object expected"); + message.dataStoreConnections[i] = $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.fromObject(object.dataStoreConnections[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a KnowledgeConnectorSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings} message KnowledgeConnectorSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KnowledgeConnectorSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.dataStoreConnections = []; + if (options.defaults) { + object.enabled = false; + object.triggerFulfillment = null; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) + object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.target = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.target = "targetFlow"; + } + if (message.dataStoreConnections && message.dataStoreConnections.length) { + object.dataStoreConnections = []; + for (var j = 0; j < message.dataStoreConnections.length; ++j) + object.dataStoreConnections[j] = $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.toObject(message.dataStoreConnections[j], options); + } + return object; + }; + + /** + * Converts this KnowledgeConnectorSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @instance + * @returns {Object.} JSON object + */ + KnowledgeConnectorSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KnowledgeConnectorSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KnowledgeConnectorSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.KnowledgeConnectorSettings"; + }; + + return KnowledgeConnectorSettings; + })(); + + v3beta1.DataStoreConnection = (function() { + + /** + * Properties of a DataStoreConnection. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDataStoreConnection + * @property {google.cloud.dialogflow.cx.v3beta1.DataStoreType|null} [dataStoreType] DataStoreConnection dataStoreType + * @property {string|null} [dataStore] DataStoreConnection dataStore + */ + + /** + * Constructs a new DataStoreConnection. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a DataStoreConnection. + * @implements IDataStoreConnection + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection=} [properties] Properties to set + */ + function DataStoreConnection(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]]; + } + + /** + * DataStoreConnection dataStoreType. + * @member {google.cloud.dialogflow.cx.v3beta1.DataStoreType} dataStoreType + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @instance + */ + DataStoreConnection.prototype.dataStoreType = 0; + + /** + * DataStoreConnection dataStore. + * @member {string} dataStore + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @instance + */ + DataStoreConnection.prototype.dataStore = ""; + + /** + * Creates a new DataStoreConnection instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DataStoreConnection} DataStoreConnection instance + */ + DataStoreConnection.create = function create(properties) { + return new DataStoreConnection(properties); + }; + + /** + * Encodes the specified DataStoreConnection message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection} message DataStoreConnection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataStoreConnection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataStoreType != null && Object.hasOwnProperty.call(message, "dataStoreType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.dataStoreType); + if (message.dataStore != null && Object.hasOwnProperty.call(message, "dataStore")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataStore); + return writer; + }; + + /** + * Encodes the specified DataStoreConnection message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDataStoreConnection} message DataStoreConnection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataStoreConnection.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DataStoreConnection message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @static + * @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.DataStoreConnection} DataStoreConnection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataStoreConnection.decode = function decode(reader, length) { + 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.DataStoreConnection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataStoreType = reader.int32(); + break; + } + case 2: { + message.dataStore = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DataStoreConnection message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.DataStoreConnection} DataStoreConnection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataStoreConnection.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DataStoreConnection message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataStoreConnection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataStoreType != null && message.hasOwnProperty("dataStoreType")) + switch (message.dataStoreType) { + default: + return "dataStoreType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.dataStore != null && message.hasOwnProperty("dataStore")) + if (!$util.isString(message.dataStore)) + return "dataStore: string expected"; + return null; + }; + + /** + * Creates a DataStoreConnection message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.DataStoreConnection} DataStoreConnection + */ + DataStoreConnection.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection(); + switch (object.dataStoreType) { + default: + if (typeof object.dataStoreType === "number") { + message.dataStoreType = object.dataStoreType; + break; + } + break; + case "DATA_STORE_TYPE_UNSPECIFIED": + case 0: + message.dataStoreType = 0; + break; + case "PUBLIC_WEB": + case 1: + message.dataStoreType = 1; + break; + case "UNSTRUCTURED": + case 2: + message.dataStoreType = 2; + break; + case "STRUCTURED": + case 3: + message.dataStoreType = 3; + break; + } + if (object.dataStore != null) + message.dataStore = String(object.dataStore); + return message; + }; + + /** + * Creates a plain object from a DataStoreConnection message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.DataStoreConnection} message DataStoreConnection + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DataStoreConnection.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dataStoreType = options.enums === String ? "DATA_STORE_TYPE_UNSPECIFIED" : 0; + object.dataStore = ""; + } + if (message.dataStoreType != null && message.hasOwnProperty("dataStoreType")) + object.dataStoreType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.DataStoreType[message.dataStoreType] === undefined ? message.dataStoreType : $root.google.cloud.dialogflow.cx.v3beta1.DataStoreType[message.dataStoreType] : message.dataStoreType; + if (message.dataStore != null && message.hasOwnProperty("dataStore")) + object.dataStore = message.dataStore; + return object; + }; + + /** + * Converts this DataStoreConnection to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @instance + * @returns {Object.} JSON object + */ + DataStoreConnection.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DataStoreConnection + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.DataStoreConnection + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DataStoreConnection.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DataStoreConnection"; + }; + + return DataStoreConnection; + })(); + + /** + * DataStoreType enum. + * @name google.cloud.dialogflow.cx.v3beta1.DataStoreType + * @enum {number} + * @property {number} DATA_STORE_TYPE_UNSPECIFIED=0 DATA_STORE_TYPE_UNSPECIFIED value + * @property {number} PUBLIC_WEB=1 PUBLIC_WEB value + * @property {number} UNSTRUCTURED=2 UNSTRUCTURED value + * @property {number} STRUCTURED=3 STRUCTURED value + */ + v3beta1.DataStoreType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_STORE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PUBLIC_WEB"] = 1; + values[valuesById[2] = "UNSTRUCTURED"] = 2; + values[valuesById[3] = "STRUCTURED"] = 3; + return values; + })(); + + v3beta1.Fulfillment = (function() { + + /** + * Properties of a Fulfillment. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IFulfillment + * @property {Array.|null} [messages] Fulfillment messages + * @property {string|null} [webhook] Fulfillment webhook + * @property {boolean|null} [returnPartialResponses] Fulfillment returnPartialResponses + * @property {string|null} [tag] Fulfillment tag + * @property {Array.|null} [setParameterActions] Fulfillment setParameterActions + * @property {Array.|null} [conditionalCases] Fulfillment conditionalCases + * @property {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null} [advancedSettings] Fulfillment advancedSettings + * @property {boolean|null} [enableGenerativeFallback] Fulfillment enableGenerativeFallback + */ + + /** + * Constructs a new Fulfillment. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Fulfillment. + * @implements IFulfillment + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set + */ + function Fulfillment(properties) { + this.messages = []; + this.setParameterActions = []; + this.conditionalCases = []; + 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]]; + } + + /** + * Fulfillment messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @instance + */ + Fulfillment.prototype.messages = $util.emptyArray; + + /** + * Fulfillment webhook. + * @member {string} webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @instance + */ + Fulfillment.prototype.webhook = ""; + + /** + * Fulfillment returnPartialResponses. + * @member {boolean} returnPartialResponses + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @instance + */ + Fulfillment.prototype.returnPartialResponses = false; + + /** + * Fulfillment tag. + * @member {string} tag + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @instance + */ + Fulfillment.prototype.tag = ""; + + /** + * Fulfillment setParameterActions. + * @member {Array.} setParameterActions + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @instance + */ + Fulfillment.prototype.setParameterActions = $util.emptyArray; + + /** + * Fulfillment conditionalCases. + * @member {Array.} conditionalCases + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @instance + */ + Fulfillment.prototype.conditionalCases = $util.emptyArray; + + /** + * Fulfillment advancedSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @instance + */ + Fulfillment.prototype.advancedSettings = null; + + /** + * Fulfillment enableGenerativeFallback. + * @member {boolean} enableGenerativeFallback + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @instance + */ + Fulfillment.prototype.enableGenerativeFallback = false; + + /** + * Creates a new Fulfillment instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment instance + */ + Fulfillment.create = function create(properties) { + return new Fulfillment(properties); + }; + + /** + * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Fulfillment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messages != null && message.messages.length) + for (var i = 0; i < message.messages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.webhook); + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tag); + if (message.setParameterActions != null && message.setParameterActions.length) + for (var i = 0; i < message.setParameterActions.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.encode(message.setParameterActions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.conditionalCases != null && message.conditionalCases.length) + for (var i = 0; i < message.conditionalCases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.conditionalCases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.returnPartialResponses != null && Object.hasOwnProperty.call(message, "returnPartialResponses")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.returnPartialResponses); + if (message.enableGenerativeFallback != null && Object.hasOwnProperty.call(message, "enableGenerativeFallback")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.enableGenerativeFallback); + return writer; + }; + + /** + * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Fulfillment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Fulfillment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @static + * @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.Fulfillment} Fulfillment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Fulfillment.decode = function decode(reader, length) { + 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.Fulfillment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.messages && message.messages.length)) + message.messages = []; + message.messages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); + break; + } + case 2: { + message.webhook = reader.string(); + break; + } + case 8: { + message.returnPartialResponses = reader.bool(); + break; + } + case 3: { + message.tag = reader.string(); + break; + } + case 4: { + if (!(message.setParameterActions && message.setParameterActions.length)) + message.setParameterActions = []; + message.setParameterActions.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.conditionalCases && message.conditionalCases.length)) + message.conditionalCases = []; + message.conditionalCases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32())); + break; + } + case 7: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.decode(reader, reader.uint32()); + break; + } + case 12: { + message.enableGenerativeFallback = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Fulfillment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Fulfillment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Fulfillment message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Fulfillment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messages != null && message.hasOwnProperty("messages")) { + if (!Array.isArray(message.messages)) + return "messages: array expected"; + for (var i = 0; i < message.messages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.messages[i]); + if (error) + return "messages." + error; + } + } + if (message.webhook != null && message.hasOwnProperty("webhook")) + if (!$util.isString(message.webhook)) + return "webhook: string expected"; + if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) + if (typeof message.returnPartialResponses !== "boolean") + return "returnPartialResponses: boolean expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + if (message.setParameterActions != null && message.hasOwnProperty("setParameterActions")) { + if (!Array.isArray(message.setParameterActions)) + return "setParameterActions: array expected"; + for (var i = 0; i < message.setParameterActions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify(message.setParameterActions[i]); + if (error) + return "setParameterActions." + error; + } + } + if (message.conditionalCases != null && message.hasOwnProperty("conditionalCases")) { + if (!Array.isArray(message.conditionalCases)) + return "conditionalCases: array expected"; + for (var i = 0; i < message.conditionalCases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.conditionalCases[i]); + if (error) + return "conditionalCases." + error; + } + } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } + if (message.enableGenerativeFallback != null && message.hasOwnProperty("enableGenerativeFallback")) + if (typeof message.enableGenerativeFallback !== "boolean") + return "enableGenerativeFallback: boolean expected"; + return null; + }; + + /** + * Creates a Fulfillment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment + */ + Fulfillment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment(); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages: array expected"); + message.messages = []; + for (var i = 0; i < object.messages.length; ++i) { + if (typeof object.messages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); + } + } + if (object.webhook != null) + message.webhook = String(object.webhook); + if (object.returnPartialResponses != null) + message.returnPartialResponses = Boolean(object.returnPartialResponses); + if (object.tag != null) + message.tag = String(object.tag); + if (object.setParameterActions) { + if (!Array.isArray(object.setParameterActions)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: array expected"); + message.setParameterActions = []; + for (var i = 0; i < object.setParameterActions.length; ++i) { + if (typeof object.setParameterActions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: object expected"); + message.setParameterActions[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.fromObject(object.setParameterActions[i]); + } + } + if (object.conditionalCases) { + if (!Array.isArray(object.conditionalCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: array expected"); + message.conditionalCases = []; + for (var i = 0; i < object.conditionalCases.length; ++i) { + if (typeof object.conditionalCases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: object expected"); + message.conditionalCases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.conditionalCases[i]); + } + } + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.fromObject(object.advancedSettings); + } + if (object.enableGenerativeFallback != null) + message.enableGenerativeFallback = Boolean(object.enableGenerativeFallback); + return message; + }; + + /** + * Creates a plain object from a Fulfillment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment} message Fulfillment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Fulfillment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.messages = []; + object.setParameterActions = []; + object.conditionalCases = []; + } + if (options.defaults) { + object.webhook = ""; + object.tag = ""; + object.advancedSettings = null; + object.returnPartialResponses = false; + object.enableGenerativeFallback = false; + } + if (message.messages && message.messages.length) { + object.messages = []; + for (var j = 0; j < message.messages.length; ++j) + object.messages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.messages[j], options); + } + if (message.webhook != null && message.hasOwnProperty("webhook")) + object.webhook = message.webhook; + if (message.tag != null && message.hasOwnProperty("tag")) + object.tag = message.tag; + if (message.setParameterActions && message.setParameterActions.length) { + object.setParameterActions = []; + for (var j = 0; j < message.setParameterActions.length; ++j) + object.setParameterActions[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.toObject(message.setParameterActions[j], options); + } + if (message.conditionalCases && message.conditionalCases.length) { + object.conditionalCases = []; + for (var j = 0; j < message.conditionalCases.length; ++j) + object.conditionalCases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.conditionalCases[j], options); + } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.toObject(message.advancedSettings, options); + if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) + object.returnPartialResponses = message.returnPartialResponses; + if (message.enableGenerativeFallback != null && message.hasOwnProperty("enableGenerativeFallback")) + object.enableGenerativeFallback = message.enableGenerativeFallback; + return object; + }; + + /** + * Converts this Fulfillment to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @instance + * @returns {Object.} JSON object + */ + Fulfillment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Fulfillment + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Fulfillment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment"; + }; + + Fulfillment.SetParameterAction = (function() { + + /** + * Properties of a SetParameterAction. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @interface ISetParameterAction + * @property {string|null} [parameter] SetParameterAction parameter + * @property {google.protobuf.IValue|null} [value] SetParameterAction value + */ + + /** + * Constructs a new SetParameterAction. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @classdesc Represents a SetParameterAction. + * @implements ISetParameterAction + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set + */ + function SetParameterAction(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]]; + } + + /** + * SetParameterAction parameter. + * @member {string} parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @instance + */ + SetParameterAction.prototype.parameter = ""; + + /** + * SetParameterAction value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @instance + */ + SetParameterAction.prototype.value = null; + + /** + * Creates a new SetParameterAction instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction instance + */ + SetParameterAction.create = function create(properties) { + return new SetParameterAction(properties); + }; + + /** + * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetParameterAction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameter != null && Object.hasOwnProperty.call(message, "parameter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameter); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetParameterAction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetParameterAction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @static + * @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.Fulfillment.SetParameterAction} SetParameterAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetParameterAction.decode = function decode(reader, length) { + 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.Fulfillment.SetParameterAction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parameter = reader.string(); + break; + } + case 2: { + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetParameterAction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetParameterAction message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetParameterAction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameter != null && message.hasOwnProperty("parameter")) + if (!$util.isString(message.parameter)) + return "parameter: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + /** + * Creates a SetParameterAction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction + */ + SetParameterAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction(); + if (object.parameter != null) + message.parameter = String(object.parameter); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); + } + return message; + }; + + /** + * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} message SetParameterAction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetParameterAction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parameter = ""; + object.value = null; + } + if (message.parameter != null && message.hasOwnProperty("parameter")) + object.parameter = message.parameter; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); + return object; + }; + + /** + * Converts this SetParameterAction to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @instance + * @returns {Object.} JSON object + */ + SetParameterAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetParameterAction + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetParameterAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction"; + }; + + return SetParameterAction; + })(); + + Fulfillment.ConditionalCases = (function() { + + /** + * Properties of a ConditionalCases. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @interface IConditionalCases + * @property {Array.|null} [cases] ConditionalCases cases + */ + + /** + * Constructs a new ConditionalCases. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @classdesc Represents a ConditionalCases. + * @implements IConditionalCases + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set + */ + function ConditionalCases(properties) { + this.cases = []; + 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]]; + } + + /** + * ConditionalCases cases. + * @member {Array.} cases + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @instance + */ + ConditionalCases.prototype.cases = $util.emptyArray; + + /** + * Creates a new ConditionalCases instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases instance + */ + ConditionalCases.create = function create(properties) { + return new ConditionalCases(properties); + }; + + /** + * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConditionalCases.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cases != null && message.cases.length) + for (var i = 0; i < message.cases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.encode(message.cases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConditionalCases.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConditionalCases message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @static + * @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.Fulfillment.ConditionalCases} ConditionalCases + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConditionalCases.decode = function decode(reader, length) { + 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.Fulfillment.ConditionalCases(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.cases && message.cases.length)) + message.cases = []; + message.cases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConditionalCases.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConditionalCases message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConditionalCases.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cases != null && message.hasOwnProperty("cases")) { + if (!Array.isArray(message.cases)) + return "cases: array expected"; + for (var i = 0; i < message.cases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify(message.cases[i]); + if (error) + return "cases." + error; + } + } + return null; + }; + + /** + * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases + */ + ConditionalCases.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases(); + if (object.cases) { + if (!Array.isArray(object.cases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: array expected"); + message.cases = []; + for (var i = 0; i < object.cases.length; ++i) { + if (typeof object.cases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: object expected"); + message.cases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.fromObject(object.cases[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} message ConditionalCases + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConditionalCases.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.cases = []; + if (message.cases && message.cases.length) { + object.cases = []; + for (var j = 0; j < message.cases.length; ++j) + object.cases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.toObject(message.cases[j], options); + } + return object; + }; + + /** + * Converts this ConditionalCases to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @instance + * @returns {Object.} JSON object + */ + ConditionalCases.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConditionalCases + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConditionalCases.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases"; + }; + + ConditionalCases.Case = (function() { + + /** + * Properties of a Case. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @interface ICase + * @property {string|null} [condition] Case condition + * @property {Array.|null} [caseContent] Case caseContent + */ + + /** + * Constructs a new Case. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @classdesc Represents a Case. + * @implements ICase + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set + */ + function Case(properties) { + this.caseContent = []; + 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]]; + } + + /** + * Case condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @instance + */ + Case.prototype.condition = ""; + + /** + * Case caseContent. + * @member {Array.} caseContent + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @instance + */ + Case.prototype.caseContent = $util.emptyArray; + + /** + * Creates a new Case instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case instance + */ + Case.create = function create(properties) { + return new Case(properties); + }; + + /** + * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Case.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.caseContent != null && message.caseContent.length) + for (var i = 0; i < message.caseContent.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.encode(message.caseContent[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Case.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Case message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @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.Fulfillment.ConditionalCases.Case} Case + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Case.decode = function decode(reader, length) { + 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.Fulfillment.ConditionalCases.Case(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.condition = reader.string(); + break; + } + case 2: { + if (!(message.caseContent && message.caseContent.length)) + message.caseContent = []; + message.caseContent.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Case message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Case.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Case message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Case.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.caseContent != null && message.hasOwnProperty("caseContent")) { + if (!Array.isArray(message.caseContent)) + return "caseContent: array expected"; + for (var i = 0; i < message.caseContent.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify(message.caseContent[i]); + if (error) + return "caseContent." + error; + } + } + return null; + }; + + /** + * Creates a Case message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case + */ + Case.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case(); + if (object.condition != null) + message.condition = String(object.condition); + if (object.caseContent) { + if (!Array.isArray(object.caseContent)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: array expected"); + message.caseContent = []; + for (var i = 0; i < object.caseContent.length; ++i) { + if (typeof object.caseContent[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: object expected"); + message.caseContent[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.fromObject(object.caseContent[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Case message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} message Case + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Case.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.caseContent = []; + if (options.defaults) + object.condition = ""; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.caseContent && message.caseContent.length) { + object.caseContent = []; + for (var j = 0; j < message.caseContent.length; ++j) + object.caseContent[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.toObject(message.caseContent[j], options); + } + return object; + }; + + /** + * Converts this Case to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @instance + * @returns {Object.} JSON object + */ + Case.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Case + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Case.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case"; + }; + + Case.CaseContent = (function() { + + /** + * Properties of a CaseContent. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @interface ICaseContent + * @property {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null} [message] CaseContent message + * @property {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null} [additionalCases] CaseContent additionalCases + */ + + /** + * Constructs a new CaseContent. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @classdesc Represents a CaseContent. + * @implements ICaseContent + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set + */ + function CaseContent(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]]; + } + + /** + * CaseContent message. + * @member {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null|undefined} message + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + */ + CaseContent.prototype.message = null; + + /** + * CaseContent additionalCases. + * @member {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null|undefined} additionalCases + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + */ + CaseContent.prototype.additionalCases = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CaseContent casesOrMessage. + * @member {"message"|"additionalCases"|undefined} casesOrMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + */ + Object.defineProperty(CaseContent.prototype, "casesOrMessage", { + get: $util.oneOfGetter($oneOfFields = ["message", "additionalCases"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CaseContent instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent instance + */ + CaseContent.create = function create(properties) { + return new CaseContent(properties); + }; + + /** + * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CaseContent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.message, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.additionalCases != null && Object.hasOwnProperty.call(message, "additionalCases")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.additionalCases, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CaseContent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CaseContent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @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.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CaseContent.decode = function decode(reader, length) { + 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.Fulfillment.ConditionalCases.Case.CaseContent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32()); + break; + } + case 2: { + message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CaseContent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CaseContent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CaseContent message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CaseContent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.message != null && message.hasOwnProperty("message")) { + properties.casesOrMessage = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.message); + if (error) + return "message." + error; + } + } + if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { + if (properties.casesOrMessage === 1) + return "casesOrMessage: multiple values"; + properties.casesOrMessage = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.additionalCases); + if (error) + return "additionalCases." + error; + } + } + return null; + }; + + /** + * Creates a CaseContent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + */ + CaseContent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent(); + if (object.message != null) { + if (typeof object.message !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.message: object expected"); + message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.message); + } + if (object.additionalCases != null) { + if (typeof object.additionalCases !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.additionalCases: object expected"); + message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.additionalCases); + } + return message; + }; + + /** + * Creates a plain object from a CaseContent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} message CaseContent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CaseContent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.message != null && message.hasOwnProperty("message")) { + object.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.message, options); + if (options.oneofs) + object.casesOrMessage = "message"; + } + if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { + object.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.additionalCases, options); + if (options.oneofs) + object.casesOrMessage = "additionalCases"; + } + return object; + }; + + /** + * Converts this CaseContent to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + * @returns {Object.} JSON object + */ + CaseContent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CaseContent + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CaseContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent"; + }; + + return CaseContent; + })(); + + return Case; + })(); + + return ConditionalCases; + })(); + + return Fulfillment; + })(); + + v3beta1.ResponseMessage = (function() { + + /** + * Properties of a ResponseMessage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IResponseMessage + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null} [text] ResponseMessage text + * @property {google.protobuf.IStruct|null} [payload] ResponseMessage payload + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null} [conversationSuccess] ResponseMessage conversationSuccess + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null} [outputAudioText] ResponseMessage outputAudioText + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null} [liveAgentHandoff] ResponseMessage liveAgentHandoff + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null} [endInteraction] ResponseMessage endInteraction + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null} [playAudio] ResponseMessage playAudio + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null} [mixedAudio] ResponseMessage mixedAudio + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null} [telephonyTransferCall] ResponseMessage telephonyTransferCall + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard|null} [knowledgeInfoCard] ResponseMessage knowledgeInfoCard + * @property {string|null} [channel] ResponseMessage channel + */ + + /** + * Constructs a new ResponseMessage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ResponseMessage. + * @implements IResponseMessage + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set + */ + function ResponseMessage(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]]; + } + + /** + * ResponseMessage text. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.text = null; + + /** + * ResponseMessage payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.payload = null; + + /** + * ResponseMessage conversationSuccess. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null|undefined} conversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.conversationSuccess = null; + + /** + * ResponseMessage outputAudioText. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null|undefined} outputAudioText + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.outputAudioText = null; + + /** + * ResponseMessage liveAgentHandoff. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null|undefined} liveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.liveAgentHandoff = null; + + /** + * ResponseMessage endInteraction. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null|undefined} endInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.endInteraction = null; + + /** + * ResponseMessage playAudio. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null|undefined} playAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.playAudio = null; + + /** + * ResponseMessage mixedAudio. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null|undefined} mixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.mixedAudio = null; + + /** + * ResponseMessage telephonyTransferCall. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null|undefined} telephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.telephonyTransferCall = null; + + /** + * ResponseMessage knowledgeInfoCard. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard|null|undefined} knowledgeInfoCard + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.knowledgeInfoCard = null; + + /** + * ResponseMessage channel. + * @member {string} channel + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.channel = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ResponseMessage message. + * @member {"text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"|"knowledgeInfoCard"|undefined} message + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + Object.defineProperty(ResponseMessage.prototype, "message", { + get: $util.oneOfGetter($oneOfFields = ["text", "payload", "conversationSuccess", "outputAudioText", "liveAgentHandoff", "endInteraction", "playAudio", "mixedAudio", "telephonyTransferCall", "knowledgeInfoCard"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResponseMessage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage instance + */ + ResponseMessage.create = function create(properties) { + return new ResponseMessage(properties); + }; + + /** + * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResponseMessage.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.ResponseMessage.Text.encode(message.text, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudioText != null && Object.hasOwnProperty.call(message, "outputAudioText")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.encode(message.outputAudioText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.conversationSuccess != null && Object.hasOwnProperty.call(message, "conversationSuccess")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.encode(message.conversationSuccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.liveAgentHandoff != null && Object.hasOwnProperty.call(message, "liveAgentHandoff")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.encode(message.liveAgentHandoff, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.endInteraction != null && Object.hasOwnProperty.call(message, "endInteraction")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.encode(message.endInteraction, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.playAudio != null && Object.hasOwnProperty.call(message, "playAudio")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.encode(message.playAudio, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.mixedAudio != null && Object.hasOwnProperty.call(message, "mixedAudio")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.encode(message.mixedAudio, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.telephonyTransferCall != null && Object.hasOwnProperty.call(message, "telephonyTransferCall")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.encode(message.telephonyTransferCall, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.channel); + if (message.knowledgeInfoCard != null && Object.hasOwnProperty.call(message, "knowledgeInfoCard")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.encode(message.knowledgeInfoCard, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResponseMessage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResponseMessage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @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.ResponseMessage} ResponseMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResponseMessage.decode = function decode(reader, length) { + 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.ResponseMessage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.decode(reader, reader.uint32()); + break; + } + case 2: { + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 9: { + message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.decode(reader, reader.uint32()); + break; + } + case 8: { + message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.decode(reader, reader.uint32()); + break; + } + case 10: { + message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.decode(reader, reader.uint32()); + break; + } + case 11: { + message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.decode(reader, reader.uint32()); + break; + } + case 12: { + message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.decode(reader, reader.uint32()); + break; + } + case 13: { + message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.decode(reader, reader.uint32()); + break; + } + case 18: { + message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.decode(reader, reader.uint32()); + break; + } + case 20: { + message.knowledgeInfoCard = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.decode(reader, reader.uint32()); + break; + } + case 19: { + message.channel = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResponseMessage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResponseMessage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResponseMessage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify(message.text); + if (error) + return "text." + error; + } + } + if (message.payload != null && message.hasOwnProperty("payload")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; + } + } + if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify(message.conversationSuccess); + if (error) + return "conversationSuccess." + error; + } + } + if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify(message.outputAudioText); + if (error) + return "outputAudioText." + error; + } + } + if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify(message.liveAgentHandoff); + if (error) + return "liveAgentHandoff." + error; + } + } + if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify(message.endInteraction); + if (error) + return "endInteraction." + error; + } + } + if (message.playAudio != null && message.hasOwnProperty("playAudio")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify(message.playAudio); + if (error) + return "playAudio." + error; + } + } + if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify(message.mixedAudio); + if (error) + return "mixedAudio." + error; + } + } + if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify(message.telephonyTransferCall); + if (error) + return "telephonyTransferCall." + error; + } + } + if (message.knowledgeInfoCard != null && message.hasOwnProperty("knowledgeInfoCard")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify(message.knowledgeInfoCard); + if (error) + return "knowledgeInfoCard." + error; + } + } + if (message.channel != null && message.hasOwnProperty("channel")) + if (!$util.isString(message.channel)) + return "channel: string expected"; + return null; + }; + + /** + * Creates a ResponseMessage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + */ + ResponseMessage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage(); + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.text: object expected"); + message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.fromObject(object.text); + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.conversationSuccess != null) { + if (typeof object.conversationSuccess !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.conversationSuccess: object expected"); + message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.fromObject(object.conversationSuccess); + } + if (object.outputAudioText != null) { + if (typeof object.outputAudioText !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.outputAudioText: object expected"); + message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.fromObject(object.outputAudioText); + } + if (object.liveAgentHandoff != null) { + if (typeof object.liveAgentHandoff !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.liveAgentHandoff: object expected"); + message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.fromObject(object.liveAgentHandoff); + } + if (object.endInteraction != null) { + if (typeof object.endInteraction !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.endInteraction: object expected"); + message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.fromObject(object.endInteraction); + } + if (object.playAudio != null) { + if (typeof object.playAudio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.playAudio: object expected"); + message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.fromObject(object.playAudio); + } + if (object.mixedAudio != null) { + if (typeof object.mixedAudio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.mixedAudio: object expected"); + message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.fromObject(object.mixedAudio); + } + if (object.telephonyTransferCall != null) { + if (typeof object.telephonyTransferCall !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.telephonyTransferCall: object expected"); + message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.fromObject(object.telephonyTransferCall); + } + if (object.knowledgeInfoCard != null) { + if (typeof object.knowledgeInfoCard !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.knowledgeInfoCard: object expected"); + message.knowledgeInfoCard = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.fromObject(object.knowledgeInfoCard); + } + if (object.channel != null) + message.channel = String(object.channel); + return message; + }; + + /** + * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} message ResponseMessage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResponseMessage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.channel = ""; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.toObject(message.text, options); + if (options.oneofs) + object.message = "text"; + } + if (message.payload != null && message.hasOwnProperty("payload")) { + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (options.oneofs) + object.message = "payload"; + } + if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { + object.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.toObject(message.outputAudioText, options); + if (options.oneofs) + object.message = "outputAudioText"; + } + if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { + object.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.toObject(message.conversationSuccess, options); + if (options.oneofs) + object.message = "conversationSuccess"; + } + if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { + object.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.toObject(message.liveAgentHandoff, options); + if (options.oneofs) + object.message = "liveAgentHandoff"; + } + if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { + object.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.toObject(message.endInteraction, options); + if (options.oneofs) + object.message = "endInteraction"; + } + if (message.playAudio != null && message.hasOwnProperty("playAudio")) { + object.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.toObject(message.playAudio, options); + if (options.oneofs) + object.message = "playAudio"; + } + if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { + object.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.toObject(message.mixedAudio, options); + if (options.oneofs) + object.message = "mixedAudio"; + } + if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { + object.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.toObject(message.telephonyTransferCall, options); + if (options.oneofs) + object.message = "telephonyTransferCall"; + } + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = message.channel; + if (message.knowledgeInfoCard != null && message.hasOwnProperty("knowledgeInfoCard")) { + object.knowledgeInfoCard = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.toObject(message.knowledgeInfoCard, options); + if (options.oneofs) + object.message = "knowledgeInfoCard"; + } + return object; + }; + + /** + * Converts this ResponseMessage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + * @returns {Object.} JSON object + */ + ResponseMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResponseMessage + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResponseMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage"; + }; + + ResponseMessage.Text = (function() { + + /** + * Properties of a Text. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IText + * @property {Array.|null} [text] Text text + * @property {boolean|null} [allowPlaybackInterruption] Text allowPlaybackInterruption + */ + + /** + * Constructs a new Text. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a Text. + * @implements IText + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set + */ + function Text(properties) { + this.text = []; + 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]]; + } + + /** + * Text text. + * @member {Array.} text + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @instance + */ + Text.prototype.text = $util.emptyArray; + + /** + * Text allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @instance + */ + Text.prototype.allowPlaybackInterruption = false; + + /** + * Creates a new Text instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text instance + */ + Text.create = function create(properties) { + return new Text(properties); + }; + + /** + * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Text.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && message.text.length) + for (var i = 0; i < message.text.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text[i]); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); + return writer; + }; + + /** + * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Text.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Text message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @static + * @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.ResponseMessage.Text} Text + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Text.decode = function decode(reader, length) { + 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.ResponseMessage.Text(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.text && message.text.length)) + message.text = []; + message.text.push(reader.string()); + break; + } + case 2: { + message.allowPlaybackInterruption = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Text message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Text.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Text message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Text.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) { + if (!Array.isArray(message.text)) + return "text: array expected"; + for (var i = 0; i < message.text.length; ++i) + if (!$util.isString(message.text[i])) + return "text: string[] expected"; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; + return null; + }; + + /** + * Creates a Text message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text + */ + Text.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text(); + if (object.text) { + if (!Array.isArray(object.text)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.text: array expected"); + message.text = []; + for (var i = 0; i < object.text.length; ++i) + message.text[i] = String(object.text[i]); + } + if (object.allowPlaybackInterruption != null) + message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); + return message; + }; + + /** + * Creates a plain object from a Text message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} message Text + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Text.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.text = []; + if (options.defaults) + object.allowPlaybackInterruption = false; + if (message.text && message.text.length) { + object.text = []; + for (var j = 0; j < message.text.length; ++j) + object.text[j] = message.text[j]; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + object.allowPlaybackInterruption = message.allowPlaybackInterruption; + return object; + }; + + /** + * Converts this Text to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @instance + * @returns {Object.} JSON object + */ + Text.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Text + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Text.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text"; + }; + + return Text; + })(); + + ResponseMessage.LiveAgentHandoff = (function() { + + /** + * Properties of a LiveAgentHandoff. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface ILiveAgentHandoff + * @property {google.protobuf.IStruct|null} [metadata] LiveAgentHandoff metadata + */ + + /** + * Constructs a new LiveAgentHandoff. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a LiveAgentHandoff. + * @implements ILiveAgentHandoff + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set + */ + function LiveAgentHandoff(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]]; + } + + /** + * LiveAgentHandoff metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @instance + */ + LiveAgentHandoff.prototype.metadata = null; + + /** + * Creates a new LiveAgentHandoff instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff instance + */ + LiveAgentHandoff.create = function create(properties) { + return new LiveAgentHandoff(properties); + }; + + /** + * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiveAgentHandoff.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiveAgentHandoff.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LiveAgentHandoff message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @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.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiveAgentHandoff.decode = function decode(reader, length) { + 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.ResponseMessage.LiveAgentHandoff(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiveAgentHandoff.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LiveAgentHandoff message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiveAgentHandoff.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates a LiveAgentHandoff message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + */ + LiveAgentHandoff.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} message LiveAgentHandoff + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LiveAgentHandoff.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this LiveAgentHandoff to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @instance + * @returns {Object.} JSON object + */ + LiveAgentHandoff.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LiveAgentHandoff + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LiveAgentHandoff.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff"; + }; + + return LiveAgentHandoff; + })(); + + ResponseMessage.ConversationSuccess = (function() { + + /** + * Properties of a ConversationSuccess. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IConversationSuccess + * @property {google.protobuf.IStruct|null} [metadata] ConversationSuccess metadata + */ + + /** + * Constructs a new ConversationSuccess. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a ConversationSuccess. + * @implements IConversationSuccess + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set + */ + function ConversationSuccess(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]]; + } + + /** + * ConversationSuccess metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @instance + */ + ConversationSuccess.prototype.metadata = null; + + /** + * Creates a new ConversationSuccess instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess instance + */ + ConversationSuccess.create = function create(properties) { + return new ConversationSuccess(properties); + }; + + /** + * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversationSuccess.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversationSuccess.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConversationSuccess message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @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.ResponseMessage.ConversationSuccess} ConversationSuccess + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversationSuccess.decode = function decode(reader, length) { + 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.ResponseMessage.ConversationSuccess(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversationSuccess.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConversationSuccess message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConversationSuccess.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates a ConversationSuccess message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess + */ + ConversationSuccess.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} message ConversationSuccess + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConversationSuccess.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this ConversationSuccess to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @instance + * @returns {Object.} JSON object + */ + ConversationSuccess.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConversationSuccess + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConversationSuccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess"; + }; + + return ConversationSuccess; + })(); + + ResponseMessage.OutputAudioText = (function() { + + /** + * Properties of an OutputAudioText. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IOutputAudioText + * @property {string|null} [text] OutputAudioText text + * @property {string|null} [ssml] OutputAudioText ssml + * @property {boolean|null} [allowPlaybackInterruption] OutputAudioText allowPlaybackInterruption + */ + + /** + * Constructs a new OutputAudioText. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents an OutputAudioText. + * @implements IOutputAudioText + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set + */ + function OutputAudioText(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]]; + } + + /** + * OutputAudioText text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @instance + */ + OutputAudioText.prototype.text = null; + + /** + * OutputAudioText ssml. + * @member {string|null|undefined} ssml + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @instance + */ + OutputAudioText.prototype.ssml = null; + + /** + * OutputAudioText allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @instance + */ + OutputAudioText.prototype.allowPlaybackInterruption = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * OutputAudioText source. + * @member {"text"|"ssml"|undefined} source + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @instance + */ + Object.defineProperty(OutputAudioText.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["text", "ssml"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new OutputAudioText instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText instance + */ + OutputAudioText.create = function create(properties) { + return new OutputAudioText(properties); + }; + + /** + * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputAudioText.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.ssml != null && Object.hasOwnProperty.call(message, "ssml")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.ssml); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); + return writer; + }; + + /** + * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputAudioText.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OutputAudioText message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @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.ResponseMessage.OutputAudioText} OutputAudioText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputAudioText.decode = function decode(reader, length) { + 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.ResponseMessage.OutputAudioText(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = reader.string(); + break; + } + case 2: { + message.ssml = reader.string(); + break; + } + case 3: { + message.allowPlaybackInterruption = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputAudioText.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OutputAudioText message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputAudioText.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.source = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + if (message.ssml != null && message.hasOwnProperty("ssml")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + if (!$util.isString(message.ssml)) + return "ssml: string expected"; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; + return null; + }; + + /** + * Creates an OutputAudioText message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText + */ + OutputAudioText.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText(); + if (object.text != null) + message.text = String(object.text); + if (object.ssml != null) + message.ssml = String(object.ssml); + if (object.allowPlaybackInterruption != null) + message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); + return message; + }; + + /** + * Creates a plain object from an OutputAudioText message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} message OutputAudioText + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OutputAudioText.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.allowPlaybackInterruption = false; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = message.text; + if (options.oneofs) + object.source = "text"; + } + if (message.ssml != null && message.hasOwnProperty("ssml")) { + object.ssml = message.ssml; + if (options.oneofs) + object.source = "ssml"; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + object.allowPlaybackInterruption = message.allowPlaybackInterruption; + return object; + }; + + /** + * Converts this OutputAudioText to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @instance + * @returns {Object.} JSON object + */ + OutputAudioText.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OutputAudioText + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OutputAudioText.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText"; + }; + + return OutputAudioText; + })(); + + ResponseMessage.EndInteraction = (function() { + + /** + * Properties of an EndInteraction. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IEndInteraction + */ + + /** + * Constructs a new EndInteraction. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents an EndInteraction. + * @implements IEndInteraction + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set + */ + function EndInteraction(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 EndInteraction instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction instance + */ + EndInteraction.create = function create(properties) { + return new EndInteraction(properties); + }; + + /** + * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EndInteraction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EndInteraction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EndInteraction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @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.ResponseMessage.EndInteraction} EndInteraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EndInteraction.decode = function decode(reader, length) { + 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.ResponseMessage.EndInteraction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EndInteraction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EndInteraction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EndInteraction message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EndInteraction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction + */ + EndInteraction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction) + return object; + return new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction(); + }; + + /** + * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} message EndInteraction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EndInteraction.toObject = function toObject() { + return {}; + }; + + /** + * Converts this EndInteraction to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @instance + * @returns {Object.} JSON object + */ + EndInteraction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EndInteraction + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EndInteraction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction"; + }; + + return EndInteraction; + })(); + + ResponseMessage.PlayAudio = (function() { + + /** + * Properties of a PlayAudio. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IPlayAudio + * @property {string|null} [audioUri] PlayAudio audioUri + * @property {boolean|null} [allowPlaybackInterruption] PlayAudio allowPlaybackInterruption + */ + + /** + * Constructs a new PlayAudio. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a PlayAudio. + * @implements IPlayAudio + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set + */ + function PlayAudio(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]]; + } + + /** + * PlayAudio audioUri. + * @member {string} audioUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @instance + */ + PlayAudio.prototype.audioUri = ""; + + /** + * PlayAudio allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @instance + */ + PlayAudio.prototype.allowPlaybackInterruption = false; + + /** + * Creates a new PlayAudio instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio instance + */ + PlayAudio.create = function create(properties) { + return new PlayAudio(properties); + }; + + /** + * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PlayAudio.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audioUri != null && Object.hasOwnProperty.call(message, "audioUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.audioUri); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); + return writer; + }; + + /** + * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PlayAudio.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PlayAudio message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @static + * @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.ResponseMessage.PlayAudio} PlayAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PlayAudio.decode = function decode(reader, length) { + 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.ResponseMessage.PlayAudio(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.audioUri = reader.string(); + break; + } + case 2: { + message.allowPlaybackInterruption = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PlayAudio message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PlayAudio.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PlayAudio message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PlayAudio.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.audioUri != null && message.hasOwnProperty("audioUri")) + if (!$util.isString(message.audioUri)) + return "audioUri: string expected"; + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; + return null; + }; + + /** + * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio + */ + PlayAudio.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio(); + if (object.audioUri != null) + message.audioUri = String(object.audioUri); + if (object.allowPlaybackInterruption != null) + message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); + return message; + }; + + /** + * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} message PlayAudio + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PlayAudio.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.audioUri = ""; + object.allowPlaybackInterruption = false; + } + if (message.audioUri != null && message.hasOwnProperty("audioUri")) + object.audioUri = message.audioUri; + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + object.allowPlaybackInterruption = message.allowPlaybackInterruption; + return object; + }; + + /** + * Converts this PlayAudio to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @instance + * @returns {Object.} JSON object + */ + PlayAudio.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PlayAudio + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PlayAudio.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio"; + }; + + return PlayAudio; + })(); + + ResponseMessage.MixedAudio = (function() { + + /** + * Properties of a MixedAudio. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IMixedAudio + * @property {Array.|null} [segments] MixedAudio segments + */ + + /** + * Constructs a new MixedAudio. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a MixedAudio. + * @implements IMixedAudio + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set + */ + function MixedAudio(properties) { + this.segments = []; + 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]]; + } + + /** + * MixedAudio segments. + * @member {Array.} segments + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @instance + */ + MixedAudio.prototype.segments = $util.emptyArray; + + /** + * Creates a new MixedAudio instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio instance + */ + MixedAudio.create = function create(properties) { + return new MixedAudio(properties); + }; + + /** + * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MixedAudio.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.segments != null && message.segments.length) + for (var i = 0; i < message.segments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MixedAudio.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MixedAudio message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @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.ResponseMessage.MixedAudio} MixedAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MixedAudio.decode = function decode(reader, length) { + 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.ResponseMessage.MixedAudio(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.segments && message.segments.length)) + message.segments = []; + message.segments.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MixedAudio message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MixedAudio.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MixedAudio message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MixedAudio.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.segments != null && message.hasOwnProperty("segments")) { + if (!Array.isArray(message.segments)) + return "segments: array expected"; + for (var i = 0; i < message.segments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify(message.segments[i]); + if (error) + return "segments." + error; + } + } + return null; + }; + + /** + * Creates a MixedAudio message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + */ + MixedAudio.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio(); + if (object.segments) { + if (!Array.isArray(object.segments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: array expected"); + message.segments = []; + for (var i = 0; i < object.segments.length; ++i) { + if (typeof object.segments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: object expected"); + message.segments[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.fromObject(object.segments[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MixedAudio message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} message MixedAudio + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MixedAudio.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.segments = []; + if (message.segments && message.segments.length) { + object.segments = []; + for (var j = 0; j < message.segments.length; ++j) + object.segments[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.toObject(message.segments[j], options); + } + return object; + }; + + /** + * Converts this MixedAudio to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @instance + * @returns {Object.} JSON object + */ + MixedAudio.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MixedAudio + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MixedAudio.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio"; + }; + + MixedAudio.Segment = (function() { + + /** + * Properties of a Segment. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @interface ISegment + * @property {Uint8Array|null} [audio] Segment audio + * @property {string|null} [uri] Segment uri + * @property {boolean|null} [allowPlaybackInterruption] Segment allowPlaybackInterruption + */ + + /** + * Constructs a new Segment. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @classdesc Represents a Segment. + * @implements ISegment + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set + */ + function Segment(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]]; + } + + /** + * Segment audio. + * @member {Uint8Array|null|undefined} audio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + */ + Segment.prototype.audio = null; + + /** + * Segment uri. + * @member {string|null|undefined} uri + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + */ + Segment.prototype.uri = null; + + /** + * Segment allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + */ + Segment.prototype.allowPlaybackInterruption = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Segment content. + * @member {"audio"|"uri"|undefined} content + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + */ + Object.defineProperty(Segment.prototype, "content", { + get: $util.oneOfGetter($oneOfFields = ["audio", "uri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Segment instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment instance + */ + Segment.create = function create(properties) { + return new Segment(properties); + }; + + /** + * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Segment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.audio); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); + return writer; + }; + + /** + * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Segment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Segment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @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.ResponseMessage.MixedAudio.Segment} Segment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Segment.decode = function decode(reader, length) { + 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.ResponseMessage.MixedAudio.Segment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.audio = reader.bytes(); + break; + } + case 2: { + message.uri = reader.string(); + break; + } + case 3: { + message.allowPlaybackInterruption = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Segment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Segment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Segment message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Segment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.audio != null && message.hasOwnProperty("audio")) { + properties.content = 1; + if (!(message.audio && typeof message.audio.length === "number" || $util.isString(message.audio))) + return "audio: buffer expected"; + } + if (message.uri != null && message.hasOwnProperty("uri")) { + if (properties.content === 1) + return "content: multiple values"; + properties.content = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; + return null; + }; + + /** + * Creates a Segment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + */ + Segment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment(); + 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 >= 0) + message.audio = object.audio; + if (object.uri != null) + message.uri = String(object.uri); + if (object.allowPlaybackInterruption != null) + message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); + return message; + }; + + /** + * Creates a plain object from a Segment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} message Segment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Segment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.allowPlaybackInterruption = false; + 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 (options.oneofs) + object.content = "audio"; + } + if (message.uri != null && message.hasOwnProperty("uri")) { + object.uri = message.uri; + if (options.oneofs) + object.content = "uri"; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + object.allowPlaybackInterruption = message.allowPlaybackInterruption; + return object; + }; + + /** + * Converts this Segment to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @instance + * @returns {Object.} JSON object + */ + Segment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Segment + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Segment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment"; + }; + + return Segment; + })(); + + return MixedAudio; + })(); + + ResponseMessage.TelephonyTransferCall = (function() { + + /** + * Properties of a TelephonyTransferCall. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface ITelephonyTransferCall + * @property {string|null} [phoneNumber] TelephonyTransferCall phoneNumber + */ + + /** + * Constructs a new TelephonyTransferCall. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a TelephonyTransferCall. + * @implements ITelephonyTransferCall + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall=} [properties] Properties to set + */ + function TelephonyTransferCall(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]]; + } + + /** + * TelephonyTransferCall phoneNumber. + * @member {string|null|undefined} phoneNumber + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @instance + */ + TelephonyTransferCall.prototype.phoneNumber = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TelephonyTransferCall endpoint. + * @member {"phoneNumber"|undefined} endpoint + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @instance + */ + Object.defineProperty(TelephonyTransferCall.prototype, "endpoint", { + get: $util.oneOfGetter($oneOfFields = ["phoneNumber"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TelephonyTransferCall instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall instance + */ + TelephonyTransferCall.create = function create(properties) { + return new TelephonyTransferCall(properties); + }; + + /** + * Encodes the specified TelephonyTransferCall message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall} message TelephonyTransferCall message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TelephonyTransferCall.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.phoneNumber); + return writer; + }; + + /** + * Encodes the specified TelephonyTransferCall message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall} message TelephonyTransferCall message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TelephonyTransferCall.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TelephonyTransferCall message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @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.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TelephonyTransferCall.decode = function decode(reader, length) { + 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.ResponseMessage.TelephonyTransferCall(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.phoneNumber = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TelephonyTransferCall message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TelephonyTransferCall.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TelephonyTransferCall message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TelephonyTransferCall.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { + properties.endpoint = 1; + if (!$util.isString(message.phoneNumber)) + return "phoneNumber: string expected"; + } + return null; + }; + + /** + * Creates a TelephonyTransferCall message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + */ + TelephonyTransferCall.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall(); + if (object.phoneNumber != null) + message.phoneNumber = String(object.phoneNumber); + return message; + }; + + /** + * Creates a plain object from a TelephonyTransferCall message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} message TelephonyTransferCall + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TelephonyTransferCall.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { + object.phoneNumber = message.phoneNumber; + if (options.oneofs) + object.endpoint = "phoneNumber"; + } + return object; + }; + + /** + * Converts this TelephonyTransferCall to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @instance + * @returns {Object.} JSON object + */ + TelephonyTransferCall.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TelephonyTransferCall + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TelephonyTransferCall.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall"; + }; + + return TelephonyTransferCall; + })(); + + ResponseMessage.KnowledgeInfoCard = (function() { + + /** + * Properties of a KnowledgeInfoCard. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IKnowledgeInfoCard + */ + + /** + * Constructs a new KnowledgeInfoCard. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a KnowledgeInfoCard. + * @implements IKnowledgeInfoCard + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard=} [properties] Properties to set + */ + function KnowledgeInfoCard(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 KnowledgeInfoCard instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard} KnowledgeInfoCard instance + */ + KnowledgeInfoCard.create = function create(properties) { + return new KnowledgeInfoCard(properties); + }; + + /** + * Encodes the specified KnowledgeInfoCard message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard} message KnowledgeInfoCard message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KnowledgeInfoCard.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified KnowledgeInfoCard message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard} message KnowledgeInfoCard message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KnowledgeInfoCard.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a KnowledgeInfoCard message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @static + * @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.ResponseMessage.KnowledgeInfoCard} KnowledgeInfoCard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KnowledgeInfoCard.decode = function decode(reader, length) { + 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.ResponseMessage.KnowledgeInfoCard(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a KnowledgeInfoCard message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard} KnowledgeInfoCard + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KnowledgeInfoCard.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KnowledgeInfoCard message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KnowledgeInfoCard.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a KnowledgeInfoCard message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard} KnowledgeInfoCard + */ + KnowledgeInfoCard.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard) + return object; + return new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard(); + }; + + /** + * Creates a plain object from a KnowledgeInfoCard message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard} message KnowledgeInfoCard + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KnowledgeInfoCard.toObject = function toObject() { + return {}; + }; + + /** + * Converts this KnowledgeInfoCard to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @instance + * @returns {Object.} JSON object + */ + KnowledgeInfoCard.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KnowledgeInfoCard + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KnowledgeInfoCard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard"; + }; + + return KnowledgeInfoCard; + })(); + + return ResponseMessage; + })(); + + v3beta1.ValidationMessage = (function() { + + /** + * Properties of a ValidationMessage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IValidationMessage + * @property {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|null} [resourceType] ValidationMessage resourceType + * @property {Array.|null} [resources] ValidationMessage resources + * @property {Array.|null} [resourceNames] ValidationMessage resourceNames + * @property {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|null} [severity] ValidationMessage severity + * @property {string|null} [detail] ValidationMessage detail + */ + + /** + * Constructs a new ValidationMessage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ValidationMessage. + * @implements IValidationMessage + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage=} [properties] Properties to set + */ + function ValidationMessage(properties) { + this.resources = []; + this.resourceNames = []; + 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]]; + } + + /** + * ValidationMessage resourceType. + * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType} resourceType + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @instance + */ + ValidationMessage.prototype.resourceType = 0; + + /** + * ValidationMessage resources. + * @member {Array.} resources + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @instance + */ + ValidationMessage.prototype.resources = $util.emptyArray; + + /** + * ValidationMessage resourceNames. + * @member {Array.} resourceNames + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @instance + */ + ValidationMessage.prototype.resourceNames = $util.emptyArray; + + /** + * ValidationMessage severity. + * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity} severity + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @instance + */ + ValidationMessage.prototype.severity = 0; + + /** + * ValidationMessage detail. + * @member {string} detail + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @instance + */ + ValidationMessage.prototype.detail = ""; + + /** + * Creates a new ValidationMessage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage instance + */ + ValidationMessage.create = function create(properties) { + return new ValidationMessage(properties); + }; + + /** + * Encodes the specified ValidationMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage} message ValidationMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ValidationMessage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.resources != null && message.resources.length) + for (var i = 0; i < message.resources.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.resources[i]); + if (message.severity != null && Object.hasOwnProperty.call(message, "severity")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.severity); + if (message.detail != null && Object.hasOwnProperty.call(message, "detail")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.detail); + if (message.resourceNames != null && message.resourceNames.length) + for (var i = 0; i < message.resourceNames.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.encode(message.resourceNames[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ValidationMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage} message ValidationMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ValidationMessage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ValidationMessage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @static + * @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.ValidationMessage} ValidationMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ValidationMessage.decode = function decode(reader, length) { + 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.ValidationMessage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.resourceType = reader.int32(); + break; + } + case 2: { + if (!(message.resources && message.resources.length)) + message.resources = []; + message.resources.push(reader.string()); + break; + } + case 6: { + if (!(message.resourceNames && message.resourceNames.length)) + message.resourceNames = []; + message.resourceNames.push($root.google.cloud.dialogflow.cx.v3beta1.ResourceName.decode(reader, reader.uint32())); + break; + } + case 3: { + message.severity = reader.int32(); + break; + } + case 4: { + message.detail = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ValidationMessage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ValidationMessage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ValidationMessage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ValidationMessage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 8: + case 9: + case 10: + case 11: + case 3: + case 12: + case 4: + case 5: + case 6: + case 13: + case 7: + case 14: + break; + } + if (message.resources != null && message.hasOwnProperty("resources")) { + if (!Array.isArray(message.resources)) + return "resources: array expected"; + for (var i = 0; i < message.resources.length; ++i) + if (!$util.isString(message.resources[i])) + return "resources: string[] expected"; + } + if (message.resourceNames != null && message.hasOwnProperty("resourceNames")) { + if (!Array.isArray(message.resourceNames)) + return "resourceNames: array expected"; + for (var i = 0; i < message.resourceNames.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.verify(message.resourceNames[i]); + if (error) + return "resourceNames." + error; + } + } + if (message.severity != null && message.hasOwnProperty("severity")) + switch (message.severity) { + default: + return "severity: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.detail != null && message.hasOwnProperty("detail")) + if (!$util.isString(message.detail)) + return "detail: string expected"; + return null; + }; + + /** + * Creates a ValidationMessage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage + */ + ValidationMessage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage(); + switch (object.resourceType) { + default: + if (typeof object.resourceType === "number") { + message.resourceType = object.resourceType; + break; + } + break; + case "RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType = 0; + break; + case "AGENT": + case 1: + message.resourceType = 1; + break; + case "INTENT": + case 2: + message.resourceType = 2; + break; + case "INTENT_TRAINING_PHRASE": + case 8: + message.resourceType = 8; + break; + case "INTENT_PARAMETER": + case 9: + message.resourceType = 9; + break; + case "INTENTS": + case 10: + message.resourceType = 10; + break; + case "INTENT_TRAINING_PHRASES": + case 11: + message.resourceType = 11; + break; + case "ENTITY_TYPE": + case 3: + message.resourceType = 3; + break; + case "ENTITY_TYPES": + case 12: + message.resourceType = 12; + break; + case "WEBHOOK": + case 4: + message.resourceType = 4; + break; + case "FLOW": + case 5: + message.resourceType = 5; + break; + case "PAGE": + case 6: + message.resourceType = 6; + break; + case "PAGES": + case 13: + message.resourceType = 13; + break; + case "TRANSITION_ROUTE_GROUP": + case 7: + message.resourceType = 7; + break; + case "AGENT_TRANSITION_ROUTE_GROUP": + case 14: + message.resourceType = 14; + break; + } + if (object.resources) { + if (!Array.isArray(object.resources)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources: array expected"); + message.resources = []; + for (var i = 0; i < object.resources.length; ++i) + message.resources[i] = String(object.resources[i]); + } + if (object.resourceNames) { + if (!Array.isArray(object.resourceNames)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resourceNames: array expected"); + message.resourceNames = []; + for (var i = 0; i < object.resourceNames.length; ++i) { + if (typeof object.resourceNames[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resourceNames: object expected"); + message.resourceNames[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.fromObject(object.resourceNames[i]); + } + } + switch (object.severity) { + default: + if (typeof object.severity === "number") { + message.severity = object.severity; + break; + } + break; + case "SEVERITY_UNSPECIFIED": + case 0: + message.severity = 0; + break; + case "INFO": + case 1: + message.severity = 1; + break; + case "WARNING": + case 2: + message.severity = 2; + break; + case "ERROR": + case 3: + message.severity = 3; + break; + } + if (object.detail != null) + message.detail = String(object.detail); + return message; + }; + + /** + * Creates a plain object from a ValidationMessage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} message ValidationMessage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ValidationMessage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.resources = []; + object.resourceNames = []; + } + if (options.defaults) { + object.resourceType = options.enums === String ? "RESOURCE_TYPE_UNSPECIFIED" : 0; + object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0; + object.detail = ""; + } + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType[message.resourceType] === undefined ? message.resourceType : $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType[message.resourceType] : message.resourceType; + if (message.resources && message.resources.length) { + object.resources = []; + for (var j = 0; j < message.resources.length; ++j) + object.resources[j] = message.resources[j]; + } + if (message.severity != null && message.hasOwnProperty("severity")) + object.severity = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity[message.severity] === undefined ? message.severity : $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity[message.severity] : message.severity; + if (message.detail != null && message.hasOwnProperty("detail")) + object.detail = message.detail; + if (message.resourceNames && message.resourceNames.length) { + object.resourceNames = []; + for (var j = 0; j < message.resourceNames.length; ++j) + object.resourceNames[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.toObject(message.resourceNames[j], options); + } + return object; + }; + + /** + * Converts this ValidationMessage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @instance + * @returns {Object.} JSON object + */ + ValidationMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ValidationMessage + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ValidationMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidationMessage"; + }; + + /** + * ResourceType enum. + * @name google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType + * @enum {number} + * @property {number} RESOURCE_TYPE_UNSPECIFIED=0 RESOURCE_TYPE_UNSPECIFIED value + * @property {number} AGENT=1 AGENT value + * @property {number} INTENT=2 INTENT value + * @property {number} INTENT_TRAINING_PHRASE=8 INTENT_TRAINING_PHRASE value + * @property {number} INTENT_PARAMETER=9 INTENT_PARAMETER value + * @property {number} INTENTS=10 INTENTS value + * @property {number} INTENT_TRAINING_PHRASES=11 INTENT_TRAINING_PHRASES value + * @property {number} ENTITY_TYPE=3 ENTITY_TYPE value + * @property {number} ENTITY_TYPES=12 ENTITY_TYPES value + * @property {number} WEBHOOK=4 WEBHOOK value + * @property {number} FLOW=5 FLOW value + * @property {number} PAGE=6 PAGE value + * @property {number} PAGES=13 PAGES value + * @property {number} TRANSITION_ROUTE_GROUP=7 TRANSITION_ROUTE_GROUP value + * @property {number} AGENT_TRANSITION_ROUTE_GROUP=14 AGENT_TRANSITION_ROUTE_GROUP value + */ + ValidationMessage.ResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AGENT"] = 1; + values[valuesById[2] = "INTENT"] = 2; + values[valuesById[8] = "INTENT_TRAINING_PHRASE"] = 8; + values[valuesById[9] = "INTENT_PARAMETER"] = 9; + values[valuesById[10] = "INTENTS"] = 10; + values[valuesById[11] = "INTENT_TRAINING_PHRASES"] = 11; + values[valuesById[3] = "ENTITY_TYPE"] = 3; + values[valuesById[12] = "ENTITY_TYPES"] = 12; + values[valuesById[4] = "WEBHOOK"] = 4; + values[valuesById[5] = "FLOW"] = 5; + values[valuesById[6] = "PAGE"] = 6; + values[valuesById[13] = "PAGES"] = 13; + values[valuesById[7] = "TRANSITION_ROUTE_GROUP"] = 7; + values[valuesById[14] = "AGENT_TRANSITION_ROUTE_GROUP"] = 14; + return values; + })(); + + /** + * Severity enum. + * @name google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity + * @enum {number} + * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value + * @property {number} INFO=1 INFO value + * @property {number} WARNING=2 WARNING value + * @property {number} ERROR=3 ERROR value + */ + ValidationMessage.Severity = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0; + values[valuesById[1] = "INFO"] = 1; + values[valuesById[2] = "WARNING"] = 2; + values[valuesById[3] = "ERROR"] = 3; + return values; + })(); + + return ValidationMessage; + })(); + + v3beta1.ResourceName = (function() { + + /** + * Properties of a ResourceName. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IResourceName + * @property {string|null} [name] ResourceName name + * @property {string|null} [displayName] ResourceName displayName + */ + + /** + * Constructs a new ResourceName. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ResourceName. + * @implements IResourceName + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName=} [properties] Properties to set + */ + function ResourceName(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]]; + } + + /** + * ResourceName name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @instance + */ + ResourceName.prototype.name = ""; + + /** + * ResourceName displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @instance + */ + ResourceName.prototype.displayName = ""; + + /** + * Creates a new ResourceName instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName instance + */ + ResourceName.create = function create(properties) { + return new ResourceName(properties); + }; + + /** + * Encodes the specified ResourceName message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName} message ResourceName message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceName.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); + return writer; + }; + + /** + * Encodes the specified ResourceName message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName} message ResourceName message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceName.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceName message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @static + * @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.ResourceName} ResourceName + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceName.decode = function decode(reader, length) { + 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.ResourceName(); + 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; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceName message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceName.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceName message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceName.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"; + return null; + }; + + /** + * Creates a ResourceName message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName + */ + ResourceName.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResourceName) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResourceName(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + return message; + }; + + /** + * Creates a plain object from a ResourceName message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResourceName} message ResourceName + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceName.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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; + return object; + }; + + /** + * Converts this ResourceName to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @instance + * @returns {Object.} JSON object + */ + ResourceName.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceName + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceName.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResourceName"; + }; + + return ResourceName; + })(); + + v3beta1.GenerativeSettings = (function() { + + /** + * Properties of a GenerativeSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IGenerativeSettings + * @property {string|null} [name] GenerativeSettings name + * @property {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings|null} [fallbackSettings] GenerativeSettings fallbackSettings + * @property {google.cloud.dialogflow.cx.v3beta1.ISafetySettings|null} [generativeSafetySettings] GenerativeSettings generativeSafetySettings + * @property {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings|null} [knowledgeConnectorSettings] GenerativeSettings knowledgeConnectorSettings + * @property {string|null} [languageCode] GenerativeSettings languageCode + */ + + /** + * Constructs a new GenerativeSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GenerativeSettings. + * @implements IGenerativeSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings=} [properties] Properties to set + */ + function GenerativeSettings(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]]; + } + + /** + * GenerativeSettings name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @instance + */ + GenerativeSettings.prototype.name = ""; + + /** + * GenerativeSettings fallbackSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings|null|undefined} fallbackSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @instance + */ + GenerativeSettings.prototype.fallbackSettings = null; + + /** + * GenerativeSettings generativeSafetySettings. + * @member {google.cloud.dialogflow.cx.v3beta1.ISafetySettings|null|undefined} generativeSafetySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @instance + */ + GenerativeSettings.prototype.generativeSafetySettings = null; + + /** + * GenerativeSettings knowledgeConnectorSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings|null|undefined} knowledgeConnectorSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @instance + */ + GenerativeSettings.prototype.knowledgeConnectorSettings = null; + + /** + * GenerativeSettings languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @instance + */ + GenerativeSettings.prototype.languageCode = ""; + + /** + * Creates a new GenerativeSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} GenerativeSettings instance + */ + GenerativeSettings.create = function create(properties) { + return new GenerativeSettings(properties); + }; + + /** + * Encodes the specified GenerativeSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings} message GenerativeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerativeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fallbackSettings != null && Object.hasOwnProperty.call(message, "fallbackSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.encode(message.fallbackSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.generativeSafetySettings != null && Object.hasOwnProperty.call(message, "generativeSafetySettings")) + $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.encode(message.generativeSafetySettings, 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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + if (message.knowledgeConnectorSettings != null && Object.hasOwnProperty.call(message, "knowledgeConnectorSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.encode(message.knowledgeConnectorSettings, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GenerativeSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings} message GenerativeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerativeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenerativeSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @static + * @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.GenerativeSettings} GenerativeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerativeSettings.decode = function decode(reader, length) { + 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.GenerativeSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: { + message.name = reader.string(); + break; + } + case 1: { + message.fallbackSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.decode(reader, reader.uint32()); + break; + } + case 3: { + message.generativeSafetySettings = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.decode(reader, reader.uint32()); + break; + } + case 7: { + message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.decode(reader, reader.uint32()); + break; + } + case 4: { + message.languageCode = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenerativeSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} GenerativeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerativeSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenerativeSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenerativeSettings.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.fallbackSettings != null && message.hasOwnProperty("fallbackSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify(message.fallbackSettings); + if (error) + return "fallbackSettings." + error; + } + if (message.generativeSafetySettings != null && message.hasOwnProperty("generativeSafetySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.verify(message.generativeSafetySettings); + if (error) + return "generativeSafetySettings." + error; + } + if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify(message.knowledgeConnectorSettings); + if (error) + return "knowledgeConnectorSettings." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; + + /** + * Creates a GenerativeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} GenerativeSettings + */ + GenerativeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings(); + if (object.name != null) + message.name = String(object.name); + if (object.fallbackSettings != null) { + if (typeof object.fallbackSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.fallbackSettings: object expected"); + message.fallbackSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.fromObject(object.fallbackSettings); + } + if (object.generativeSafetySettings != null) { + if (typeof object.generativeSafetySettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.generativeSafetySettings: object expected"); + message.generativeSafetySettings = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.fromObject(object.generativeSafetySettings); + } + if (object.knowledgeConnectorSettings != null) { + if (typeof object.knowledgeConnectorSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.knowledgeConnectorSettings: object expected"); + message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.fromObject(object.knowledgeConnectorSettings); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; + + /** + * Creates a plain object from a GenerativeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} message GenerativeSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenerativeSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fallbackSettings = null; + object.generativeSafetySettings = null; + object.languageCode = ""; + object.name = ""; + object.knowledgeConnectorSettings = null; + } + if (message.fallbackSettings != null && message.hasOwnProperty("fallbackSettings")) + object.fallbackSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.toObject(message.fallbackSettings, options); + if (message.generativeSafetySettings != null && message.hasOwnProperty("generativeSafetySettings")) + object.generativeSafetySettings = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.toObject(message.generativeSafetySettings, 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.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) + object.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.toObject(message.knowledgeConnectorSettings, options); + return object; + }; + + /** + * Converts this GenerativeSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @instance + * @returns {Object.} JSON object + */ + GenerativeSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenerativeSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenerativeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GenerativeSettings"; + }; + + GenerativeSettings.FallbackSettings = (function() { + + /** + * Properties of a FallbackSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @interface IFallbackSettings + * @property {string|null} [selectedPrompt] FallbackSettings selectedPrompt + * @property {Array.|null} [promptTemplates] FallbackSettings promptTemplates + */ + + /** + * Constructs a new FallbackSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @classdesc Represents a FallbackSettings. + * @implements IFallbackSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings=} [properties] Properties to set + */ + function FallbackSettings(properties) { + this.promptTemplates = []; + 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]]; + } + + /** + * FallbackSettings selectedPrompt. + * @member {string} selectedPrompt + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @instance + */ + FallbackSettings.prototype.selectedPrompt = ""; + + /** + * FallbackSettings promptTemplates. + * @member {Array.} promptTemplates + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @instance + */ + FallbackSettings.prototype.promptTemplates = $util.emptyArray; + + /** + * Creates a new FallbackSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings} FallbackSettings instance + */ + FallbackSettings.create = function create(properties) { + return new FallbackSettings(properties); + }; + + /** + * Encodes the specified FallbackSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings} message FallbackSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FallbackSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selectedPrompt != null && Object.hasOwnProperty.call(message, "selectedPrompt")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.selectedPrompt); + if (message.promptTemplates != null && message.promptTemplates.length) + for (var i = 0; i < message.promptTemplates.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.encode(message.promptTemplates[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FallbackSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings} message FallbackSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FallbackSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FallbackSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @static + * @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.GenerativeSettings.FallbackSettings} FallbackSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FallbackSettings.decode = function decode(reader, length) { + 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.GenerativeSettings.FallbackSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.selectedPrompt = reader.string(); + break; + } + case 4: { + if (!(message.promptTemplates && message.promptTemplates.length)) + message.promptTemplates = []; + message.promptTemplates.push($root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FallbackSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings} FallbackSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FallbackSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FallbackSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FallbackSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.selectedPrompt != null && message.hasOwnProperty("selectedPrompt")) + if (!$util.isString(message.selectedPrompt)) + return "selectedPrompt: string expected"; + if (message.promptTemplates != null && message.hasOwnProperty("promptTemplates")) { + if (!Array.isArray(message.promptTemplates)) + return "promptTemplates: array expected"; + for (var i = 0; i < message.promptTemplates.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify(message.promptTemplates[i]); + if (error) + return "promptTemplates." + error; + } + } + return null; + }; + + /** + * Creates a FallbackSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings} FallbackSettings + */ + FallbackSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings(); + if (object.selectedPrompt != null) + message.selectedPrompt = String(object.selectedPrompt); + if (object.promptTemplates) { + if (!Array.isArray(object.promptTemplates)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.promptTemplates: array expected"); + message.promptTemplates = []; + for (var i = 0; i < object.promptTemplates.length; ++i) { + if (typeof object.promptTemplates[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.promptTemplates: object expected"); + message.promptTemplates[i] = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.fromObject(object.promptTemplates[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FallbackSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings} message FallbackSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FallbackSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.promptTemplates = []; + if (options.defaults) + object.selectedPrompt = ""; + if (message.selectedPrompt != null && message.hasOwnProperty("selectedPrompt")) + object.selectedPrompt = message.selectedPrompt; + if (message.promptTemplates && message.promptTemplates.length) { + object.promptTemplates = []; + for (var j = 0; j < message.promptTemplates.length; ++j) + object.promptTemplates[j] = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.toObject(message.promptTemplates[j], options); + } + return object; + }; + + /** + * Converts this FallbackSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @instance + * @returns {Object.} JSON object + */ + FallbackSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FallbackSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FallbackSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings"; + }; + + FallbackSettings.PromptTemplate = (function() { + + /** + * Properties of a PromptTemplate. + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @interface IPromptTemplate + * @property {string|null} [displayName] PromptTemplate displayName + * @property {string|null} [promptText] PromptTemplate promptText + * @property {boolean|null} [frozen] PromptTemplate frozen + */ + + /** + * Constructs a new PromptTemplate. + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings + * @classdesc Represents a PromptTemplate. + * @implements IPromptTemplate + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate=} [properties] Properties to set + */ + function PromptTemplate(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]]; + } + + /** + * PromptTemplate displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @instance + */ + PromptTemplate.prototype.displayName = ""; + + /** + * PromptTemplate promptText. + * @member {string} promptText + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @instance + */ + PromptTemplate.prototype.promptText = ""; + + /** + * PromptTemplate frozen. + * @member {boolean} frozen + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @instance + */ + PromptTemplate.prototype.frozen = false; + + /** + * Creates a new PromptTemplate instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate} PromptTemplate instance + */ + PromptTemplate.create = function create(properties) { + return new PromptTemplate(properties); + }; + + /** + * Encodes the specified PromptTemplate message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate} message PromptTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PromptTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.promptText != null && Object.hasOwnProperty.call(message, "promptText")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.promptText); + if (message.frozen != null && Object.hasOwnProperty.call(message, "frozen")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.frozen); + return writer; + }; + + /** + * Encodes the specified PromptTemplate message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate} message PromptTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PromptTemplate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PromptTemplate message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @static + * @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.GenerativeSettings.FallbackSettings.PromptTemplate} PromptTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PromptTemplate.decode = function decode(reader, length) { + 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.GenerativeSettings.FallbackSettings.PromptTemplate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.displayName = reader.string(); + break; + } + case 2: { + message.promptText = reader.string(); + break; + } + case 3: { + message.frozen = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PromptTemplate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate} PromptTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PromptTemplate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PromptTemplate message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PromptTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.promptText != null && message.hasOwnProperty("promptText")) + if (!$util.isString(message.promptText)) + return "promptText: string expected"; + if (message.frozen != null && message.hasOwnProperty("frozen")) + if (typeof message.frozen !== "boolean") + return "frozen: boolean expected"; + return null; + }; + + /** + * Creates a PromptTemplate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate} PromptTemplate + */ + PromptTemplate.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.promptText != null) + message.promptText = String(object.promptText); + if (object.frozen != null) + message.frozen = Boolean(object.frozen); + return message; + }; + + /** + * Creates a plain object from a PromptTemplate message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate} message PromptTemplate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PromptTemplate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayName = ""; + object.promptText = ""; + object.frozen = false; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.promptText != null && message.hasOwnProperty("promptText")) + object.promptText = message.promptText; + if (message.frozen != null && message.hasOwnProperty("frozen")) + object.frozen = message.frozen; + return object; + }; + + /** + * Converts this PromptTemplate to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @instance + * @returns {Object.} JSON object + */ + PromptTemplate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PromptTemplate + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PromptTemplate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate"; + }; + + return PromptTemplate; + })(); + + return FallbackSettings; + })(); + + GenerativeSettings.KnowledgeConnectorSettings = (function() { + + /** + * Properties of a KnowledgeConnectorSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @interface IKnowledgeConnectorSettings + * @property {string|null} [business] KnowledgeConnectorSettings business + * @property {string|null} [agent] KnowledgeConnectorSettings agent + * @property {string|null} [agentIdentity] KnowledgeConnectorSettings agentIdentity + * @property {string|null} [businessDescription] KnowledgeConnectorSettings businessDescription + * @property {string|null} [agentScope] KnowledgeConnectorSettings agentScope + */ + + /** + * Constructs a new KnowledgeConnectorSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @classdesc Represents a KnowledgeConnectorSettings. + * @implements IKnowledgeConnectorSettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings=} [properties] Properties to set + */ + function KnowledgeConnectorSettings(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]]; + } + + /** + * KnowledgeConnectorSettings business. + * @member {string} business + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.business = ""; + + /** + * KnowledgeConnectorSettings agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.agent = ""; + + /** + * KnowledgeConnectorSettings agentIdentity. + * @member {string} agentIdentity + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.agentIdentity = ""; + + /** + * KnowledgeConnectorSettings businessDescription. + * @member {string} businessDescription + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.businessDescription = ""; + + /** + * KnowledgeConnectorSettings agentScope. + * @member {string} agentScope + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @instance + */ + KnowledgeConnectorSettings.prototype.agentScope = ""; + + /** + * Creates a new KnowledgeConnectorSettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings} KnowledgeConnectorSettings instance + */ + KnowledgeConnectorSettings.create = function create(properties) { + return new KnowledgeConnectorSettings(properties); + }; + + /** + * Encodes the specified KnowledgeConnectorSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings} message KnowledgeConnectorSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KnowledgeConnectorSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.business != null && Object.hasOwnProperty.call(message, "business")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.business); + if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.agent); + if (message.agentIdentity != null && Object.hasOwnProperty.call(message, "agentIdentity")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.agentIdentity); + if (message.businessDescription != null && Object.hasOwnProperty.call(message, "businessDescription")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.businessDescription); + if (message.agentScope != null && Object.hasOwnProperty.call(message, "agentScope")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.agentScope); + return writer; + }; + + /** + * Encodes the specified KnowledgeConnectorSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings} message KnowledgeConnectorSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KnowledgeConnectorSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @static + * @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.GenerativeSettings.KnowledgeConnectorSettings} KnowledgeConnectorSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KnowledgeConnectorSettings.decode = function decode(reader, length) { + 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.GenerativeSettings.KnowledgeConnectorSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.business = reader.string(); + break; + } + case 2: { + message.agent = reader.string(); + break; + } + case 3: { + message.agentIdentity = reader.string(); + break; + } + case 4: { + message.businessDescription = reader.string(); + break; + } + case 5: { + message.agentScope = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings} KnowledgeConnectorSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KnowledgeConnectorSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KnowledgeConnectorSettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KnowledgeConnectorSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.business != null && message.hasOwnProperty("business")) + if (!$util.isString(message.business)) + return "business: string expected"; + if (message.agent != null && message.hasOwnProperty("agent")) + if (!$util.isString(message.agent)) + return "agent: string expected"; + if (message.agentIdentity != null && message.hasOwnProperty("agentIdentity")) + if (!$util.isString(message.agentIdentity)) + return "agentIdentity: string expected"; + if (message.businessDescription != null && message.hasOwnProperty("businessDescription")) + if (!$util.isString(message.businessDescription)) + return "businessDescription: string expected"; + if (message.agentScope != null && message.hasOwnProperty("agentScope")) + if (!$util.isString(message.agentScope)) + return "agentScope: string expected"; + return null; + }; + + /** + * Creates a KnowledgeConnectorSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings} KnowledgeConnectorSettings + */ + KnowledgeConnectorSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings(); + if (object.business != null) + message.business = String(object.business); + if (object.agent != null) + message.agent = String(object.agent); + if (object.agentIdentity != null) + message.agentIdentity = String(object.agentIdentity); + if (object.businessDescription != null) + message.businessDescription = String(object.businessDescription); + if (object.agentScope != null) + message.agentScope = String(object.agentScope); + return message; + }; + + /** + * Creates a plain object from a KnowledgeConnectorSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings} message KnowledgeConnectorSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KnowledgeConnectorSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.business = ""; + object.agent = ""; + object.agentIdentity = ""; + object.businessDescription = ""; + object.agentScope = ""; + } + if (message.business != null && message.hasOwnProperty("business")) + object.business = message.business; + if (message.agent != null && message.hasOwnProperty("agent")) + object.agent = message.agent; + if (message.agentIdentity != null && message.hasOwnProperty("agentIdentity")) + object.agentIdentity = message.agentIdentity; + if (message.businessDescription != null && message.hasOwnProperty("businessDescription")) + object.businessDescription = message.businessDescription; + if (message.agentScope != null && message.hasOwnProperty("agentScope")) + object.agentScope = message.agentScope; + return object; + }; + + /** + * Converts this KnowledgeConnectorSettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @instance + * @returns {Object.} JSON object + */ + KnowledgeConnectorSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KnowledgeConnectorSettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KnowledgeConnectorSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings"; + }; + + return KnowledgeConnectorSettings; + })(); + + return GenerativeSettings; + })(); + + v3beta1.SafetySettings = (function() { + + /** + * Properties of a SafetySettings. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ISafetySettings + * @property {Array.|null} [bannedPhrases] SafetySettings bannedPhrases + */ + + /** + * Constructs a new SafetySettings. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a SafetySettings. + * @implements ISafetySettings + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ISafetySettings=} [properties] Properties to set + */ + function SafetySettings(properties) { + this.bannedPhrases = []; + 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]]; + } + + /** + * SafetySettings bannedPhrases. + * @member {Array.} bannedPhrases + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @instance + */ + SafetySettings.prototype.bannedPhrases = $util.emptyArray; + + /** + * Creates a new SafetySettings instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ISafetySettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings} SafetySettings instance + */ + SafetySettings.create = function create(properties) { + return new SafetySettings(properties); + }; + + /** + * Encodes the specified SafetySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ISafetySettings} message SafetySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetySettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bannedPhrases != null && message.bannedPhrases.length) + for (var i = 0; i < message.bannedPhrases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.encode(message.bannedPhrases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SafetySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ISafetySettings} message SafetySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetySettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetySettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @static + * @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.SafetySettings} SafetySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetySettings.decode = function decode(reader, length) { + 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.SafetySettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.bannedPhrases && message.bannedPhrases.length)) + message.bannedPhrases = []; + message.bannedPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetySettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings} SafetySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetySettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetySettings message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetySettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bannedPhrases != null && message.hasOwnProperty("bannedPhrases")) { + if (!Array.isArray(message.bannedPhrases)) + return "bannedPhrases: array expected"; + for (var i = 0; i < message.bannedPhrases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify(message.bannedPhrases[i]); + if (error) + return "bannedPhrases." + error; + } + } + return null; + }; + + /** + * Creates a SafetySettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings} SafetySettings + */ + SafetySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings(); + if (object.bannedPhrases) { + if (!Array.isArray(object.bannedPhrases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SafetySettings.bannedPhrases: array expected"); + message.bannedPhrases = []; + for (var i = 0; i < object.bannedPhrases.length; ++i) { + if (typeof object.bannedPhrases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SafetySettings.bannedPhrases: object expected"); + message.bannedPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.fromObject(object.bannedPhrases[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SafetySettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings} message SafetySettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetySettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.bannedPhrases = []; + if (message.bannedPhrases && message.bannedPhrases.length) { + object.bannedPhrases = []; + for (var j = 0; j < message.bannedPhrases.length; ++j) + object.bannedPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.toObject(message.bannedPhrases[j], options); + } + return object; + }; + + /** + * Converts this SafetySettings to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @instance + * @returns {Object.} JSON object + */ + SafetySettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetySettings + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SafetySettings"; + }; + + SafetySettings.Phrase = (function() { + + /** + * Properties of a Phrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @interface IPhrase + * @property {string|null} [text] Phrase text + * @property {string|null} [languageCode] Phrase languageCode + */ + + /** + * Constructs a new Phrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @classdesc Represents a Phrase. + * @implements IPhrase + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase=} [properties] Properties to set + */ + function Phrase(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]]; + } + + /** + * Phrase text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @instance + */ + Phrase.prototype.text = ""; + + /** + * Phrase languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @instance + */ + Phrase.prototype.languageCode = ""; + + /** + * Creates a new Phrase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase} Phrase instance + */ + Phrase.create = function create(properties) { + return new Phrase(properties); + }; + + /** + * Encodes the specified Phrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase} message Phrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Phrase.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); + return writer; + }; + + /** + * Encodes the specified Phrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase} message Phrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Phrase.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Phrase message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @static + * @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.SafetySettings.Phrase} Phrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Phrase.decode = function decode(reader, length) { + 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.SafetySettings.Phrase(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = reader.string(); + break; + } + case 2: { + message.languageCode = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Phrase message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase} Phrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Phrase.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Phrase message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Phrase.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.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; + + /** + * Creates a Phrase message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase} Phrase + */ + Phrase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase(); + if (object.text != null) + message.text = String(object.text); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; + + /** + * Creates a plain object from a Phrase message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase} message Phrase + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Phrase.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.text = ""; + object.languageCode = ""; + } + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; + + /** + * Converts this Phrase to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @instance + * @returns {Object.} JSON object + */ + Phrase.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Phrase + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Phrase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase"; + }; + + return Phrase; + })(); + + return SafetySettings; + })(); + + v3beta1.Changelogs = (function() { + + /** + * Constructs a new Changelogs service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Changelogs + * @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 Changelogs(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Changelogs.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Changelogs; + + /** + * Creates new Changelogs service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @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 {Changelogs} RPC service. Useful where requests and/or responses are streamed. + */ + Changelogs.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs|listChangelogs}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @typedef ListChangelogsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} [response] ListChangelogsResponse + */ + + /** + * Calls ListChangelogs. + * @function listChangelogs + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} request ListChangelogsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogsCallback} callback Node-style callback called with the error, if any, and ListChangelogsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Changelogs.prototype.listChangelogs = function listChangelogs(request, callback) { + return this.rpcCall(listChangelogs, $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse, request, callback); + }, "name", { value: "ListChangelogs" }); + + /** + * Calls ListChangelogs. + * @function listChangelogs + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} request ListChangelogsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs|getChangelog}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @typedef GetChangelogCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Changelog} [response] Changelog + */ + + /** + * Calls GetChangelog. + * @function getChangelog + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} request GetChangelogRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelogCallback} callback Node-style callback called with the error, if any, and Changelog + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Changelogs.prototype.getChangelog = function getChangelog(request, callback) { + return this.rpcCall(getChangelog, $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, $root.google.cloud.dialogflow.cx.v3beta1.Changelog, request, callback); + }, "name", { value: "GetChangelog" }); + + /** + * Calls GetChangelog. + * @function getChangelog + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} request GetChangelogRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Changelogs; + })(); + + v3beta1.ListChangelogsRequest = (function() { + + /** + * Properties of a ListChangelogsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListChangelogsRequest + * @property {string|null} [parent] ListChangelogsRequest parent + * @property {string|null} [filter] ListChangelogsRequest filter + * @property {number|null} [pageSize] ListChangelogsRequest pageSize + * @property {string|null} [pageToken] ListChangelogsRequest pageToken + */ + + /** + * Constructs a new ListChangelogsRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListChangelogsRequest. + * @implements IListChangelogsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest=} [properties] Properties to set + */ + function ListChangelogsRequest(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]]; + } + + /** + * ListChangelogsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @instance + */ + ListChangelogsRequest.prototype.parent = ""; + + /** + * ListChangelogsRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @instance + */ + ListChangelogsRequest.prototype.filter = ""; + + /** + * ListChangelogsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @instance + */ + ListChangelogsRequest.prototype.pageSize = 0; + + /** + * ListChangelogsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @instance + */ + ListChangelogsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListChangelogsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest instance + */ + ListChangelogsRequest.create = function create(properties) { + return new ListChangelogsRequest(properties); + }; + + /** + * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListChangelogsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + 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 ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} message ListChangelogsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListChangelogsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListChangelogsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @static + * @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.ListChangelogsRequest} ListChangelogsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListChangelogsRequest.decode = function decode(reader, length) { + 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.ListChangelogsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListChangelogsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListChangelogsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListChangelogsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListChangelogsRequest.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.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: 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 ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest + */ + ListChangelogsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + 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 ListChangelogsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} message ListChangelogsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListChangelogsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + 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 ListChangelogsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @instance + * @returns {Object.} JSON object + */ + ListChangelogsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListChangelogsRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListChangelogsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest"; + }; + + return ListChangelogsRequest; + })(); + + v3beta1.ListChangelogsResponse = (function() { + + /** + * Properties of a ListChangelogsResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IListChangelogsResponse + * @property {Array.|null} [changelogs] ListChangelogsResponse changelogs + * @property {string|null} [nextPageToken] ListChangelogsResponse nextPageToken + */ + + /** + * Constructs a new ListChangelogsResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ListChangelogsResponse. + * @implements IListChangelogsResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse=} [properties] Properties to set + */ + function ListChangelogsResponse(properties) { + this.changelogs = []; + 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]]; + } + + /** + * ListChangelogsResponse changelogs. + * @member {Array.} changelogs + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @instance + */ + ListChangelogsResponse.prototype.changelogs = $util.emptyArray; + + /** + * ListChangelogsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @instance + */ + ListChangelogsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListChangelogsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse instance + */ + ListChangelogsResponse.create = function create(properties) { + return new ListChangelogsResponse(properties); + }; + + /** + * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListChangelogsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.changelogs != null && message.changelogs.length) + for (var i = 0; i < message.changelogs.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Changelog.encode(message.changelogs[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 ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListChangelogsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListChangelogsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @static + * @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.ListChangelogsResponse} ListChangelogsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListChangelogsResponse.decode = function decode(reader, length) { + 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.ListChangelogsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.changelogs && message.changelogs.length)) + message.changelogs = []; + message.changelogs.push($root.google.cloud.dialogflow.cx.v3beta1.Changelog.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListChangelogsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListChangelogsResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListChangelogsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.changelogs != null && message.hasOwnProperty("changelogs")) { + if (!Array.isArray(message.changelogs)) + return "changelogs: array expected"; + for (var i = 0; i < message.changelogs.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.verify(message.changelogs[i]); + if (error) + return "changelogs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse + */ + ListChangelogsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse(); + if (object.changelogs) { + if (!Array.isArray(object.changelogs)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.changelogs: array expected"); + message.changelogs = []; + for (var i = 0; i < object.changelogs.length; ++i) { + if (typeof object.changelogs[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.changelogs: object expected"); + message.changelogs[i] = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.fromObject(object.changelogs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} message ListChangelogsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListChangelogsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.changelogs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.changelogs && message.changelogs.length) { + object.changelogs = []; + for (var j = 0; j < message.changelogs.length; ++j) + object.changelogs[j] = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.toObject(message.changelogs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListChangelogsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @instance + * @returns {Object.} JSON object + */ + ListChangelogsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListChangelogsResponse + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListChangelogsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse"; + }; + + return ListChangelogsResponse; + })(); + + v3beta1.GetChangelogRequest = (function() { + + /** + * Properties of a GetChangelogRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IGetChangelogRequest + * @property {string|null} [name] GetChangelogRequest name + */ + + /** + * Constructs a new GetChangelogRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GetChangelogRequest. + * @implements IGetChangelogRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest=} [properties] Properties to set + */ + function GetChangelogRequest(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]]; + } + + /** + * GetChangelogRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @instance + */ + GetChangelogRequest.prototype.name = ""; + + /** + * Creates a new GetChangelogRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest instance + */ + GetChangelogRequest.create = function create(properties) { + return new GetChangelogRequest(properties); + }; + + /** + * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetChangelogRequest.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 GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetChangelogRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetChangelogRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @static + * @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.GetChangelogRequest} GetChangelogRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetChangelogRequest.decode = function decode(reader, length) { + 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.GetChangelogRequest(); + 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 GetChangelogRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetChangelogRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetChangelogRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetChangelogRequest.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 GetChangelogRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest + */ + GetChangelogRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} message GetChangelogRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetChangelogRequest.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 GetChangelogRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @instance + * @returns {Object.} JSON object + */ + GetChangelogRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetChangelogRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetChangelogRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest"; + }; + + return GetChangelogRequest; + })(); + + v3beta1.Changelog = (function() { + + /** + * Properties of a Changelog. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IChangelog + * @property {string|null} [name] Changelog name + * @property {string|null} [userEmail] Changelog userEmail + * @property {string|null} [displayName] Changelog displayName + * @property {string|null} [action] Changelog action + * @property {string|null} [type] Changelog type + * @property {string|null} [resource] Changelog resource + * @property {google.protobuf.ITimestamp|null} [createTime] Changelog createTime + */ + + /** + * Constructs a new Changelog. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Changelog. + * @implements IChangelog + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog=} [properties] Properties to set + */ + function Changelog(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]]; + } + + /** + * Changelog name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.name = ""; + + /** + * Changelog userEmail. + * @member {string} userEmail + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.userEmail = ""; + + /** + * Changelog displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.displayName = ""; + + /** + * Changelog action. + * @member {string} action + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.action = ""; + + /** + * Changelog type. + * @member {string} type + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.type = ""; + + /** + * Changelog resource. + * @member {string} resource + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.resource = ""; + + /** + * Changelog createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + */ + Changelog.prototype.createTime = null; + + /** + * Creates a new Changelog instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog instance + */ + Changelog.create = function create(properties) { + return new Changelog(properties); + }; + + /** + * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog} message Changelog message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Changelog.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.userEmail != null && Object.hasOwnProperty.call(message, "userEmail")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.userEmail); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.type); + if (message.action != null && Object.hasOwnProperty.call(message, "action")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.action); + return writer; + }; + + /** + * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog} message Changelog message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Changelog.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Changelog message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @static + * @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.Changelog} Changelog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Changelog.decode = function decode(reader, length) { + 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.Changelog(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.userEmail = reader.string(); + break; + } + case 7: { + message.displayName = reader.string(); + break; + } + case 11: { + message.action = reader.string(); + break; + } + case 8: { + message.type = reader.string(); + break; + } + case 3: { + message.resource = reader.string(); + break; + } + case 4: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Changelog message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Changelog.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Changelog message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Changelog.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.userEmail != null && message.hasOwnProperty("userEmail")) + if (!$util.isString(message.userEmail)) + return "userEmail: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.action != null && message.hasOwnProperty("action")) + if (!$util.isString(message.action)) + return "action: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + return null; + }; + + /** + * Creates a Changelog message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog + */ + Changelog.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Changelog) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Changelog(); + if (object.name != null) + message.name = String(object.name); + if (object.userEmail != null) + message.userEmail = String(object.userEmail); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.action != null) + message.action = String(object.action); + if (object.type != null) + message.type = String(object.type); + if (object.resource != null) + message.resource = String(object.resource); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Changelog.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + return message; + }; + + /** + * Creates a plain object from a Changelog message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Changelog} message Changelog + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Changelog.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.userEmail = ""; + object.resource = ""; + object.createTime = null; + object.displayName = ""; + object.type = ""; + object.action = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.userEmail != null && message.hasOwnProperty("userEmail")) + object.userEmail = message.userEmail; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.action != null && message.hasOwnProperty("action")) + object.action = message.action; + return object; + }; + + /** + * Converts this Changelog to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @instance + * @returns {Object.} JSON object + */ + Changelog.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Changelog + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Changelog.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Changelog"; + }; + + return Changelog; + })(); + + v3beta1.Deployments = (function() { + + /** + * Constructs a new Deployments service. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Deployments + * @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 Deployments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Deployments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Deployments; + + /** + * Creates new Deployments service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @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 {Deployments} RPC service. Useful where requests and/or responses are streamed. + */ + Deployments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments|listDeployments}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @typedef ListDeploymentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} [response] ListDeploymentsResponse + */ + + /** + * Calls ListDeployments. + * @function listDeployments + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeploymentsCallback} callback Node-style callback called with the error, if any, and ListDeploymentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Deployments.prototype.listDeployments = function listDeployments(request, callback) { + return this.rpcCall(listDeployments, $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse, request, callback); + }, "name", { value: "ListDeployments" }); + + /** + * Calls ListDeployments. + * @function listDeployments + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments|getDeployment}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @typedef GetDeploymentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment} [response] Deployment + */ + + /** + * Calls GetDeployment. + * @function getDeployment + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeploymentCallback} callback Node-style callback called with the error, if any, and Deployment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Deployments.prototype.getDeployment = function getDeployment(request, callback) { + return this.rpcCall(getDeployment, $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Deployment, request, callback); + }, "name", { value: "GetDeployment" }); + + /** + * Calls GetDeployment. + * @function getDeployment + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Deployments; + })(); + + v3beta1.Deployment = (function() { + + /** + * Properties of a Deployment. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDeployment + * @property {string|null} [name] Deployment name + * @property {string|null} [flowVersion] Deployment flowVersion + * @property {google.cloud.dialogflow.cx.v3beta1.Deployment.State|null} [state] Deployment state + * @property {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null} [result] Deployment result + * @property {google.protobuf.ITimestamp|null} [startTime] Deployment startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Deployment endTime + */ + + /** + * Constructs a new Deployment. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Deployment. + * @implements IDeployment + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment=} [properties] Properties to set + */ + function Deployment(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]]; + } + + /** + * Deployment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @instance + */ + Deployment.prototype.name = ""; + + /** + * Deployment flowVersion. + * @member {string} flowVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @instance + */ + Deployment.prototype.flowVersion = ""; + + /** + * Deployment state. + * @member {google.cloud.dialogflow.cx.v3beta1.Deployment.State} state + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @instance + */ + Deployment.prototype.state = 0; + + /** + * Deployment result. + * @member {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @instance + */ + Deployment.prototype.result = null; + + /** + * Deployment startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @instance + */ + Deployment.prototype.startTime = null; + + /** + * Deployment endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @instance + */ + Deployment.prototype.endTime = null; + + /** + * Creates a new Deployment instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment instance + */ + Deployment.create = function create(properties) { + return new Deployment(properties); + }; + + /** + * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment} message Deployment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Deployment.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.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment} message Deployment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Deployment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Deployment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @static + * @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.Deployment} Deployment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Deployment.decode = function decode(reader, length) { + 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.Deployment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.flowVersion = reader.string(); + break; + } + case 3: { + message.state = reader.int32(); + break; + } + case 4: { + message.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.decode(reader, reader.uint32()); + break; + } + case 5: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Deployment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Deployment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Deployment message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Deployment.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.flowVersion != null && message.hasOwnProperty("flowVersion")) + if (!$util.isString(message.flowVersion)) + return "flowVersion: 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.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify(message.result); + if (error) + return "result." + 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; + } + return null; + }; + + /** + * Creates a Deployment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment + */ + Deployment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Deployment) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment(); + if (object.name != null) + message.name = String(object.name); + if (object.flowVersion != null) + message.flowVersion = String(object.flowVersion); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "RUNNING": + case 1: + message.state = 1; + break; + case "SUCCEEDED": + case 2: + message.state = 2; + break; + case "FAILED": + case 3: + message.state = 3; + break; + } + if (object.result != null) { + if (typeof object.result !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.result: object expected"); + message.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.fromObject(object.result); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.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.Deployment.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a Deployment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment} message Deployment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Deployment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.flowVersion = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.result = null; + object.startTime = null; + object.endTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + object.flowVersion = message.flowVersion; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Deployment.State[message.state] === undefined ? message.state : $root.google.cloud.dialogflow.cx.v3beta1.Deployment.State[message.state] : message.state; + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.toObject(message.result, 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); + return object; + }; + + /** + * Converts this Deployment to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @instance + * @returns {Object.} JSON object + */ + Deployment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Deployment + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Deployment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Deployment"; + }; + + /** + * State enum. + * @name google.cloud.dialogflow.cx.v3beta1.Deployment.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} RUNNING=1 RUNNING value + * @property {number} SUCCEEDED=2 SUCCEEDED value + * @property {number} FAILED=3 FAILED value + */ + Deployment.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RUNNING"] = 1; + values[valuesById[2] = "SUCCEEDED"] = 2; + values[valuesById[3] = "FAILED"] = 3; + return values; })(); - ResponseMessage.TelephonyTransferCall = (function() { + Deployment.Result = (function() { /** - * Properties of a TelephonyTransferCall. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface ITelephonyTransferCall - * @property {string|null} [phoneNumber] TelephonyTransferCall phoneNumber + * Properties of a Result. + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @interface IResult + * @property {Array.|null} [deploymentTestResults] Result deploymentTestResults + * @property {string|null} [experiment] Result experiment */ /** - * Constructs a new TelephonyTransferCall. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a TelephonyTransferCall. - * @implements ITelephonyTransferCall + * Constructs a new Result. + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @classdesc Represents a Result. + * @implements IResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult=} [properties] Properties to set */ - function TelephonyTransferCall(properties) { + function Result(properties) { + this.deploymentTestResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98798,89 +106353,92 @@ } /** - * TelephonyTransferCall phoneNumber. - * @member {string|null|undefined} phoneNumber - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * Result deploymentTestResults. + * @member {Array.} deploymentTestResults + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @instance */ - TelephonyTransferCall.prototype.phoneNumber = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Result.prototype.deploymentTestResults = $util.emptyArray; /** - * TelephonyTransferCall endpoint. - * @member {"phoneNumber"|undefined} endpoint - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * Result experiment. + * @member {string} experiment + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @instance */ - Object.defineProperty(TelephonyTransferCall.prototype, "endpoint", { - get: $util.oneOfGetter($oneOfFields = ["phoneNumber"]), - set: $util.oneOfSetter($oneOfFields) - }); + Result.prototype.experiment = ""; /** - * Creates a new TelephonyTransferCall instance using the specified properties. + * Creates a new Result instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall instance + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result instance */ - TelephonyTransferCall.create = function create(properties) { - return new TelephonyTransferCall(properties); + Result.create = function create(properties) { + return new Result(properties); }; /** - * Encodes the specified TelephonyTransferCall message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall} message TelephonyTransferCall message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult} message Result message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TelephonyTransferCall.encode = function encode(message, writer) { + Result.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.phoneNumber); + if (message.deploymentTestResults != null && message.deploymentTestResults.length) + for (var i = 0; i < message.deploymentTestResults.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deploymentTestResults[i]); + if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.experiment); return writer; }; /** - * Encodes the specified TelephonyTransferCall message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall} message TelephonyTransferCall message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult} message Result message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TelephonyTransferCall.encodeDelimited = function encodeDelimited(message, writer) { + Result.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TelephonyTransferCall message from the specified reader or buffer. + * Decodes a Result message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.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.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TelephonyTransferCall.decode = function decode(reader, length) { + 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.ResponseMessage.TelephonyTransferCall(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.phoneNumber = reader.string(); + if (!(message.deploymentTestResults && message.deploymentTestResults.length)) + message.deploymentTestResults = []; + message.deploymentTestResults.push(reader.string()); + break; + } + case 2: { + message.experiment = reader.string(); break; } default: @@ -98892,310 +106450,148 @@ }; /** - * Decodes a TelephonyTransferCall message from the specified reader or buffer, length delimited. + * Decodes a Result message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TelephonyTransferCall.decodeDelimited = function decodeDelimited(reader) { + Result.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TelephonyTransferCall message. + * Verifies a Result message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TelephonyTransferCall.verify = function verify(message) { + Result.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { - properties.endpoint = 1; - if (!$util.isString(message.phoneNumber)) - return "phoneNumber: string expected"; + if (message.deploymentTestResults != null && message.hasOwnProperty("deploymentTestResults")) { + if (!Array.isArray(message.deploymentTestResults)) + return "deploymentTestResults: array expected"; + for (var i = 0; i < message.deploymentTestResults.length; ++i) + if (!$util.isString(message.deploymentTestResults[i])) + return "deploymentTestResults: string[] expected"; } + if (message.experiment != null && message.hasOwnProperty("experiment")) + if (!$util.isString(message.experiment)) + return "experiment: string expected"; return null; }; /** - * Creates a TelephonyTransferCall message from a plain object. Also converts values to their respective internal types. + * Creates a Result message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result */ - TelephonyTransferCall.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall) + Result.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall(); - if (object.phoneNumber != null) - message.phoneNumber = String(object.phoneNumber); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(); + if (object.deploymentTestResults) { + if (!Array.isArray(object.deploymentTestResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.Result.deploymentTestResults: array expected"); + message.deploymentTestResults = []; + for (var i = 0; i < object.deploymentTestResults.length; ++i) + message.deploymentTestResults[i] = String(object.deploymentTestResults[i]); + } + if (object.experiment != null) + message.experiment = String(object.experiment); return message; }; /** - * Creates a plain object from a TelephonyTransferCall message. Also converts values to other types if specified. + * Creates a plain object from a Result message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall} message TelephonyTransferCall + * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} message Result * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TelephonyTransferCall.toObject = function toObject(message, options) { + Result.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) { - object.phoneNumber = message.phoneNumber; - if (options.oneofs) - object.endpoint = "phoneNumber"; + if (options.arrays || options.defaults) + object.deploymentTestResults = []; + if (options.defaults) + object.experiment = ""; + if (message.deploymentTestResults && message.deploymentTestResults.length) { + object.deploymentTestResults = []; + for (var j = 0; j < message.deploymentTestResults.length; ++j) + object.deploymentTestResults[j] = message.deploymentTestResults[j]; } + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = message.experiment; return object; }; /** - * Converts this TelephonyTransferCall to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall - * @instance - * @returns {Object.} JSON object - */ - TelephonyTransferCall.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for TelephonyTransferCall - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TelephonyTransferCall.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall"; - }; - - return TelephonyTransferCall; - })(); - - ResponseMessage.KnowledgeInfoCard = (function() { - - /** - * Properties of a KnowledgeInfoCard. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IKnowledgeInfoCard - */ - - /** - * Constructs a new KnowledgeInfoCard. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a KnowledgeInfoCard. - * @implements IKnowledgeInfoCard - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard=} [properties] Properties to set - */ - function KnowledgeInfoCard(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 KnowledgeInfoCard instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard} KnowledgeInfoCard instance - */ - KnowledgeInfoCard.create = function create(properties) { - return new KnowledgeInfoCard(properties); - }; - - /** - * Encodes the specified KnowledgeInfoCard message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard} message KnowledgeInfoCard message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KnowledgeInfoCard.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Encodes the specified KnowledgeInfoCard message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IKnowledgeInfoCard} message KnowledgeInfoCard message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KnowledgeInfoCard.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a KnowledgeInfoCard message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard - * @static - * @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.ResponseMessage.KnowledgeInfoCard} KnowledgeInfoCard - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KnowledgeInfoCard.decode = function decode(reader, length) { - 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.ResponseMessage.KnowledgeInfoCard(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a KnowledgeInfoCard message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard} KnowledgeInfoCard - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KnowledgeInfoCard.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a KnowledgeInfoCard message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KnowledgeInfoCard.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Creates a KnowledgeInfoCard message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard} KnowledgeInfoCard - */ - KnowledgeInfoCard.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard) - return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard(); - }; - - /** - * Creates a plain object from a KnowledgeInfoCard message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard} message KnowledgeInfoCard - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KnowledgeInfoCard.toObject = function toObject() { - return {}; - }; - - /** - * Converts this KnowledgeInfoCard to JSON. + * Converts this Result to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @instance * @returns {Object.} JSON object */ - KnowledgeInfoCard.prototype.toJSON = function toJSON() { + Result.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for KnowledgeInfoCard + * Gets the default type url for Result * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard + * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - KnowledgeInfoCard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Result.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Deployment.Result"; }; - return KnowledgeInfoCard; + return Result; })(); - return ResponseMessage; + return Deployment; })(); - v3beta1.ValidationMessage = (function() { + v3beta1.ListDeploymentsRequest = (function() { /** - * Properties of a ValidationMessage. + * Properties of a ListDeploymentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IValidationMessage - * @property {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|null} [resourceType] ValidationMessage resourceType - * @property {Array.|null} [resources] ValidationMessage resources - * @property {Array.|null} [resourceNames] ValidationMessage resourceNames - * @property {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|null} [severity] ValidationMessage severity - * @property {string|null} [detail] ValidationMessage detail + * @interface IListDeploymentsRequest + * @property {string|null} [parent] ListDeploymentsRequest parent + * @property {number|null} [pageSize] ListDeploymentsRequest pageSize + * @property {string|null} [pageToken] ListDeploymentsRequest pageToken */ /** - * Constructs a new ValidationMessage. + * Constructs a new ListDeploymentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ValidationMessage. - * @implements IValidationMessage + * @classdesc Represents a ListDeploymentsRequest. + * @implements IListDeploymentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest=} [properties] Properties to set */ - function ValidationMessage(properties) { - this.resources = []; - this.resourceNames = []; + function ListDeploymentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99203,137 +106599,103 @@ } /** - * ValidationMessage resourceType. - * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType} resourceType - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @instance - */ - ValidationMessage.prototype.resourceType = 0; - - /** - * ValidationMessage resources. - * @member {Array.} resources - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @instance - */ - ValidationMessage.prototype.resources = $util.emptyArray; - - /** - * ValidationMessage resourceNames. - * @member {Array.} resourceNames - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * ListDeploymentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @instance */ - ValidationMessage.prototype.resourceNames = $util.emptyArray; + ListDeploymentsRequest.prototype.parent = ""; /** - * ValidationMessage severity. - * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity} severity - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * ListDeploymentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @instance */ - ValidationMessage.prototype.severity = 0; + ListDeploymentsRequest.prototype.pageSize = 0; /** - * ValidationMessage detail. - * @member {string} detail - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * ListDeploymentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @instance */ - ValidationMessage.prototype.detail = ""; + ListDeploymentsRequest.prototype.pageToken = ""; /** - * Creates a new ValidationMessage instance using the specified properties. + * Creates a new ListDeploymentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest instance */ - ValidationMessage.create = function create(properties) { - return new ValidationMessage(properties); + ListDeploymentsRequest.create = function create(properties) { + return new ListDeploymentsRequest(properties); }; /** - * Encodes the specified ValidationMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. + * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage} message ValidationMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidationMessage.encode = function encode(message, writer) { + ListDeploymentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.resources != null && message.resources.length) - for (var i = 0; i < message.resources.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.resources[i]); - if (message.severity != null && Object.hasOwnProperty.call(message, "severity")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.severity); - if (message.detail != null && Object.hasOwnProperty.call(message, "detail")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.detail); - if (message.resourceNames != null && message.resourceNames.length) - for (var i = 0; i < message.resourceNames.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.encode(message.resourceNames[i], 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); return writer; }; /** - * Encodes the specified ValidationMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. + * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage} message ValidationMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} message ListDeploymentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidationMessage.encodeDelimited = function encodeDelimited(message, writer) { + ListDeploymentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidationMessage message from the specified reader or buffer. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static * @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.ValidationMessage} ValidationMessage + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidationMessage.decode = function decode(reader, length) { + ListDeploymentsRequest.decode = function decode(reader, length) { 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.ValidationMessage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.resourceType = reader.int32(); + message.parent = reader.string(); break; } case 2: { - if (!(message.resources && message.resources.length)) - message.resources = []; - message.resources.push(reader.string()); - break; - } - case 6: { - if (!(message.resourceNames && message.resourceNames.length)) - message.resourceNames = []; - message.resourceNames.push($root.google.cloud.dialogflow.cx.v3beta1.ResourceName.decode(reader, reader.uint32())); + message.pageSize = reader.int32(); break; } case 3: { - message.severity = reader.int32(); - break; - } - case 4: { - message.detail = reader.string(); + message.pageToken = reader.string(); break; } default: @@ -99345,358 +106707,141 @@ }; /** - * Decodes a ValidationMessage message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidationMessage.decodeDelimited = function decodeDelimited(reader) { + ListDeploymentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidationMessage message. + * Verifies a ListDeploymentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidationMessage.verify = function verify(message) { + ListDeploymentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 8: - case 9: - case 10: - case 11: - case 3: - case 12: - case 4: - case 5: - case 6: - case 13: - case 7: - case 14: - break; - } - if (message.resources != null && message.hasOwnProperty("resources")) { - if (!Array.isArray(message.resources)) - return "resources: array expected"; - for (var i = 0; i < message.resources.length; ++i) - if (!$util.isString(message.resources[i])) - return "resources: string[] expected"; - } - if (message.resourceNames != null && message.hasOwnProperty("resourceNames")) { - if (!Array.isArray(message.resourceNames)) - return "resourceNames: array expected"; - for (var i = 0; i < message.resourceNames.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.verify(message.resourceNames[i]); - if (error) - return "resourceNames." + error; - } - } - if (message.severity != null && message.hasOwnProperty("severity")) - switch (message.severity) { - default: - return "severity: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.detail != null && message.hasOwnProperty("detail")) - if (!$util.isString(message.detail)) - return "detail: 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 ValidationMessage message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest */ - ValidationMessage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage) + ListDeploymentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage(); - switch (object.resourceType) { - default: - if (typeof object.resourceType === "number") { - message.resourceType = object.resourceType; - break; - } - break; - case "RESOURCE_TYPE_UNSPECIFIED": - case 0: - message.resourceType = 0; - break; - case "AGENT": - case 1: - message.resourceType = 1; - break; - case "INTENT": - case 2: - message.resourceType = 2; - break; - case "INTENT_TRAINING_PHRASE": - case 8: - message.resourceType = 8; - break; - case "INTENT_PARAMETER": - case 9: - message.resourceType = 9; - break; - case "INTENTS": - case 10: - message.resourceType = 10; - break; - case "INTENT_TRAINING_PHRASES": - case 11: - message.resourceType = 11; - break; - case "ENTITY_TYPE": - case 3: - message.resourceType = 3; - break; - case "ENTITY_TYPES": - case 12: - message.resourceType = 12; - break; - case "WEBHOOK": - case 4: - message.resourceType = 4; - break; - case "FLOW": - case 5: - message.resourceType = 5; - break; - case "PAGE": - case 6: - message.resourceType = 6; - break; - case "PAGES": - case 13: - message.resourceType = 13; - break; - case "TRANSITION_ROUTE_GROUP": - case 7: - message.resourceType = 7; - break; - case "AGENT_TRANSITION_ROUTE_GROUP": - case 14: - message.resourceType = 14; - break; - } - if (object.resources) { - if (!Array.isArray(object.resources)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resources: array expected"); - message.resources = []; - for (var i = 0; i < object.resources.length; ++i) - message.resources[i] = String(object.resources[i]); - } - if (object.resourceNames) { - if (!Array.isArray(object.resourceNames)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resourceNames: array expected"); - message.resourceNames = []; - for (var i = 0; i < object.resourceNames.length; ++i) { - if (typeof object.resourceNames[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ValidationMessage.resourceNames: object expected"); - message.resourceNames[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.fromObject(object.resourceNames[i]); - } - } - switch (object.severity) { - default: - if (typeof object.severity === "number") { - message.severity = object.severity; - break; - } - break; - case "SEVERITY_UNSPECIFIED": - case 0: - message.severity = 0; - break; - case "INFO": - case 1: - message.severity = 1; - break; - case "WARNING": - case 2: - message.severity = 2; - break; - case "ERROR": - case 3: - message.severity = 3; - break; - } - if (object.detail != null) - message.detail = String(object.detail); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest(); + 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 ValidationMessage message. Also converts values to other types if specified. + * Creates a plain object from a ListDeploymentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} message ValidationMessage + * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} message ListDeploymentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidationMessage.toObject = function toObject(message, options) { + ListDeploymentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.resources = []; - object.resourceNames = []; - } if (options.defaults) { - object.resourceType = options.enums === String ? "RESOURCE_TYPE_UNSPECIFIED" : 0; - object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0; - object.detail = ""; - } - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - object.resourceType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType[message.resourceType] === undefined ? message.resourceType : $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType[message.resourceType] : message.resourceType; - if (message.resources && message.resources.length) { - object.resources = []; - for (var j = 0; j < message.resources.length; ++j) - object.resources[j] = message.resources[j]; - } - if (message.severity != null && message.hasOwnProperty("severity")) - object.severity = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity[message.severity] === undefined ? message.severity : $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity[message.severity] : message.severity; - if (message.detail != null && message.hasOwnProperty("detail")) - object.detail = message.detail; - if (message.resourceNames && message.resourceNames.length) { - object.resourceNames = []; - for (var j = 0; j < message.resourceNames.length; ++j) - object.resourceNames[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResourceName.toObject(message.resourceNames[j], options); + 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 ValidationMessage to JSON. + * Converts this ListDeploymentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @instance * @returns {Object.} JSON object */ - ValidationMessage.prototype.toJSON = function toJSON() { + ListDeploymentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidationMessage + * Gets the default type url for ListDeploymentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidationMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDeploymentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidationMessage"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest"; }; - /** - * ResourceType enum. - * @name google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType - * @enum {number} - * @property {number} RESOURCE_TYPE_UNSPECIFIED=0 RESOURCE_TYPE_UNSPECIFIED value - * @property {number} AGENT=1 AGENT value - * @property {number} INTENT=2 INTENT value - * @property {number} INTENT_TRAINING_PHRASE=8 INTENT_TRAINING_PHRASE value - * @property {number} INTENT_PARAMETER=9 INTENT_PARAMETER value - * @property {number} INTENTS=10 INTENTS value - * @property {number} INTENT_TRAINING_PHRASES=11 INTENT_TRAINING_PHRASES value - * @property {number} ENTITY_TYPE=3 ENTITY_TYPE value - * @property {number} ENTITY_TYPES=12 ENTITY_TYPES value - * @property {number} WEBHOOK=4 WEBHOOK value - * @property {number} FLOW=5 FLOW value - * @property {number} PAGE=6 PAGE value - * @property {number} PAGES=13 PAGES value - * @property {number} TRANSITION_ROUTE_GROUP=7 TRANSITION_ROUTE_GROUP value - * @property {number} AGENT_TRANSITION_ROUTE_GROUP=14 AGENT_TRANSITION_ROUTE_GROUP value - */ - ValidationMessage.ResourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESOURCE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AGENT"] = 1; - values[valuesById[2] = "INTENT"] = 2; - values[valuesById[8] = "INTENT_TRAINING_PHRASE"] = 8; - values[valuesById[9] = "INTENT_PARAMETER"] = 9; - values[valuesById[10] = "INTENTS"] = 10; - values[valuesById[11] = "INTENT_TRAINING_PHRASES"] = 11; - values[valuesById[3] = "ENTITY_TYPE"] = 3; - values[valuesById[12] = "ENTITY_TYPES"] = 12; - values[valuesById[4] = "WEBHOOK"] = 4; - values[valuesById[5] = "FLOW"] = 5; - values[valuesById[6] = "PAGE"] = 6; - values[valuesById[13] = "PAGES"] = 13; - values[valuesById[7] = "TRANSITION_ROUTE_GROUP"] = 7; - values[valuesById[14] = "AGENT_TRANSITION_ROUTE_GROUP"] = 14; - return values; - })(); - - /** - * Severity enum. - * @name google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity - * @enum {number} - * @property {number} SEVERITY_UNSPECIFIED=0 SEVERITY_UNSPECIFIED value - * @property {number} INFO=1 INFO value - * @property {number} WARNING=2 WARNING value - * @property {number} ERROR=3 ERROR value - */ - ValidationMessage.Severity = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SEVERITY_UNSPECIFIED"] = 0; - values[valuesById[1] = "INFO"] = 1; - values[valuesById[2] = "WARNING"] = 2; - values[valuesById[3] = "ERROR"] = 3; - return values; - })(); - - return ValidationMessage; + return ListDeploymentsRequest; })(); - v3beta1.ResourceName = (function() { + v3beta1.ListDeploymentsResponse = (function() { /** - * Properties of a ResourceName. + * Properties of a ListDeploymentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IResourceName - * @property {string|null} [name] ResourceName name - * @property {string|null} [displayName] ResourceName displayName + * @interface IListDeploymentsResponse + * @property {Array.|null} [deployments] ListDeploymentsResponse deployments + * @property {string|null} [nextPageToken] ListDeploymentsResponse nextPageToken */ /** - * Constructs a new ResourceName. + * Constructs a new ListDeploymentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ResourceName. - * @implements IResourceName + * @classdesc Represents a ListDeploymentsResponse. + * @implements IListDeploymentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse=} [properties] Properties to set */ - function ResourceName(properties) { + function ListDeploymentsResponse(properties) { + this.deployments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99704,89 +106849,92 @@ } /** - * ResourceName name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * ListDeploymentsResponse deployments. + * @member {Array.} deployments + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @instance */ - ResourceName.prototype.name = ""; + ListDeploymentsResponse.prototype.deployments = $util.emptyArray; /** - * ResourceName displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * ListDeploymentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @instance */ - ResourceName.prototype.displayName = ""; + ListDeploymentsResponse.prototype.nextPageToken = ""; /** - * Creates a new ResourceName instance using the specified properties. + * Creates a new ListDeploymentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse instance */ - ResourceName.create = function create(properties) { - return new ResourceName(properties); + ListDeploymentsResponse.create = function create(properties) { + return new ListDeploymentsResponse(properties); }; /** - * Encodes the specified ResourceName message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. + * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName} message ResourceName message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceName.encode = function encode(message, writer) { + ListDeploymentsResponse.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.deployments != null && message.deployments.length) + for (var i = 0; i < message.deployments.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Deployment.encode(message.deployments[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 ResourceName message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. + * Encodes the specified ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName} message ResourceName message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse} message ListDeploymentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceName.encodeDelimited = function encodeDelimited(message, writer) { + ListDeploymentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourceName message from the specified reader or buffer. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static * @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.ResourceName} ResourceName + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceName.decode = function decode(reader, length) { + ListDeploymentsResponse.decode = function decode(reader, length) { 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.ResourceName(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.deployments && message.deployments.length)) + message.deployments = []; + message.deployments.push($root.google.cloud.dialogflow.cx.v3beta1.Deployment.decode(reader, reader.uint32())); break; } case 2: { - message.displayName = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -99798,135 +106946,148 @@ }; /** - * Decodes a ResourceName message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceName.decodeDelimited = function decodeDelimited(reader) { + ListDeploymentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourceName message. + * Verifies a ListDeploymentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourceName.verify = function verify(message) { + ListDeploymentsResponse.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.deployments != null && message.hasOwnProperty("deployments")) { + if (!Array.isArray(message.deployments)) + return "deployments: array expected"; + for (var i = 0; i < message.deployments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.verify(message.deployments[i]); + if (error) + return "deployments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ResourceName message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName + * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse */ - ResourceName.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResourceName) + ListDeploymentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResourceName(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse(); + if (object.deployments) { + if (!Array.isArray(object.deployments)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.deployments: array expected"); + message.deployments = []; + for (var i = 0; i < object.deployments.length; ++i) { + if (typeof object.deployments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.deployments: object expected"); + message.deployments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.fromObject(object.deployments[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ResourceName message. Also converts values to other types if specified. + * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResourceName} message ResourceName + * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} message ListDeploymentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourceName.toObject = function toObject(message, options) { + ListDeploymentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; + if (options.arrays || options.defaults) + object.deployments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.deployments && message.deployments.length) { + object.deployments = []; + for (var j = 0; j < message.deployments.length; ++j) + object.deployments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.toObject(message.deployments[j], 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ResourceName to JSON. + * Converts this ListDeploymentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @instance * @returns {Object.} JSON object */ - ResourceName.prototype.toJSON = function toJSON() { + ListDeploymentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResourceName + * Gets the default type url for ListDeploymentsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName + * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResourceName.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDeploymentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResourceName"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse"; }; - return ResourceName; + return ListDeploymentsResponse; })(); - v3beta1.GenerativeSettings = (function() { + v3beta1.GetDeploymentRequest = (function() { /** - * Properties of a GenerativeSettings. + * Properties of a GetDeploymentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGenerativeSettings - * @property {string|null} [name] GenerativeSettings name - * @property {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings|null} [fallbackSettings] GenerativeSettings fallbackSettings - * @property {google.cloud.dialogflow.cx.v3beta1.ISafetySettings|null} [generativeSafetySettings] GenerativeSettings generativeSafetySettings - * @property {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings|null} [knowledgeConnectorSettings] GenerativeSettings knowledgeConnectorSettings - * @property {string|null} [languageCode] GenerativeSettings languageCode + * @interface IGetDeploymentRequest + * @property {string|null} [name] GetDeploymentRequest name */ /** - * Constructs a new GenerativeSettings. + * Constructs a new GetDeploymentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GenerativeSettings. - * @implements IGenerativeSettings + * @classdesc Represents a GetDeploymentRequest. + * @implements IGetDeploymentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest=} [properties] Properties to set */ - function GenerativeSettings(properties) { + function GetDeploymentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99934,131 +107095,75 @@ } /** - * GenerativeSettings name. + * GetDeploymentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings - * @instance - */ - GenerativeSettings.prototype.name = ""; - - /** - * GenerativeSettings fallbackSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings|null|undefined} fallbackSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings - * @instance - */ - GenerativeSettings.prototype.fallbackSettings = null; - - /** - * GenerativeSettings generativeSafetySettings. - * @member {google.cloud.dialogflow.cx.v3beta1.ISafetySettings|null|undefined} generativeSafetySettings - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings - * @instance - */ - GenerativeSettings.prototype.generativeSafetySettings = null; - - /** - * GenerativeSettings knowledgeConnectorSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings|null|undefined} knowledgeConnectorSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings - * @instance - */ - GenerativeSettings.prototype.knowledgeConnectorSettings = null; - - /** - * GenerativeSettings languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @instance */ - GenerativeSettings.prototype.languageCode = ""; + GetDeploymentRequest.prototype.name = ""; /** - * Creates a new GenerativeSettings instance using the specified properties. + * Creates a new GetDeploymentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} GenerativeSettings instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest instance */ - GenerativeSettings.create = function create(properties) { - return new GenerativeSettings(properties); + GetDeploymentRequest.create = function create(properties) { + return new GetDeploymentRequest(properties); }; /** - * Encodes the specified GenerativeSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify|verify} messages. + * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings} message GenerativeSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerativeSettings.encode = function encode(message, writer) { + GetDeploymentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fallbackSettings != null && Object.hasOwnProperty.call(message, "fallbackSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.encode(message.fallbackSettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.generativeSafetySettings != null && Object.hasOwnProperty.call(message, "generativeSafetySettings")) - $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.encode(message.generativeSafetySettings, 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.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); - if (message.knowledgeConnectorSettings != null && Object.hasOwnProperty.call(message, "knowledgeConnectorSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.encode(message.knowledgeConnectorSettings, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified GenerativeSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.verify|verify} messages. + * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGenerativeSettings} message GenerativeSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} message GetDeploymentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenerativeSettings.encodeDelimited = function encodeDelimited(message, writer) { + GetDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenerativeSettings message from the specified reader or buffer. + * Decodes a GetDeploymentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static * @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.GenerativeSettings} GenerativeSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerativeSettings.decode = function decode(reader, length) { + GetDeploymentRequest.decode = function decode(reader, length) { 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.GenerativeSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 5: { - message.name = reader.string(); - break; - } case 1: { - message.fallbackSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.decode(reader, reader.uint32()); - break; - } - case 3: { - message.generativeSafetySettings = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.decode(reader, reader.uint32()); - break; - } - case 7: { - message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.decode(reader, reader.uint32()); - break; - } - case 4: { - message.languageCode = reader.string(); + message.name = reader.string(); break; } default: @@ -100070,965 +107175,331 @@ }; /** - * Decodes a GenerativeSettings message from the specified reader or buffer, length delimited. + * Decodes a GetDeploymentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} GenerativeSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenerativeSettings.decodeDelimited = function decodeDelimited(reader) { + GetDeploymentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenerativeSettings message. + * Verifies a GetDeploymentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenerativeSettings.verify = function verify(message) { + GetDeploymentRequest.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.fallbackSettings != null && message.hasOwnProperty("fallbackSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify(message.fallbackSettings); - if (error) - return "fallbackSettings." + error; - } - if (message.generativeSafetySettings != null && message.hasOwnProperty("generativeSafetySettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.verify(message.generativeSafetySettings); - if (error) - return "generativeSafetySettings." + error; - } - if (message.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify(message.knowledgeConnectorSettings); - if (error) - return "knowledgeConnectorSettings." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a GenerativeSettings message from a plain object. Also converts values to their respective internal types. + * Creates a GetDeploymentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} GenerativeSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest */ - GenerativeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings) + GetDeploymentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest(); if (object.name != null) message.name = String(object.name); - if (object.fallbackSettings != null) { - if (typeof object.fallbackSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.fallbackSettings: object expected"); - message.fallbackSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.fromObject(object.fallbackSettings); - } - if (object.generativeSafetySettings != null) { - if (typeof object.generativeSafetySettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.generativeSafetySettings: object expected"); - message.generativeSafetySettings = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.fromObject(object.generativeSafetySettings); - } - if (object.knowledgeConnectorSettings != null) { - if (typeof object.knowledgeConnectorSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.knowledgeConnectorSettings: object expected"); - message.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.fromObject(object.knowledgeConnectorSettings); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a GenerativeSettings message. Also converts values to other types if specified. + * Creates a plain object from a GetDeploymentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings} message GenerativeSettings + * @param {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} message GetDeploymentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenerativeSettings.toObject = function toObject(message, options) { + GetDeploymentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.fallbackSettings = null; - object.generativeSafetySettings = null; - object.languageCode = ""; + if (options.defaults) object.name = ""; - object.knowledgeConnectorSettings = null; - } - if (message.fallbackSettings != null && message.hasOwnProperty("fallbackSettings")) - object.fallbackSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.toObject(message.fallbackSettings, options); - if (message.generativeSafetySettings != null && message.hasOwnProperty("generativeSafetySettings")) - object.generativeSafetySettings = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.toObject(message.generativeSafetySettings, 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.knowledgeConnectorSettings != null && message.hasOwnProperty("knowledgeConnectorSettings")) - object.knowledgeConnectorSettings = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.toObject(message.knowledgeConnectorSettings, options); return object; }; /** - * Converts this GenerativeSettings to JSON. + * Converts this GetDeploymentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @instance * @returns {Object.} JSON object */ - GenerativeSettings.prototype.toJSON = function toJSON() { + GetDeploymentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GenerativeSettings + * Gets the default type url for GetDeploymentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GenerativeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GenerativeSettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest"; }; - GenerativeSettings.FallbackSettings = (function() { - - /** - * Properties of a FallbackSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings - * @interface IFallbackSettings - * @property {string|null} [selectedPrompt] FallbackSettings selectedPrompt - * @property {Array.|null} [promptTemplates] FallbackSettings promptTemplates - */ - - /** - * Constructs a new FallbackSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings - * @classdesc Represents a FallbackSettings. - * @implements IFallbackSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings=} [properties] Properties to set - */ - function FallbackSettings(properties) { - this.promptTemplates = []; - 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]]; - } - - /** - * FallbackSettings selectedPrompt. - * @member {string} selectedPrompt - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @instance - */ - FallbackSettings.prototype.selectedPrompt = ""; - - /** - * FallbackSettings promptTemplates. - * @member {Array.} promptTemplates - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @instance - */ - FallbackSettings.prototype.promptTemplates = $util.emptyArray; - - /** - * Creates a new FallbackSettings instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings} FallbackSettings instance - */ - FallbackSettings.create = function create(properties) { - return new FallbackSettings(properties); - }; - - /** - * Encodes the specified FallbackSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings} message FallbackSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FallbackSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.selectedPrompt != null && Object.hasOwnProperty.call(message, "selectedPrompt")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.selectedPrompt); - if (message.promptTemplates != null && message.promptTemplates.length) - for (var i = 0; i < message.promptTemplates.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.encode(message.promptTemplates[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FallbackSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IFallbackSettings} message FallbackSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FallbackSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FallbackSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @static - * @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.GenerativeSettings.FallbackSettings} FallbackSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FallbackSettings.decode = function decode(reader, length) { - 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.GenerativeSettings.FallbackSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: { - message.selectedPrompt = reader.string(); - break; - } - case 4: { - if (!(message.promptTemplates && message.promptTemplates.length)) - message.promptTemplates = []; - message.promptTemplates.push($root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FallbackSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings} FallbackSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FallbackSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FallbackSettings message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FallbackSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.selectedPrompt != null && message.hasOwnProperty("selectedPrompt")) - if (!$util.isString(message.selectedPrompt)) - return "selectedPrompt: string expected"; - if (message.promptTemplates != null && message.hasOwnProperty("promptTemplates")) { - if (!Array.isArray(message.promptTemplates)) - return "promptTemplates: array expected"; - for (var i = 0; i < message.promptTemplates.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify(message.promptTemplates[i]); - if (error) - return "promptTemplates." + error; - } - } - return null; - }; - - /** - * Creates a FallbackSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings} FallbackSettings - */ - FallbackSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings(); - if (object.selectedPrompt != null) - message.selectedPrompt = String(object.selectedPrompt); - if (object.promptTemplates) { - if (!Array.isArray(object.promptTemplates)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.promptTemplates: array expected"); - message.promptTemplates = []; - for (var i = 0; i < object.promptTemplates.length; ++i) { - if (typeof object.promptTemplates[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.promptTemplates: object expected"); - message.promptTemplates[i] = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.fromObject(object.promptTemplates[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FallbackSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings} message FallbackSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FallbackSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.promptTemplates = []; - if (options.defaults) - object.selectedPrompt = ""; - if (message.selectedPrompt != null && message.hasOwnProperty("selectedPrompt")) - object.selectedPrompt = message.selectedPrompt; - if (message.promptTemplates && message.promptTemplates.length) { - object.promptTemplates = []; - for (var j = 0; j < message.promptTemplates.length; ++j) - object.promptTemplates[j] = $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.toObject(message.promptTemplates[j], options); - } - return object; - }; - - /** - * Converts this FallbackSettings to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @instance - * @returns {Object.} JSON object - */ - FallbackSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FallbackSettings - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FallbackSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings"; - }; - - FallbackSettings.PromptTemplate = (function() { - - /** - * Properties of a PromptTemplate. - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @interface IPromptTemplate - * @property {string|null} [displayName] PromptTemplate displayName - * @property {string|null} [promptText] PromptTemplate promptText - * @property {boolean|null} [frozen] PromptTemplate frozen - */ - - /** - * Constructs a new PromptTemplate. - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings - * @classdesc Represents a PromptTemplate. - * @implements IPromptTemplate - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate=} [properties] Properties to set - */ - function PromptTemplate(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]]; - } - - /** - * PromptTemplate displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @instance - */ - PromptTemplate.prototype.displayName = ""; - - /** - * PromptTemplate promptText. - * @member {string} promptText - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @instance - */ - PromptTemplate.prototype.promptText = ""; - - /** - * PromptTemplate frozen. - * @member {boolean} frozen - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @instance - */ - PromptTemplate.prototype.frozen = false; - - /** - * Creates a new PromptTemplate instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate} PromptTemplate instance - */ - PromptTemplate.create = function create(properties) { - return new PromptTemplate(properties); - }; - - /** - * Encodes the specified PromptTemplate message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate} message PromptTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PromptTemplate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.promptText != null && Object.hasOwnProperty.call(message, "promptText")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.promptText); - if (message.frozen != null && Object.hasOwnProperty.call(message, "frozen")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.frozen); - return writer; - }; - - /** - * Encodes the specified PromptTemplate message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.IPromptTemplate} message PromptTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PromptTemplate.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PromptTemplate message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @static - * @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.GenerativeSettings.FallbackSettings.PromptTemplate} PromptTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PromptTemplate.decode = function decode(reader, length) { - 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.GenerativeSettings.FallbackSettings.PromptTemplate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.displayName = reader.string(); - break; - } - case 2: { - message.promptText = reader.string(); - break; - } - case 3: { - message.frozen = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PromptTemplate message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate} PromptTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PromptTemplate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PromptTemplate message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PromptTemplate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.promptText != null && message.hasOwnProperty("promptText")) - if (!$util.isString(message.promptText)) - return "promptText: string expected"; - if (message.frozen != null && message.hasOwnProperty("frozen")) - if (typeof message.frozen !== "boolean") - return "frozen: boolean expected"; - return null; - }; - - /** - * Creates a PromptTemplate message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate} PromptTemplate - */ - PromptTemplate.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.promptText != null) - message.promptText = String(object.promptText); - if (object.frozen != null) - message.frozen = Boolean(object.frozen); - return message; - }; - - /** - * Creates a plain object from a PromptTemplate message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate} message PromptTemplate - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PromptTemplate.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.displayName = ""; - object.promptText = ""; - object.frozen = false; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.promptText != null && message.hasOwnProperty("promptText")) - object.promptText = message.promptText; - if (message.frozen != null && message.hasOwnProperty("frozen")) - object.frozen = message.frozen; - return object; - }; - - /** - * Converts this PromptTemplate to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @instance - * @returns {Object.} JSON object - */ - PromptTemplate.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PromptTemplate - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PromptTemplate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate"; - }; - - return PromptTemplate; - })(); - - return FallbackSettings; - })(); - - GenerativeSettings.KnowledgeConnectorSettings = (function() { - - /** - * Properties of a KnowledgeConnectorSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings - * @interface IKnowledgeConnectorSettings - * @property {string|null} [business] KnowledgeConnectorSettings business - * @property {string|null} [agent] KnowledgeConnectorSettings agent - * @property {string|null} [agentIdentity] KnowledgeConnectorSettings agentIdentity - * @property {string|null} [businessDescription] KnowledgeConnectorSettings businessDescription - * @property {string|null} [agentScope] KnowledgeConnectorSettings agentScope - */ + return GetDeploymentRequest; + })(); - /** - * Constructs a new KnowledgeConnectorSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings - * @classdesc Represents a KnowledgeConnectorSettings. - * @implements IKnowledgeConnectorSettings - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings=} [properties] Properties to set - */ - function KnowledgeConnectorSettings(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.EntityTypes = (function() { - /** - * KnowledgeConnectorSettings business. - * @member {string} business - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @instance - */ - KnowledgeConnectorSettings.prototype.business = ""; + /** + * 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); + } - /** - * KnowledgeConnectorSettings agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @instance - */ - KnowledgeConnectorSettings.prototype.agent = ""; + (EntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EntityTypes; - /** - * KnowledgeConnectorSettings agentIdentity. - * @member {string} agentIdentity - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @instance - */ - KnowledgeConnectorSettings.prototype.agentIdentity = ""; + /** + * 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); + }; - /** - * KnowledgeConnectorSettings businessDescription. - * @member {string} businessDescription - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @instance - */ - KnowledgeConnectorSettings.prototype.businessDescription = ""; + /** + * 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 + */ - /** - * KnowledgeConnectorSettings agentScope. - * @member {string} agentScope - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @instance - */ - KnowledgeConnectorSettings.prototype.agentScope = ""; + /** + * 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" }); - /** - * Creates a new KnowledgeConnectorSettings instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings} KnowledgeConnectorSettings instance - */ - KnowledgeConnectorSettings.create = function create(properties) { - return new KnowledgeConnectorSettings(properties); - }; + /** + * 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 + */ - /** - * Encodes the specified KnowledgeConnectorSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings} message KnowledgeConnectorSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KnowledgeConnectorSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.business != null && Object.hasOwnProperty.call(message, "business")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.business); - if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.agent); - if (message.agentIdentity != null && Object.hasOwnProperty.call(message, "agentIdentity")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.agentIdentity); - if (message.businessDescription != null && Object.hasOwnProperty.call(message, "businessDescription")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.businessDescription); - if (message.agentScope != null && Object.hasOwnProperty.call(message, "agentScope")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.agentScope); - return writer; - }; + /** + * 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 + */ - /** - * Encodes the specified KnowledgeConnectorSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.IKnowledgeConnectorSettings} message KnowledgeConnectorSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KnowledgeConnectorSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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" }); - /** - * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @static - * @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.GenerativeSettings.KnowledgeConnectorSettings} KnowledgeConnectorSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KnowledgeConnectorSettings.decode = function decode(reader, length) { - 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.GenerativeSettings.KnowledgeConnectorSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.business = reader.string(); - break; - } - case 2: { - message.agent = reader.string(); - break; - } - case 3: { - message.agentIdentity = reader.string(); - break; - } - case 4: { - message.businessDescription = reader.string(); - break; - } - case 5: { - message.agentScope = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * 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 + */ - /** - * Decodes a KnowledgeConnectorSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings} KnowledgeConnectorSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KnowledgeConnectorSettings.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.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 + */ - /** - * Verifies a KnowledgeConnectorSettings message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KnowledgeConnectorSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.business != null && message.hasOwnProperty("business")) - if (!$util.isString(message.business)) - return "business: string expected"; - if (message.agent != null && message.hasOwnProperty("agent")) - if (!$util.isString(message.agent)) - return "agent: string expected"; - if (message.agentIdentity != null && message.hasOwnProperty("agentIdentity")) - if (!$util.isString(message.agentIdentity)) - return "agentIdentity: string expected"; - if (message.businessDescription != null && message.hasOwnProperty("businessDescription")) - if (!$util.isString(message.businessDescription)) - return "businessDescription: string expected"; - if (message.agentScope != null && message.hasOwnProperty("agentScope")) - if (!$util.isString(message.agentScope)) - return "agentScope: string expected"; - return null; - }; + /** + * 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" }); - /** - * Creates a KnowledgeConnectorSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings} KnowledgeConnectorSettings - */ - KnowledgeConnectorSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings(); - if (object.business != null) - message.business = String(object.business); - if (object.agent != null) - message.agent = String(object.agent); - if (object.agentIdentity != null) - message.agentIdentity = String(object.agentIdentity); - if (object.businessDescription != null) - message.businessDescription = String(object.businessDescription); - if (object.agentScope != null) - message.agentScope = String(object.agentScope); - 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 + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a plain object from a KnowledgeConnectorSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings} message KnowledgeConnectorSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - KnowledgeConnectorSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.business = ""; - object.agent = ""; - object.agentIdentity = ""; - object.businessDescription = ""; - object.agentScope = ""; - } - if (message.business != null && message.hasOwnProperty("business")) - object.business = message.business; - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; - if (message.agentIdentity != null && message.hasOwnProperty("agentIdentity")) - object.agentIdentity = message.agentIdentity; - if (message.businessDescription != null && message.hasOwnProperty("businessDescription")) - object.businessDescription = message.businessDescription; - if (message.agentScope != null && message.hasOwnProperty("agentScope")) - object.agentScope = message.agentScope; - return object; - }; + /** + * 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 + */ - /** - * Converts this KnowledgeConnectorSettings to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @instance - * @returns {Object.} JSON object - */ - KnowledgeConnectorSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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" }); - /** - * Gets the default type url for KnowledgeConnectorSettings - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - KnowledgeConnectorSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings"; - }; + /** + * 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 + */ - return KnowledgeConnectorSettings; - })(); + /** + * 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 GenerativeSettings; + /** + * 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 + */ + 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" }); + + /** + * 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.SafetySettings = (function() { + v3beta1.EntityType = (function() { /** - * Properties of a SafetySettings. + * Properties of an EntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISafetySettings - * @property {Array.|null} [bannedPhrases] SafetySettings bannedPhrases + * @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 SafetySettings. + * Constructs a new EntityType. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SafetySettings. - * @implements ISafetySettings + * @classdesc Represents an EntityType. + * @implements IEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISafetySettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set */ - function SafetySettings(properties) { - this.bannedPhrases = []; + 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) @@ -101036,78 +107507,179 @@ } /** - * SafetySettings bannedPhrases. - * @member {Array.} bannedPhrases - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * EntityType name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance */ - SafetySettings.prototype.bannedPhrases = $util.emptyArray; + EntityType.prototype.name = ""; /** - * Creates a new SafetySettings instance using the specified properties. + * 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 + * @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.SafetySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISafetySettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings} SafetySettings instance + * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType instance */ - SafetySettings.create = function create(properties) { - return new SafetySettings(properties); + EntityType.create = function create(properties) { + return new EntityType(properties); }; /** - * Encodes the specified SafetySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.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.SafetySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISafetySettings} message SafetySettings 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 */ - SafetySettings.encode = function encode(message, writer) { + EntityType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bannedPhrases != null && message.bannedPhrases.length) - for (var i = 0; i < message.bannedPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.encode(message.bannedPhrases[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.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 SafetySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.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.SafetySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISafetySettings} message SafetySettings 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 */ - SafetySettings.encodeDelimited = function encodeDelimited(message, writer) { + EntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SafetySettings 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.SafetySettings + * @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.SafetySettings} SafetySettings + * @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 */ - SafetySettings.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.SafetySettings(); + 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: { - if (!(message.bannedPhrases && message.bannedPhrases.length)) - message.bannedPhrases = []; - message.bannedPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + 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: @@ -101119,137 +107691,294 @@ }; /** - * Decodes a SafetySettings 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.SafetySettings + * @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.SafetySettings} SafetySettings + * @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 */ - SafetySettings.decodeDelimited = function decodeDelimited(reader) { + EntityType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SafetySettings message. + * Verifies an EntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @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 */ - SafetySettings.verify = function verify(message) { + EntityType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.bannedPhrases != null && message.hasOwnProperty("bannedPhrases")) { - if (!Array.isArray(message.bannedPhrases)) - return "bannedPhrases: array expected"; - for (var i = 0; i < message.bannedPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify(message.bannedPhrases[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.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { + default: + return "kind: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + 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 "bannedPhrases." + 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 a SafetySettings 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.SafetySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings} SafetySettings + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType */ - SafetySettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings) + 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.SafetySettings(); - if (object.bannedPhrases) { - if (!Array.isArray(object.bannedPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SafetySettings.bannedPhrases: array expected"); - message.bannedPhrases = []; - for (var i = 0; i < object.bannedPhrases.length; ++i) { - if (typeof object.bannedPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SafetySettings.bannedPhrases: object expected"); - message.bannedPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.fromObject(object.bannedPhrases[i]); + 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) { + default: + if (typeof object.kind === "number") { + message.kind = object.kind; + break; + } + break; + 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) { + default: + if (typeof object.autoExpansionMode === "number") { + message.autoExpansionMode = object.autoExpansionMode; + break; + } + break; + 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]); + } + } + 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 a SafetySettings 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.SafetySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings} message SafetySettings + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} message EntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SafetySettings.toObject = function toObject(message, options) { + EntityType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.bannedPhrases = []; - if (message.bannedPhrases && message.bannedPhrases.length) { - object.bannedPhrases = []; - for (var j = 0; j < message.bannedPhrases.length; ++j) - object.bannedPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.toObject(message.bannedPhrases[j], options); + 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] === undefined ? message.kind : $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] === undefined ? message.autoExpansionMode : $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 SafetySettings to JSON. + * Converts this EntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @instance * @returns {Object.} JSON object */ - SafetySettings.prototype.toJSON = function toJSON() { + EntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SafetySettings + * Gets the default type url for EntityType * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SafetySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EntityType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SafetySettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EntityType"; }; - SafetySettings.Phrase = (function() { + /** + * 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 + */ + 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; + })(); + + /** + * 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; + })(); + + EntityType.Entity = (function() { /** - * Properties of a Phrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings - * @interface IPhrase - * @property {string|null} [text] Phrase text - * @property {string|null} [languageCode] Phrase languageCode + * 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 Phrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings - * @classdesc Represents a Phrase. - * @implements IPhrase + * Constructs a new Entity. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @classdesc Represents an Entity. + * @implements IEntity * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set */ - function Phrase(properties) { + function Entity(properties) { + this.synonyms = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101257,89 +107986,92 @@ } /** - * Phrase text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * Entity value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @instance */ - Phrase.prototype.text = ""; + Entity.prototype.value = ""; /** - * Phrase languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * Entity synonyms. + * @member {Array.} synonyms + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @instance */ - Phrase.prototype.languageCode = ""; + Entity.prototype.synonyms = $util.emptyArray; /** - * Creates a new Phrase instance using the specified properties. + * Creates a new Entity instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase} Phrase instance + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity instance */ - Phrase.create = function create(properties) { - return new Phrase(properties); + Entity.create = function create(properties) { + return new Entity(properties); }; /** - * Encodes the specified Phrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify|verify} messages. + * 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.SafetySettings.Phrase + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase} message Phrase message or plain object to encode + * @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 */ - Phrase.encode = function encode(message, writer) { + Entity.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.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 Phrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase.verify|verify} messages. + * 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.SafetySettings.Phrase + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.IPhrase} message Phrase message or plain object to encode + * @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 */ - Phrase.encodeDelimited = function encodeDelimited(message, writer) { + Entity.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Phrase message from the specified reader or buffer. + * Decodes an Entity message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @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.SafetySettings.Phrase} Phrase + * @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 */ - Phrase.decode = function decode(reader, length) { + 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.SafetySettings.Phrase(); + 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.text = reader.string(); + message.value = reader.string(); break; } case 2: { - message.languageCode = reader.string(); + if (!(message.synonyms && message.synonyms.length)) + message.synonyms = []; + message.synonyms.push(reader.string()); break; } default: @@ -101351,238 +108083,352 @@ }; /** - * Decodes a Phrase message from the specified reader or buffer, length delimited. + * Decodes an Entity message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @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.SafetySettings.Phrase} Phrase + * @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 */ - Phrase.decodeDelimited = function decodeDelimited(reader) { + Entity.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Phrase message. + * Verifies an Entity message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @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 */ - Phrase.verify = function verify(message) { + Entity.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.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string 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 a Phrase message from a plain object. Also converts values to their respective internal types. + * Creates an Entity message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase} Phrase + * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity */ - Phrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase) + 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.SafetySettings.Phrase(); - if (object.text != null) - message.text = String(object.text); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + 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 a Phrase message. Also converts values to other types if specified. + * Creates a plain object from an Entity message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase} message Phrase + * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} message Entity * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Phrase.toObject = function toObject(message, options) { + Entity.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.text = ""; - object.languageCode = ""; + 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]; } - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; return object; }; /** - * Converts this Phrase to JSON. + * Converts this Entity to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @instance * @returns {Object.} JSON object */ - Phrase.prototype.toJSON = function toJSON() { + Entity.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Phrase + * Gets the default type url for Entity * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Phrase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Entity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EntityType.Entity"; }; - return Phrase; + return Entity; })(); - return SafetySettings; - })(); + EntityType.ExcludedPhrase = (function() { - v3beta1.Changelogs = (function() { + /** + * Properties of an ExcludedPhrase. + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @interface IExcludedPhrase + * @property {string|null} [value] ExcludedPhrase value + */ - /** - * Constructs a new Changelogs service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Changelogs - * @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 Changelogs(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * 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]]; + } - (Changelogs.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Changelogs; + /** + * ExcludedPhrase value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @instance + */ + ExcludedPhrase.prototype.value = ""; - /** - * Creates new Changelogs service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs - * @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 {Changelogs} RPC service. Useful where requests and/or responses are streamed. - */ - Changelogs.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + /** + * 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); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs|listChangelogs}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs - * @typedef ListChangelogsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} [response] ListChangelogsResponse - */ + /** + * 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 ListChangelogs. - * @function listChangelogs - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} request ListChangelogsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogsCallback} callback Node-style callback called with the error, if any, and ListChangelogsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Changelogs.prototype.listChangelogs = function listChangelogs(request, callback) { - return this.rpcCall(listChangelogs, $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse, request, callback); - }, "name", { value: "ListChangelogs" }); + /** + * 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(); + }; - /** - * Calls ListChangelogs. - * @function listChangelogs - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} request ListChangelogsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * 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; + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Changelogs|getChangelog}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs - * @typedef GetChangelogCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Changelog} [response] Changelog - */ + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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); + }; - /** - * Calls GetChangelog. - * @function getChangelog - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} request GetChangelogRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelogCallback} callback Node-style callback called with the error, if any, and Changelog - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Changelogs.prototype.getChangelog = function getChangelog(request, callback) { - return this.rpcCall(getChangelog, $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest, $root.google.cloud.dialogflow.cx.v3beta1.Changelog, request, callback); - }, "name", { value: "GetChangelog" }); + /** + * Gets the default type url for ExcludedPhrase + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExcludedPhrase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase"; + }; - /** - * Calls GetChangelog. - * @function getChangelog - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelogs - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} request GetChangelogRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return ExcludedPhrase; + })(); - return Changelogs; + return EntityType; })(); - v3beta1.ListChangelogsRequest = (function() { + v3beta1.ListEntityTypesRequest = (function() { /** - * Properties of a ListChangelogsRequest. + * Properties of a ListEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListChangelogsRequest - * @property {string|null} [parent] ListChangelogsRequest parent - * @property {string|null} [filter] ListChangelogsRequest filter - * @property {number|null} [pageSize] ListChangelogsRequest pageSize - * @property {string|null} [pageToken] ListChangelogsRequest pageToken + * @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 ListChangelogsRequest. + * Constructs a new ListEntityTypesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListChangelogsRequest. - * @implements IListChangelogsRequest + * @classdesc Represents a ListEntityTypesRequest. + * @implements IListEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set */ - function ListChangelogsRequest(properties) { + function ListEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101590,65 +108436,65 @@ } /** - * ListChangelogsRequest parent. + * ListEntityTypesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - ListChangelogsRequest.prototype.parent = ""; + ListEntityTypesRequest.prototype.parent = ""; /** - * ListChangelogsRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * ListEntityTypesRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - ListChangelogsRequest.prototype.filter = ""; + ListEntityTypesRequest.prototype.languageCode = ""; /** - * ListChangelogsRequest pageSize. + * ListEntityTypesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - ListChangelogsRequest.prototype.pageSize = 0; + ListEntityTypesRequest.prototype.pageSize = 0; /** - * ListChangelogsRequest pageToken. + * ListEntityTypesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance */ - ListChangelogsRequest.prototype.pageToken = ""; + ListEntityTypesRequest.prototype.pageToken = ""; /** - * Creates a new ListChangelogsRequest instance using the specified properties. + * Creates a new ListEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest instance */ - ListChangelogsRequest.create = function create(properties) { - return new ListChangelogsRequest(properties); + ListEntityTypesRequest.create = function create(properties) { + return new ListEntityTypesRequest(properties); }; /** - * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.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.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} message ListChangelogsRequest 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 */ - ListChangelogsRequest.encode = function encode(message, writer) { + ListEntityTypesRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + 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")) @@ -101657,33 +108503,33 @@ }; /** - * Encodes the specified ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest.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.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsRequest} message ListChangelogsRequest 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 */ - ListChangelogsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListChangelogsRequest 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.ListChangelogsRequest + * @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.ListChangelogsRequest} ListChangelogsRequest + * @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 */ - ListChangelogsRequest.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.ListChangelogsRequest(); + 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) { @@ -101692,7 +108538,7 @@ break; } case 2: { - message.filter = reader.string(); + message.languageCode = reader.string(); break; } case 3: { @@ -101712,38 +108558,38 @@ }; /** - * Decodes a ListChangelogsRequest 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.ListChangelogsRequest + * @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.ListChangelogsRequest} ListChangelogsRequest + * @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 */ - ListChangelogsRequest.decodeDelimited = function decodeDelimited(reader) { + ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListChangelogsRequest message. + * Verifies a ListEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @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 */ - ListChangelogsRequest.verify = function verify(message) { + ListEntityTypesRequest.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: 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"; @@ -101754,21 +108600,21 @@ }; /** - * Creates a ListChangelogsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} ListChangelogsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest */ - ListChangelogsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest) + 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.ListChangelogsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) @@ -101777,28 +108623,28 @@ }; /** - * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest} message ListChangelogsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} message ListEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListChangelogsRequest.toObject = function toObject(message, options) { + ListEntityTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; + object.languageCode = ""; object.pageSize = 0; object.pageToken = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + 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")) @@ -101807,54 +108653,54 @@ }; /** - * Converts this ListChangelogsRequest to JSON. + * Converts this ListEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @instance * @returns {Object.} JSON object */ - ListChangelogsRequest.prototype.toJSON = function toJSON() { + ListEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListChangelogsRequest + * Gets the default type url for ListEntityTypesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListChangelogsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListEntityTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest"; }; - return ListChangelogsRequest; + return ListEntityTypesRequest; })(); - v3beta1.ListChangelogsResponse = (function() { + v3beta1.ListEntityTypesResponse = (function() { /** - * Properties of a ListChangelogsResponse. + * Properties of a ListEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListChangelogsResponse - * @property {Array.|null} [changelogs] ListChangelogsResponse changelogs - * @property {string|null} [nextPageToken] ListChangelogsResponse nextPageToken + * @interface IListEntityTypesResponse + * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes + * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken */ /** - * Constructs a new ListChangelogsResponse. + * Constructs a new ListEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListChangelogsResponse. - * @implements IListChangelogsResponse + * @classdesc Represents a ListEntityTypesResponse. + * @implements IListEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set */ - function ListChangelogsResponse(properties) { - this.changelogs = []; + function ListEntityTypesResponse(properties) { + this.entityTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101862,88 +108708,88 @@ } /** - * ListChangelogsResponse changelogs. - * @member {Array.} changelogs - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * ListEntityTypesResponse entityTypes. + * @member {Array.} entityTypes + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @instance */ - ListChangelogsResponse.prototype.changelogs = $util.emptyArray; + ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; /** - * ListChangelogsResponse nextPageToken. + * ListEntityTypesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @instance */ - ListChangelogsResponse.prototype.nextPageToken = ""; + ListEntityTypesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListChangelogsResponse instance using the specified properties. + * Creates a new ListEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse instance */ - ListChangelogsResponse.create = function create(properties) { - return new ListChangelogsResponse(properties); + ListEntityTypesResponse.create = function create(properties) { + return new ListEntityTypesResponse(properties); }; /** - * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * 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.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode + * @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 */ - ListChangelogsResponse.encode = function encode(message, writer) { + ListEntityTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.changelogs != null && message.changelogs.length) - for (var i = 0; i < message.changelogs.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Changelog.encode(message.changelogs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + 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 ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.verify|verify} messages. + * 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.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListChangelogsResponse} message ListChangelogsResponse message or plain object to encode + * @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 */ - ListChangelogsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @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.ListChangelogsResponse} ListChangelogsResponse + * @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 */ - ListChangelogsResponse.decode = function decode(reader, length) { + 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.ListChangelogsResponse(); + 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.changelogs && message.changelogs.length)) - message.changelogs = []; - message.changelogs.push($root.google.cloud.dialogflow.cx.v3beta1.Changelog.decode(reader, reader.uint32())); + 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: { @@ -101959,39 +108805,39 @@ }; /** - * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse + * @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 */ - ListChangelogsResponse.decodeDelimited = function decodeDelimited(reader) { + ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListChangelogsResponse message. + * Verifies a ListEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @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 */ - ListChangelogsResponse.verify = function verify(message) { + ListEntityTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.changelogs != null && message.hasOwnProperty("changelogs")) { - if (!Array.isArray(message.changelogs)) - return "changelogs: array expected"; - for (var i = 0; i < message.changelogs.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.verify(message.changelogs[i]); + 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 "changelogs." + error; + return "entityTypes." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -102001,25 +108847,25 @@ }; /** - * Creates a ListChangelogsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} ListChangelogsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse */ - ListChangelogsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse) + 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.ListChangelogsResponse(); - if (object.changelogs) { - if (!Array.isArray(object.changelogs)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.changelogs: array expected"); - message.changelogs = []; - for (var i = 0; i < object.changelogs.length; ++i) { - if (typeof object.changelogs[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse.changelogs: object expected"); - message.changelogs[i] = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.fromObject(object.changelogs[i]); + 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.nextPageToken != null) @@ -102028,26 +108874,26 @@ }; /** - * Creates a plain object from a ListChangelogsResponse 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.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse} message ListChangelogsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} message ListEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListChangelogsResponse.toObject = function toObject(message, options) { + ListEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.changelogs = []; + object.entityTypes = []; if (options.defaults) object.nextPageToken = ""; - if (message.changelogs && message.changelogs.length) { - object.changelogs = []; - for (var j = 0; j < message.changelogs.length; ++j) - object.changelogs[j] = $root.google.cloud.dialogflow.cx.v3beta1.Changelog.toObject(message.changelogs[j], options); + 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -102055,708 +108901,53 @@ }; /** - * Converts this ListChangelogsResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse - * @instance - * @returns {Object.} JSON object - */ - ListChangelogsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListChangelogsResponse - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListChangelogsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse"; - }; - - return ListChangelogsResponse; - })(); - - v3beta1.GetChangelogRequest = (function() { - - /** - * Properties of a GetChangelogRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetChangelogRequest - * @property {string|null} [name] GetChangelogRequest name - */ - - /** - * Constructs a new GetChangelogRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetChangelogRequest. - * @implements IGetChangelogRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest=} [properties] Properties to set - */ - function GetChangelogRequest(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]]; - } - - /** - * GetChangelogRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @instance - */ - GetChangelogRequest.prototype.name = ""; - - /** - * Creates a new GetChangelogRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest instance - */ - GetChangelogRequest.create = function create(properties) { - return new GetChangelogRequest(properties); - }; - - /** - * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetChangelogRequest.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 GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetChangelogRequest} message GetChangelogRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetChangelogRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetChangelogRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @static - * @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.GetChangelogRequest} GetChangelogRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetChangelogRequest.decode = function decode(reader, length) { - 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.GetChangelogRequest(); - 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 GetChangelogRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetChangelogRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetChangelogRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetChangelogRequest.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 GetChangelogRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} GetChangelogRequest - */ - GetChangelogRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest} message GetChangelogRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetChangelogRequest.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 GetChangelogRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @instance - * @returns {Object.} JSON object - */ - GetChangelogRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GetChangelogRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetChangelogRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest"; - }; - - return GetChangelogRequest; - })(); - - v3beta1.Changelog = (function() { - - /** - * Properties of a Changelog. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IChangelog - * @property {string|null} [name] Changelog name - * @property {string|null} [userEmail] Changelog userEmail - * @property {string|null} [displayName] Changelog displayName - * @property {string|null} [action] Changelog action - * @property {string|null} [type] Changelog type - * @property {string|null} [resource] Changelog resource - * @property {google.protobuf.ITimestamp|null} [createTime] Changelog createTime - */ - - /** - * Constructs a new Changelog. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Changelog. - * @implements IChangelog - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog=} [properties] Properties to set - */ - function Changelog(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]]; - } - - /** - * Changelog name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.name = ""; - - /** - * Changelog userEmail. - * @member {string} userEmail - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.userEmail = ""; - - /** - * Changelog displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.displayName = ""; - - /** - * Changelog action. - * @member {string} action - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.action = ""; - - /** - * Changelog type. - * @member {string} type - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.type = ""; - - /** - * Changelog resource. - * @member {string} resource - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.resource = ""; - - /** - * Changelog createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @instance - */ - Changelog.prototype.createTime = null; - - /** - * Creates a new Changelog instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog instance - */ - Changelog.create = function create(properties) { - return new Changelog(properties); - }; - - /** - * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog} message Changelog message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Changelog.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.userEmail != null && Object.hasOwnProperty.call(message, "userEmail")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.userEmail); - if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resource); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.displayName); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.type); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.action); - return writer; - }; - - /** - * Encodes the specified Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Changelog.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IChangelog} message Changelog message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Changelog.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Changelog message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @static - * @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.Changelog} Changelog - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Changelog.decode = function decode(reader, length) { - 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.Changelog(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.userEmail = reader.string(); - break; - } - case 7: { - message.displayName = reader.string(); - break; - } - case 11: { - message.action = reader.string(); - break; - } - case 8: { - message.type = reader.string(); - break; - } - case 3: { - message.resource = reader.string(); - break; - } - case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Changelog message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Changelog.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Changelog message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Changelog.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.userEmail != null && message.hasOwnProperty("userEmail")) - if (!$util.isString(message.userEmail)) - return "userEmail: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.action != null && message.hasOwnProperty("action")) - if (!$util.isString(message.action)) - return "action: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.resource != null && message.hasOwnProperty("resource")) - if (!$util.isString(message.resource)) - return "resource: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - return null; - }; - - /** - * Creates a Changelog message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Changelog} Changelog - */ - Changelog.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Changelog) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Changelog(); - if (object.name != null) - message.name = String(object.name); - if (object.userEmail != null) - message.userEmail = String(object.userEmail); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.action != null) - message.action = String(object.action); - if (object.type != null) - message.type = String(object.type); - if (object.resource != null) - message.resource = String(object.resource); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Changelog.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - return message; - }; - - /** - * Creates a plain object from a Changelog message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Changelog} message Changelog - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Changelog.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.userEmail = ""; - object.resource = ""; - object.createTime = null; - object.displayName = ""; - object.type = ""; - object.action = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.userEmail != null && message.hasOwnProperty("userEmail")) - object.userEmail = message.userEmail; - if (message.resource != null && message.hasOwnProperty("resource")) - object.resource = message.resource; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.action != null && message.hasOwnProperty("action")) - object.action = message.action; - return object; - }; - - /** - * Converts this Changelog to JSON. + * Converts this ListEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @instance * @returns {Object.} JSON object */ - Changelog.prototype.toJSON = function toJSON() { + ListEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Changelog + * Gets the default type url for ListEntityTypesResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Changelog + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Changelog.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListEntityTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Changelog"; - }; - - return Changelog; - })(); - - v3beta1.Deployments = (function() { - - /** - * Constructs a new Deployments service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Deployments - * @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 Deployments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Deployments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Deployments; - - /** - * Creates new Deployments service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments - * @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 {Deployments} RPC service. Useful where requests and/or responses are streamed. - */ - Deployments.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse"; }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments|listDeployments}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments - * @typedef ListDeploymentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} [response] ListDeploymentsResponse - */ - - /** - * Calls ListDeployments. - * @function listDeployments - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeploymentsCallback} callback Node-style callback called with the error, if any, and ListDeploymentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Deployments.prototype.listDeployments = function listDeployments(request, callback) { - return this.rpcCall(listDeployments, $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse, request, callback); - }, "name", { value: "ListDeployments" }); - - /** - * Calls ListDeployments. - * @function listDeployments - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} request ListDeploymentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Deployments|getDeployment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments - * @typedef GetDeploymentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment} [response] Deployment - */ - - /** - * Calls GetDeployment. - * @function getDeployment - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeploymentCallback} callback Node-style callback called with the error, if any, and Deployment - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Deployments.prototype.getDeployment = function getDeployment(request, callback) { - return this.rpcCall(getDeployment, $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Deployment, request, callback); - }, "name", { value: "GetDeployment" }); - - /** - * Calls GetDeployment. - * @function getDeployment - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} request GetDeploymentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return Deployments; + return ListEntityTypesResponse; })(); - v3beta1.Deployment = (function() { + v3beta1.GetEntityTypeRequest = (function() { /** - * Properties of a Deployment. + * Properties of a GetEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeployment - * @property {string|null} [name] Deployment name - * @property {string|null} [flowVersion] Deployment flowVersion - * @property {google.cloud.dialogflow.cx.v3beta1.Deployment.State|null} [state] Deployment state - * @property {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null} [result] Deployment result - * @property {google.protobuf.ITimestamp|null} [startTime] Deployment startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Deployment endTime + * @interface IGetEntityTypeRequest + * @property {string|null} [name] GetEntityTypeRequest name + * @property {string|null} [languageCode] GetEntityTypeRequest languageCode */ /** - * Constructs a new Deployment. + * Constructs a new GetEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Deployment. - * @implements IDeployment + * @classdesc Represents a GetEntityTypeRequest. + * @implements IGetEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set */ - function Deployment(properties) { + function GetEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102764,120 +108955,80 @@ } /** - * Deployment name. + * GetEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment - * @instance - */ - Deployment.prototype.name = ""; - - /** - * Deployment flowVersion. - * @member {string} flowVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment - * @instance - */ - Deployment.prototype.flowVersion = ""; - - /** - * Deployment state. - * @member {google.cloud.dialogflow.cx.v3beta1.Deployment.State} state - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment - * @instance - */ - Deployment.prototype.state = 0; - - /** - * Deployment result. - * @member {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment - * @instance - */ - Deployment.prototype.result = null; - - /** - * Deployment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest * @instance */ - Deployment.prototype.startTime = null; + GetEntityTypeRequest.prototype.name = ""; /** - * Deployment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * GetEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest * @instance */ - Deployment.prototype.endTime = null; + GetEntityTypeRequest.prototype.languageCode = ""; /** - * Creates a new Deployment instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest instance */ - Deployment.create = function create(properties) { - return new Deployment(properties); + GetEntityTypeRequest.create = function create(properties) { + return new GetEntityTypeRequest(properties); }; /** - * Encodes the specified Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * 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.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment} message Deployment message or plain object to encode + * @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 */ - Deployment.encode = function encode(message, 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.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.encode(message.result, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified Deployment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.verify|verify} messages. + * 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.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployment} message Deployment message or plain object to encode + * @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 */ - Deployment.encodeDelimited = function encodeDelimited(message, writer) { + GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Deployment message from the specified reader or buffer. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @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.Deployment} Deployment + * @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 */ - Deployment.decode = function decode(reader, length) { + 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.Deployment(); + 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) { @@ -102886,23 +109037,7 @@ break; } case 2: { - message.flowVersion = reader.string(); - break; - } - case 3: { - message.state = reader.int32(); - break; - } - case 4: { - message.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.decode(reader, reader.uint32()); - break; - } - case 5: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.languageCode = reader.string(); break; } default: @@ -102914,470 +109049,133 @@ }; /** - * Decodes a Deployment message from the specified reader or buffer, length delimited. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @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.Deployment} Deployment + * @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 */ - Deployment.decodeDelimited = function decodeDelimited(reader) { + GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Deployment message. + * Verifies a GetEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @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 */ - Deployment.verify = function verify(message) { + 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.flowVersion != null && message.hasOwnProperty("flowVersion")) - if (!$util.isString(message.flowVersion)) - return "flowVersion: 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.result != null && message.hasOwnProperty("result")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify(message.result); - if (error) - return "result." + 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.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a Deployment message from a plain object. Also converts values to their respective internal types. + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment} Deployment + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest */ - Deployment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Deployment) + 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.Deployment(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); if (object.name != null) message.name = String(object.name); - if (object.flowVersion != null) - message.flowVersion = String(object.flowVersion); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "RUNNING": - case 1: - message.state = 1; - break; - case "SUCCEEDED": - case 2: - message.state = 2; - break; - case "FAILED": - case 3: - message.state = 3; - break; - } - if (object.result != null) { - if (typeof object.result !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.result: object expected"); - message.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.fromObject(object.result); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.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.Deployment.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a Deployment message. Also converts values to other types if specified. + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment} message Deployment + * @param {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} message GetEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Deployment.toObject = function toObject(message, options) { + GetEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.flowVersion = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.result = null; - object.startTime = null; - object.endTime = null; + object.languageCode = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - object.flowVersion = message.flowVersion; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Deployment.State[message.state] === undefined ? message.state : $root.google.cloud.dialogflow.cx.v3beta1.Deployment.State[message.state] : message.state; - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.toObject(message.result, 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.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this Deployment to JSON. + * Converts this GetEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest * @instance * @returns {Object.} JSON object */ - Deployment.prototype.toJSON = function toJSON() { + GetEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Deployment + * Gets the default type url for GetEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Deployment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Deployment"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest"; }; - /** - * State enum. - * @name google.cloud.dialogflow.cx.v3beta1.Deployment.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} RUNNING=1 RUNNING value - * @property {number} SUCCEEDED=2 SUCCEEDED value - * @property {number} FAILED=3 FAILED value - */ - Deployment.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RUNNING"] = 1; - values[valuesById[2] = "SUCCEEDED"] = 2; - values[valuesById[3] = "FAILED"] = 3; - return values; - })(); - - Deployment.Result = (function() { - - /** - * Properties of a Result. - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment - * @interface IResult - * @property {Array.|null} [deploymentTestResults] Result deploymentTestResults - * @property {string|null} [experiment] Result experiment - */ - - /** - * Constructs a new Result. - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment - * @classdesc Represents a Result. - * @implements IResult - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult=} [properties] Properties to set - */ - function Result(properties) { - this.deploymentTestResults = []; - 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 deploymentTestResults. - * @member {Array.} deploymentTestResults - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result - * @instance - */ - Result.prototype.deploymentTestResults = $util.emptyArray; - - /** - * Result experiment. - * @member {string} experiment - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result - * @instance - */ - Result.prototype.experiment = ""; - - /** - * Creates a new Result instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.IResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.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.v3beta1.Deployment.Result.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.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.deploymentTestResults != null && message.deploymentTestResults.length) - for (var i = 0; i < message.deploymentTestResults.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deploymentTestResults[i]); - if (message.experiment != null && Object.hasOwnProperty.call(message, "experiment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.experiment); - return writer; - }; - - /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Deployment.Result.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.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.v3beta1.Deployment.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.Deployment.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.Deployment.Result(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.deploymentTestResults && message.deploymentTestResults.length)) - message.deploymentTestResults = []; - message.deploymentTestResults.push(reader.string()); - break; - } - case 2: { - message.experiment = reader.string(); - 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.v3beta1.Deployment.Result - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.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.v3beta1.Deployment.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.deploymentTestResults != null && message.hasOwnProperty("deploymentTestResults")) { - if (!Array.isArray(message.deploymentTestResults)) - return "deploymentTestResults: array expected"; - for (var i = 0; i < message.deploymentTestResults.length; ++i) - if (!$util.isString(message.deploymentTestResults[i])) - return "deploymentTestResults: string[] expected"; - } - if (message.experiment != null && message.hasOwnProperty("experiment")) - if (!$util.isString(message.experiment)) - return "experiment: string expected"; - 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.Deployment.Result - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Deployment.Result} Result - */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(); - if (object.deploymentTestResults) { - if (!Array.isArray(object.deploymentTestResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Deployment.Result.deploymentTestResults: array expected"); - message.deploymentTestResults = []; - for (var i = 0; i < object.deploymentTestResults.length; ++i) - message.deploymentTestResults[i] = String(object.deploymentTestResults[i]); - } - if (object.experiment != null) - message.experiment = String(object.experiment); - 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.v3beta1.Deployment.Result - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Deployment.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.deploymentTestResults = []; - if (options.defaults) - object.experiment = ""; - if (message.deploymentTestResults && message.deploymentTestResults.length) { - object.deploymentTestResults = []; - for (var j = 0; j < message.deploymentTestResults.length; ++j) - object.deploymentTestResults[j] = message.deploymentTestResults[j]; - } - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = message.experiment; - return object; - }; - - /** - * Converts this Result to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result - * @instance - * @returns {Object.} JSON object - */ - Result.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Result - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Deployment.Result - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Result.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Deployment.Result"; - }; - - return Result; - })(); - - return Deployment; + return GetEntityTypeRequest; })(); - v3beta1.ListDeploymentsRequest = (function() { + v3beta1.CreateEntityTypeRequest = (function() { /** - * Properties of a ListDeploymentsRequest. + * Properties of a CreateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListDeploymentsRequest - * @property {string|null} [parent] ListDeploymentsRequest parent - * @property {number|null} [pageSize] ListDeploymentsRequest pageSize - * @property {string|null} [pageToken] ListDeploymentsRequest 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 ListDeploymentsRequest. + * Constructs a new CreateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListDeploymentsRequest. - * @implements IListDeploymentsRequest + * @classdesc Represents a CreateEntityTypeRequest. + * @implements ICreateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set */ - function ListDeploymentsRequest(properties) { + function CreateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103385,90 +109183,90 @@ } /** - * ListDeploymentsRequest parent. + * CreateEntityTypeRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance */ - ListDeploymentsRequest.prototype.parent = ""; + CreateEntityTypeRequest.prototype.parent = ""; /** - * ListDeploymentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * CreateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance */ - ListDeploymentsRequest.prototype.pageSize = 0; + CreateEntityTypeRequest.prototype.entityType = null; /** - * ListDeploymentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * CreateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance */ - ListDeploymentsRequest.prototype.pageToken = ""; + CreateEntityTypeRequest.prototype.languageCode = ""; /** - * Creates a new ListDeploymentsRequest instance using the specified properties. + * Creates a new CreateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance */ - ListDeploymentsRequest.create = function create(properties) { - return new ListDeploymentsRequest(properties); + CreateEntityTypeRequest.create = function create(properties) { + return new CreateEntityTypeRequest(properties); }; /** - * Encodes the specified ListDeploymentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.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.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} message ListDeploymentsRequest 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 */ - ListDeploymentsRequest.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.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.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); return writer; }; /** - * Encodes the specified ListDeploymentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest.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.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsRequest} message ListDeploymentsRequest 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 */ - ListDeploymentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDeploymentsRequest 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.ListDeploymentsRequest + * @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.ListDeploymentsRequest} ListDeploymentsRequest + * @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 */ - ListDeploymentsRequest.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.ListDeploymentsRequest(); + 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) { @@ -103477,11 +109275,11 @@ break; } case 2: { - message.pageSize = reader.int32(); + message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); + message.languageCode = reader.string(); break; } default: @@ -103493,141 +109291,146 @@ }; /** - * Decodes a ListDeploymentsRequest 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.ListDeploymentsRequest + * @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.ListDeploymentsRequest} ListDeploymentsRequest + * @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 */ - ListDeploymentsRequest.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 ListDeploymentsRequest message. + * Verifies a CreateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @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 */ - ListDeploymentsRequest.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.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.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"; return null; }; /** - * Creates a ListDeploymentsRequest 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.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} ListDeploymentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest */ - ListDeploymentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest) + 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.ListDeploymentsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); 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.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); return message; }; /** - * Creates a plain object from a ListDeploymentsRequest 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.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest} message ListDeploymentsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDeploymentsRequest.toObject = function toObject(message, options) { + CreateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.entityType = null; + 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.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 ListDeploymentsRequest to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - ListDeploymentsRequest.prototype.toJSON = function toJSON() { + CreateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDeploymentsRequest + * Gets the default type url for CreateEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDeploymentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest"; }; - return ListDeploymentsRequest; + return CreateEntityTypeRequest; })(); - v3beta1.ListDeploymentsResponse = (function() { + v3beta1.UpdateEntityTypeRequest = (function() { /** - * Properties of a ListDeploymentsResponse. + * Properties of an UpdateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListDeploymentsResponse - * @property {Array.|null} [deployments] ListDeploymentsResponse deployments - * @property {string|null} [nextPageToken] ListDeploymentsResponse 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 ListDeploymentsResponse. + * Constructs a new UpdateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListDeploymentsResponse. - * @implements IListDeploymentsResponse + * @classdesc Represents an UpdateEntityTypeRequest. + * @implements IUpdateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set */ - function ListDeploymentsResponse(properties) { - this.deployments = []; + function UpdateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103635,92 +109438,103 @@ } /** - * ListDeploymentsResponse deployments. - * @member {Array.} deployments - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * UpdateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance */ - ListDeploymentsResponse.prototype.deployments = $util.emptyArray; + UpdateEntityTypeRequest.prototype.entityType = null; /** - * ListDeploymentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * UpdateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance */ - ListDeploymentsResponse.prototype.nextPageToken = ""; + UpdateEntityTypeRequest.prototype.languageCode = ""; /** - * Creates a new ListDeploymentsResponse 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.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance */ - ListDeploymentsResponse.create = function create(properties) { - return new ListDeploymentsResponse(properties); + UpdateEntityTypeRequest.create = function create(properties) { + return new UpdateEntityTypeRequest(properties); }; /** - * Encodes the specified ListDeploymentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.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.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse} message ListDeploymentsResponse 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 */ - ListDeploymentsResponse.encode = function encode(message, writer) { + UpdateEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployments != null && message.deployments.length) - for (var i = 0; i < message.deployments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Deployment.encode(message.deployments[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 ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.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.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListDeploymentsResponse} message ListDeploymentsResponse 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 */ - ListDeploymentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDeploymentsResponse 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.ListDeploymentsResponse + * @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.ListDeploymentsResponse} ListDeploymentsResponse + * @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 */ - ListDeploymentsResponse.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.ListDeploymentsResponse(); + 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.deployments && message.deployments.length)) - message.deployments = []; - message.deployments.push($root.google.cloud.dialogflow.cx.v3beta1.Deployment.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: @@ -103732,148 +109546,150 @@ }; /** - * Decodes a ListDeploymentsResponse 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.ListDeploymentsResponse + * @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.ListDeploymentsResponse} ListDeploymentsResponse + * @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 */ - ListDeploymentsResponse.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 ListDeploymentsResponse message. + * Verifies an UpdateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @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 */ - ListDeploymentsResponse.verify = function verify(message) { + UpdateEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployments != null && message.hasOwnProperty("deployments")) { - if (!Array.isArray(message.deployments)) - return "deployments: array expected"; - for (var i = 0; i < message.deployments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.verify(message.deployments[i]); - if (error) - return "deployments." + 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 ListDeploymentsResponse 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.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} ListDeploymentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest */ - ListDeploymentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse) + 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.ListDeploymentsResponse(); - if (object.deployments) { - if (!Array.isArray(object.deployments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.deployments: array expected"); - message.deployments = []; - for (var i = 0; i < object.deployments.length; ++i) { - if (typeof object.deployments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse.deployments: object expected"); - message.deployments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.fromObject(object.deployments[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 ListDeploymentsResponse 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.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse} message ListDeploymentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDeploymentsResponse.toObject = function toObject(message, options) { + UpdateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.deployments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.deployments && message.deployments.length) { - object.deployments = []; - for (var j = 0; j < message.deployments.length; ++j) - object.deployments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Deployment.toObject(message.deployments[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 ListDeploymentsResponse to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - ListDeploymentsResponse.prototype.toJSON = function toJSON() { + UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDeploymentsResponse + * Gets the default type url for UpdateEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDeploymentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest"; }; - return ListDeploymentsResponse; + return UpdateEntityTypeRequest; })(); - v3beta1.GetDeploymentRequest = (function() { + v3beta1.DeleteEntityTypeRequest = (function() { /** - * Properties of a GetDeploymentRequest. + * Properties of a DeleteEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetDeploymentRequest - * @property {string|null} [name] GetDeploymentRequest name + * @interface IDeleteEntityTypeRequest + * @property {string|null} [name] DeleteEntityTypeRequest name + * @property {boolean|null} [force] DeleteEntityTypeRequest force */ /** - * Constructs a new GetDeploymentRequest. + * Constructs a new DeleteEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetDeploymentRequest. - * @implements IGetDeploymentRequest + * @classdesc Represents a DeleteEntityTypeRequest. + * @implements IDeleteEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set */ - function GetDeploymentRequest(properties) { + function DeleteEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103881,70 +109697,80 @@ } /** - * GetDeploymentRequest name. + * DeleteEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @instance */ - GetDeploymentRequest.prototype.name = ""; + DeleteEntityTypeRequest.prototype.name = ""; /** - * Creates a new GetDeploymentRequest instance using the specified properties. + * DeleteEntityTypeRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @instance + */ + DeleteEntityTypeRequest.prototype.force = false; + + /** + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance */ - GetDeploymentRequest.create = function create(properties) { - return new GetDeploymentRequest(properties); + DeleteEntityTypeRequest.create = function create(properties) { + return new DeleteEntityTypeRequest(properties); }; /** - * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.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.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} message GetDeploymentRequest 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 */ - GetDeploymentRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest.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.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetDeploymentRequest} message GetDeploymentRequest 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 */ - GetDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDeploymentRequest 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.GetDeploymentRequest + * @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.GetDeploymentRequest} GetDeploymentRequest + * @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 */ - GetDeploymentRequest.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.GetDeploymentRequest(); + 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) { @@ -103952,6 +109778,10 @@ message.name = reader.string(); break; } + case 2: { + message.force = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -103961,331 +109791,470 @@ }; /** - * Decodes a GetDeploymentRequest 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.GetDeploymentRequest + * @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.GetDeploymentRequest} GetDeploymentRequest + * @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 */ - GetDeploymentRequest.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 GetDeploymentRequest message. + * Verifies a DeleteEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @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 */ - GetDeploymentRequest.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.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a GetDeploymentRequest 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.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} GetDeploymentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest */ - GetDeploymentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest) + 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.GetDeploymentRequest(); + 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); return message; }; /** - * Creates a plain object from a GetDeploymentRequest 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.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest} message GetDeploymentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDeploymentRequest.toObject = function toObject(message, options) { + DeleteEntityTypeRequest.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 GetDeploymentRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @instance * @returns {Object.} JSON object */ - GetDeploymentRequest.prototype.toJSON = function toJSON() { + DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetDeploymentRequest + * Gets the default type url for DeleteEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest"; }; - return GetDeploymentRequest; + return DeleteEntityTypeRequest; })(); - v3beta1.EntityTypes = (function() { + v3beta1.Environments = (function() { /** - * Constructs a new EntityTypes service. + * Constructs a new Environments service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EntityTypes + * @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 EntityTypes(rpcImpl, requestDelimited, responseDelimited) { + function Environments(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (EntityTypes.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EntityTypes; + (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; /** - * Creates new EntityTypes service using the specified rpc implementation. + * Creates new Environments service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @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 {EntityTypes} RPC service. Useful where requests and/or responses are streamed. + * @returns {Environments} RPC service. Useful where requests and/or responses are streamed. */ - EntityTypes.create = function create(rpcImpl, requestDelimited, responseDelimited) { + Environments.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 + * 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.ListEntityTypesResponse} [response] ListEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse */ /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @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 + * @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(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" }); + 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 ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @returns {Promise} Promise + * @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.EntityTypes|getEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef GetEntityTypeCallback + * 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.EntityType} [response] EntityType + * @param {google.cloud.dialogflow.cx.v3beta1.Environment} [response] Environment */ /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @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 + * @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(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" }); + 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 GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls GetEnvironment. + * @function getEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @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.EntityTypes|createEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef CreateEntityTypeCallback + * 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.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @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 + * @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(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" }); + 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 CreateEntityType. - * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @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.EntityTypes|updateEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef UpdateEntityTypeCallback + * 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.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @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 + * @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(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" }); + 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 UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls UpdateEnvironment. + * @function updateEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @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.EntityTypes|deleteEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes - * @typedef DeleteEntityTypeCallback + * 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 DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @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 + * @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(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" }); + 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 DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Calls DeleteEnvironment. + * @function deleteEnvironment + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object * @returns {Promise} Promise * @variation 2 */ - return EntityTypes; + /** + * 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 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|runContinuousTest}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef RunContinuousTestCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls RunContinuousTest. + * @function runContinuousTest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTestCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.runContinuousTest = function runContinuousTest(request, callback) { + return this.rpcCall(runContinuousTest, $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "RunContinuousTest" }); + + /** + * Calls RunContinuousTest. + * @function runContinuousTest + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|listContinuousTestResults}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef ListContinuousTestResultsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} [response] ListContinuousTestResultsResponse + */ + + /** + * Calls ListContinuousTestResults. + * @function listContinuousTestResults + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResultsCallback} callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.listContinuousTestResults = function listContinuousTestResults(request, callback) { + return this.rpcCall(listContinuousTestResults, $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse, request, callback); + }, "name", { value: "ListContinuousTestResults" }); + + /** + * Calls ListContinuousTestResults. + * @function listContinuousTestResults + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|deployFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @typedef DeployFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeployFlow. + * @function deployFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} request DeployFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Environments.prototype.deployFlow = function deployFlow(request, callback) { + return this.rpcCall(deployFlow, $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeployFlow" }); + + /** + * Calls DeployFlow. + * @function deployFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} request DeployFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Environments; })(); - v3beta1.EntityType = (function() { + v3beta1.Environment = (function() { /** - * Properties of an EntityType. + * Properties of an Environment. * @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 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 + * @property {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null} [testCasesConfig] Environment testCasesConfig + * @property {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig|null} [webhookConfig] Environment webhookConfig */ /** - * Constructs a new EntityType. + * Constructs a new Environment. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EntityType. - * @implements IEntityType + * @classdesc Represents an Environment. + * @implements IEnvironment * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set */ - function EntityType(properties) { - this.entities = []; - this.excludedPhrases = []; + function Environment(properties) { + this.versionConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104293,142 +110262,131 @@ } /** - * EntityType name. + * Environment name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - EntityType.prototype.name = ""; + Environment.prototype.name = ""; /** - * EntityType displayName. + * Environment 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 + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - EntityType.prototype.kind = 0; + Environment.prototype.displayName = ""; /** - * EntityType autoExpansionMode. - * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode} autoExpansionMode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * Environment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - EntityType.prototype.autoExpansionMode = 0; + Environment.prototype.description = ""; /** - * EntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * Environment versionConfigs. + * @member {Array.} versionConfigs + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - EntityType.prototype.entities = $util.emptyArray; + Environment.prototype.versionConfigs = $util.emptyArray; /** - * EntityType excludedPhrases. - * @member {Array.} excludedPhrases - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * Environment updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - EntityType.prototype.excludedPhrases = $util.emptyArray; + Environment.prototype.updateTime = null; /** - * EntityType enableFuzzyExtraction. - * @member {boolean} enableFuzzyExtraction - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * Environment testCasesConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null|undefined} testCasesConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - EntityType.prototype.enableFuzzyExtraction = false; + Environment.prototype.testCasesConfig = null; /** - * EntityType redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * Environment webhookConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig|null|undefined} webhookConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance */ - EntityType.prototype.redact = false; + Environment.prototype.webhookConfig = null; /** - * Creates a new EntityType instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @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.IEnvironment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment instance */ - EntityType.create = function create(properties) { - return new EntityType(properties); + Environment.create = function create(properties) { + return new Environment(properties); }; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.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.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType 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 */ - EntityType.encode = function encode(message, writer) { + Environment.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.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(); + if (message.testCasesConfig != null && Object.hasOwnProperty.call(message, "testCasesConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.encode(message.testCasesConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.webhookConfig != null && Object.hasOwnProperty.call(message, "webhookConfig")) + $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.encode(message.webhookConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); 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 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.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType 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 */ - EntityType.encodeDelimited = function encodeDelimited(message, writer) { + Environment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EntityType 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.EntityType + * @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.EntityType} EntityType + * @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 */ - EntityType.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.EntityType(); + 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) { @@ -104441,31 +110399,25 @@ break; } case 3: { - message.kind = reader.int32(); + message.description = reader.string(); break; } - case 4: { - message.autoExpansionMode = reader.int32(); + 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: { - 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())); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 7: { - message.enableFuzzyExtraction = reader.bool(); + message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.decode(reader, reader.uint32()); break; } - case 9: { - message.redact = reader.bool(); + case 10: { + message.webhookConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.decode(reader, reader.uint32()); break; } default: @@ -104477,30 +110429,30 @@ }; /** - * Decodes an EntityType 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.EntityType + * @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.EntityType} EntityType + * @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 */ - EntityType.decodeDelimited = function decodeDelimited(reader) { + Environment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EntityType message. + * Verifies an Environment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @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 */ - EntityType.verify = function verify(message) { + Environment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -104509,262 +110461,375 @@ 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: - case 1: - case 2: - case 3: - break; - } - 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 (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 "entities." + error; + return "versionConfigs." + 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.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify(message.testCasesConfig); + if (error) + return "testCasesConfig." + error; + } + if (message.webhookConfig != null && message.hasOwnProperty("webhookConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify(message.webhookConfig); + if (error) + return "webhookConfig." + 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 EntityType 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.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment */ - EntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType) + 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.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); - switch (object.kind) { - default: - if (typeof object.kind === "number") { - message.kind = object.kind; - break; + 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]); } - break; - 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) { - default: - if (typeof object.autoExpansionMode === "number") { - message.autoExpansionMode = object.autoExpansionMode; - break; - } - break; - case "AUTO_EXPANSION_MODE_UNSPECIFIED": - case 0: - message.autoExpansionMode = 0; - break; - case "AUTO_EXPANSION_MODE_DEFAULT": - case 1: - message.autoExpansionMode = 1; - break; + 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.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.testCasesConfig != null) { + if (typeof object.testCasesConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.testCasesConfig: object expected"); + message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.fromObject(object.testCasesConfig); } - 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.webhookConfig != null) { + if (typeof object.webhookConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.webhookConfig: object expected"); + message.webhookConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.fromObject(object.webhookConfig); } - 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 EntityType 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.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} message EntityType + * @param {google.cloud.dialogflow.cx.v3beta1.Environment} message Environment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EntityType.toObject = function toObject(message, options) { + Environment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.entities = []; - object.excludedPhrases = []; - } + if (options.arrays || options.defaults) + object.versionConfigs = []; 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; + object.description = ""; + object.updateTime = null; + object.testCasesConfig = null; + object.webhookConfig = 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.kind != null && message.hasOwnProperty("kind")) - object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind[message.kind] === undefined ? message.kind : $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] === undefined ? message.autoExpansionMode : $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.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.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) - object.enableFuzzyExtraction = message.enableFuzzyExtraction; - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; + if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) + object.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.toObject(message.testCasesConfig, options); + if (message.webhookConfig != null && message.hasOwnProperty("webhookConfig")) + object.webhookConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.toObject(message.webhookConfig, options); return object; }; /** - * Converts this EntityType to JSON. + * Converts this Environment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @instance * @returns {Object.} JSON object */ - EntityType.prototype.toJSON = function toJSON() { + Environment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EntityType + * Gets the default type url for Environment * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EntityType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EntityType"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Environment"; }; - /** - * 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 - */ - 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; - })(); + Environment.VersionConfig = (function() { - /** - * 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; - })(); + /** + * Properties of a VersionConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @interface IVersionConfig + * @property {string|null} [version] VersionConfig version + */ - EntityType.Entity = (function() { + /** + * 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]]; + } /** - * 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 + * 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); + }; + + /** + * Gets the default type url for VersionConfig + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VersionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig"; + }; + + return VersionConfig; + })(); + + Environment.TestCasesConfig = (function() { + + /** + * Properties of a TestCasesConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @interface ITestCasesConfig + * @property {Array.|null} [testCases] TestCasesConfig testCases + * @property {boolean|null} [enableContinuousRun] TestCasesConfig enableContinuousRun + * @property {boolean|null} [enablePredeploymentRun] TestCasesConfig enablePredeploymentRun */ /** - * Constructs a new Entity. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @classdesc Represents an Entity. - * @implements IEntity + * Constructs a new TestCasesConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @classdesc Represents a TestCasesConfig. + * @implements ITestCasesConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig=} [properties] Properties to set */ - function Entity(properties) { - this.synonyms = []; + function TestCasesConfig(properties) { + this.testCases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104772,92 +110837,106 @@ } /** - * Entity value. - * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * TestCasesConfig testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @instance */ - Entity.prototype.value = ""; + TestCasesConfig.prototype.testCases = $util.emptyArray; /** - * Entity synonyms. - * @member {Array.} synonyms - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * TestCasesConfig enableContinuousRun. + * @member {boolean} enableContinuousRun + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @instance */ - Entity.prototype.synonyms = $util.emptyArray; + TestCasesConfig.prototype.enableContinuousRun = false; /** - * Creates a new Entity instance using the specified properties. + * TestCasesConfig enablePredeploymentRun. + * @member {boolean} enablePredeploymentRun + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + * @instance + */ + TestCasesConfig.prototype.enablePredeploymentRun = false; + + /** + * Creates a new TestCasesConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity instance + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig instance */ - Entity.create = function create(properties) { - return new Entity(properties); + TestCasesConfig.create = function create(properties) { + return new TestCasesConfig(properties); }; /** - * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Entity.encode = function encode(message, writer) { + TestCasesConfig.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]); + if (message.testCases != null && message.testCases.length) + for (var i = 0; i < message.testCases.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCases[i]); + if (message.enableContinuousRun != null && Object.hasOwnProperty.call(message, "enableContinuousRun")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableContinuousRun); + if (message.enablePredeploymentRun != null && Object.hasOwnProperty.call(message, "enablePredeploymentRun")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enablePredeploymentRun); return writer; }; /** - * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Entity.encodeDelimited = function encodeDelimited(message, writer) { + TestCasesConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Entity message from the specified reader or buffer. + * Decodes a TestCasesConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig * @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) { + TestCasesConfig.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.value = reader.string(); + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push(reader.string()); break; } case 2: { - if (!(message.synonyms && message.synonyms.length)) - message.synonyms = []; - message.synonyms.push(reader.string()); + message.enableContinuousRun = reader.bool(); + break; + } + case 3: { + message.enablePredeploymentRun = reader.bool(); break; } default: @@ -104869,143 +110948,153 @@ }; /** - * Decodes an Entity message from the specified reader or buffer, length delimited. + * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig * @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) { + TestCasesConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Entity message. + * Verifies a TestCasesConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @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) { + TestCasesConfig.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"; + 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.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) + if (typeof message.enableContinuousRun !== "boolean") + return "enableContinuousRun: boolean expected"; + if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) + if (typeof message.enablePredeploymentRun !== "boolean") + return "enablePredeploymentRun: boolean expected"; return null; }; /** - * Creates an Entity message from a plain object. Also converts values to their respective internal types. + * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig */ - Entity.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity) + TestCasesConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) 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]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(); + if (object.testCases) { + if (!Array.isArray(object.testCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.testCases: array expected"); + message.testCases = []; + for (var i = 0; i < object.testCases.length; ++i) + message.testCases[i] = String(object.testCases[i]); } + if (object.enableContinuousRun != null) + message.enableContinuousRun = Boolean(object.enableContinuousRun); + if (object.enablePredeploymentRun != null) + message.enablePredeploymentRun = Boolean(object.enablePredeploymentRun); return message; }; /** - * Creates a plain object from an Entity message. Also converts values to other types if specified. + * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} message Entity + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} message TestCasesConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Entity.toObject = function toObject(message, options) { + TestCasesConfig.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]; + object.testCases = []; + if (options.defaults) { + object.enableContinuousRun = false; + object.enablePredeploymentRun = false; + } + 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.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) + object.enableContinuousRun = message.enableContinuousRun; + if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) + object.enablePredeploymentRun = message.enablePredeploymentRun; return object; }; /** - * Converts this Entity to JSON. + * Converts this TestCasesConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @instance * @returns {Object.} JSON object */ - Entity.prototype.toJSON = function toJSON() { + TestCasesConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Entity + * Gets the default type url for TestCasesConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Entity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestCasesConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EntityType.Entity"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig"; }; - return Entity; + return TestCasesConfig; })(); - EntityType.ExcludedPhrase = (function() { + Environment.WebhookConfig = (function() { /** - * Properties of an ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @interface IExcludedPhrase - * @property {string|null} [value] ExcludedPhrase value + * Properties of a WebhookConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @interface IWebhookConfig + * @property {Array.|null} [webhookOverrides] WebhookConfig webhookOverrides */ /** - * Constructs a new ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType - * @classdesc Represents an ExcludedPhrase. - * @implements IExcludedPhrase + * Constructs a new WebhookConfig. + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @classdesc Represents a WebhookConfig. + * @implements IWebhookConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig=} [properties] Properties to set */ - function ExcludedPhrase(properties) { + function WebhookConfig(properties) { + this.webhookOverrides = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105013,75 +111102,78 @@ } /** - * ExcludedPhrase value. - * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * WebhookConfig webhookOverrides. + * @member {Array.} webhookOverrides + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig * @instance */ - ExcludedPhrase.prototype.value = ""; + WebhookConfig.prototype.webhookOverrides = $util.emptyArray; /** - * Creates a new ExcludedPhrase instance using the specified properties. + * Creates a new WebhookConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase instance + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig} WebhookConfig instance */ - ExcludedPhrase.create = function create(properties) { - return new ExcludedPhrase(properties); + WebhookConfig.create = function create(properties) { + return new WebhookConfig(properties); }; /** - * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * Encodes the specified WebhookConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig} message WebhookConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExcludedPhrase.encode = function encode(message, writer) { + WebhookConfig.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.webhookOverrides != null && message.webhookOverrides.length) + for (var i = 0; i < message.webhookOverrides.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhookOverrides[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * Encodes the specified WebhookConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig} message WebhookConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExcludedPhrase.encodeDelimited = function encodeDelimited(message, writer) { + WebhookConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer. + * Decodes a WebhookConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig} WebhookConfig * @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) { + WebhookConfig.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.value = reader.string(); + if (!(message.webhookOverrides && message.webhookOverrides.length)) + message.webhookOverrides = []; + message.webhookOverrides.push($root.google.cloud.dialogflow.cx.v3beta1.Webhook.decode(reader, reader.uint32())); break; } default: @@ -105093,875 +111185,144 @@ }; /** - * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. + * Decodes a WebhookConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig} WebhookConfig * @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) { + WebhookConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExcludedPhrase message. + * Verifies a WebhookConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig * @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) { + WebhookConfig.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.webhookOverrides != null && message.hasOwnProperty("webhookOverrides")) { + if (!Array.isArray(message.webhookOverrides)) + return "webhookOverrides: array expected"; + for (var i = 0; i < message.webhookOverrides.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhookOverrides[i]); + if (error) + return "webhookOverrides." + error; + } + } return null; }; /** - * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. + * Creates a WebhookConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig * @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; - }; - - /** - * 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; - }; - - /** - * 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); - }; - - /** - * Gets the default type url for ExcludedPhrase - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExcludedPhrase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase"; - }; - - return ExcludedPhrase; - })(); - - return EntityType; - })(); - - v3beta1.ListEntityTypesRequest = (function() { - - /** - * Properties of a ListEntityTypesRequest. - * @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 - */ - - /** - * Constructs a new ListEntityTypesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEntityTypesRequest. - * @implements IListEntityTypesRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set - */ - function ListEntityTypesRequest(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]]; - } - - /** - * ListEntityTypesRequest 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 - * @instance - */ - ListEntityTypesRequest.prototype.languageCode = ""; - - /** - * ListEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.pageSize = 0; - - /** - * ListEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @instance - */ - ListEntityTypesRequest.prototype.pageToken = ""; - - /** - * Creates a new ListEntityTypesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest instance - */ - ListEntityTypesRequest.create = function create(properties) { - return new ListEntityTypesRequest(properties); - }; - - /** - * 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.ListEntityTypesRequest - * @static - * @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 - */ - ListEntityTypesRequest.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); - return writer; - }; - - /** - * 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.ListEntityTypesRequest - * @static - * @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 - */ - ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. - * @function decode - * @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.ListEntityTypesRequest} ListEntityTypesRequest - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.languageCode = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.ListEntityTypesRequest} ListEntityTypesRequest - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListEntityTypesRequest message. - * @function verify - * @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 - */ - ListEntityTypesRequest.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.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); - }; - - /** - * Gets the default type url for ListEntityTypesRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListEntityTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest"; - }; - - 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: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse - * @static - * @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 - */ - 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 (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.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. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} message ListEntityTypesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListEntityTypesResponse.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 (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListEntityTypesResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse - * @instance - * @returns {Object.} JSON object - */ - ListEntityTypesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ListEntityTypesResponse - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListEntityTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse"; - }; - - return ListEntityTypesResponse; - })(); - - v3beta1.GetEntityTypeRequest = (function() { - - /** - * Properties of a GetEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetEntityTypeRequest - * @property {string|null} [name] GetEntityTypeRequest name - * @property {string|null} [languageCode] GetEntityTypeRequest languageCode - */ - - /** - * 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]]; - } - - /** - * GetEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @instance - */ - GetEntityTypeRequest.prototype.name = ""; - - /** - * GetEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @instance - */ - GetEntityTypeRequest.prototype.languageCode = ""; - - /** - * 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); - }; - - /** - * 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; - }; - - /** - * 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(); - }; - - /** - * 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; + * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig} WebhookConfig + */ + WebhookConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig(); + if (object.webhookOverrides) { + if (!Array.isArray(object.webhookOverrides)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.webhookOverrides: array expected"); + message.webhookOverrides = []; + for (var i = 0; i < object.webhookOverrides.length; ++i) { + if (typeof object.webhookOverrides[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.webhookOverrides: object expected"); + message.webhookOverrides[i] = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhookOverrides[i]); } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * 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()); - }; - - /** - * 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 message; + }; - /** - * 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) + /** + * Creates a plain object from a WebhookConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig} message WebhookConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + WebhookConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.webhookOverrides = []; + if (message.webhookOverrides && message.webhookOverrides.length) { + object.webhookOverrides = []; + for (var j = 0; j < message.webhookOverrides.length; ++j) + object.webhookOverrides[j] = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.toObject(message.webhookOverrides[j], options); + } 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; - }; + }; - /** - * 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 - */ - 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; - }; + /** + * Converts this WebhookConfig to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig + * @instance + * @returns {Object.} JSON object + */ + WebhookConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GetEntityTypeRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @instance - * @returns {Object.} JSON object - */ - GetEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for WebhookConfig + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WebhookConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig"; + }; - /** - * Gets the default type url for GetEntityTypeRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest"; - }; + return WebhookConfig; + })(); - return GetEntityTypeRequest; + return Environment; })(); - v3beta1.CreateEntityTypeRequest = (function() { + v3beta1.ListEnvironmentsRequest = (function() { /** - * Properties of a CreateEntityTypeRequest. + * Properties of a ListEnvironmentsRequest. * @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 + * @interface IListEnvironmentsRequest + * @property {string|null} [parent] ListEnvironmentsRequest parent + * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize + * @property {string|null} [pageToken] ListEnvironmentsRequest pageToken */ /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new ListEnvironmentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateEntityTypeRequest. - * @implements ICreateEntityTypeRequest + * @classdesc Represents a ListEnvironmentsRequest. + * @implements IListEnvironmentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set */ - function CreateEntityTypeRequest(properties) { + function ListEnvironmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105969,90 +111330,90 @@ } /** - * CreateEntityTypeRequest parent. + * ListEnvironmentsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance */ - CreateEntityTypeRequest.prototype.parent = ""; + ListEnvironmentsRequest.prototype.parent = ""; /** - * CreateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * ListEnvironmentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance */ - CreateEntityTypeRequest.prototype.entityType = null; + ListEnvironmentsRequest.prototype.pageSize = 0; /** - * CreateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * ListEnvironmentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance */ - CreateEntityTypeRequest.prototype.languageCode = ""; + ListEnvironmentsRequest.prototype.pageToken = ""; /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new ListEnvironmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @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.IListEnvironmentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest instance */ - CreateEntityTypeRequest.create = function create(properties) { - return new CreateEntityTypeRequest(properties); + ListEnvironmentsRequest.create = function create(properties) { + return new ListEnvironmentsRequest(properties); }; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.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.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest 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 */ - CreateEntityTypeRequest.encode = function encode(message, writer) { + ListEnvironmentsRequest.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.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 CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.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.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest 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 */ - CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEntityTypeRequest 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.CreateEntityTypeRequest + * @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.CreateEntityTypeRequest} CreateEntityTypeRequest + * @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 */ - CreateEntityTypeRequest.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.CreateEntityTypeRequest(); + 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) { @@ -106061,11 +111422,11 @@ break; } case 2: { - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } case 3: { - message.languageCode = reader.string(); + message.pageToken = reader.string(); break; } default: @@ -106077,146 +111438,141 @@ }; /** - * Decodes a CreateEntityTypeRequest 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.CreateEntityTypeRequest + * @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.CreateEntityTypeRequest} CreateEntityTypeRequest + * @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 */ - CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ListEnvironmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies a ListEnvironmentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @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 */ - CreateEntityTypeRequest.verify = function verify(message) { + ListEnvironmentsRequest.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 CreateEntityTypeRequest 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.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest */ - CreateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest) + 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.CreateEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); 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 CreateEntityTypeRequest 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.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEntityTypeRequest.toObject = function toObject(message, options) { + ListEnvironmentsRequest.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 CreateEntityTypeRequest to JSON. + * Converts this ListEnvironmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @instance * @returns {Object.} JSON object */ - CreateEntityTypeRequest.prototype.toJSON = function toJSON() { + ListEnvironmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateEntityTypeRequest + * Gets the default type url for ListEnvironmentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListEnvironmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest"; }; - return CreateEntityTypeRequest; + return ListEnvironmentsRequest; })(); - v3beta1.UpdateEntityTypeRequest = (function() { + v3beta1.ListEnvironmentsResponse = (function() { /** - * Properties of an UpdateEntityTypeRequest. + * Properties of a ListEnvironmentsResponse. * @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 IListEnvironmentsResponse + * @property {Array.|null} [environments] ListEnvironmentsResponse environments + * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken */ /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new ListEnvironmentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateEntityTypeRequest. - * @implements IUpdateEntityTypeRequest + * @classdesc Represents a ListEnvironmentsResponse. + * @implements IListEnvironmentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set */ - function UpdateEntityTypeRequest(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) @@ -106224,103 +111580,92 @@ } /** - * UpdateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest - * @instance - */ - UpdateEntityTypeRequest.prototype.entityType = null; - - /** - * UpdateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * ListEnvironmentsResponse environments. + * @member {Array.} environments + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @instance */ - UpdateEntityTypeRequest.prototype.languageCode = ""; + ListEnvironmentsResponse.prototype.environments = $util.emptyArray; /** - * UpdateEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * ListEnvironmentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @instance */ - UpdateEntityTypeRequest.prototype.updateMask = null; + ListEnvironmentsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new ListEnvironmentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @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.IListEnvironmentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse instance */ - UpdateEntityTypeRequest.create = function create(properties) { - return new UpdateEntityTypeRequest(properties); + ListEnvironmentsResponse.create = function create(properties) { + return new ListEnvironmentsResponse(properties); }; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.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.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest 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 */ - UpdateEntityTypeRequest.encode = function encode(message, writer) { + ListEnvironmentsResponse.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.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 UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.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.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest 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 */ - UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEntityTypeRequest 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.UpdateEntityTypeRequest + * @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.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @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 */ - UpdateEntityTypeRequest.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.UpdateEntityTypeRequest(); + 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.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.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.languageCode = reader.string(); - break; - } - case 3: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -106332,150 +111677,148 @@ }; /** - * Decodes an UpdateEntityTypeRequest 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.UpdateEntityTypeRequest + * @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.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @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 */ - UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies a ListEnvironmentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @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 */ - UpdateEntityTypeRequest.verify = function verify(message) { + ListEnvironmentsResponse.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.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 UpdateEntityTypeRequest 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.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse */ - UpdateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest) + 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.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.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 an UpdateEntityTypeRequest 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.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEntityTypeRequest.toObject = function toObject(message, options) { + ListEnvironmentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.entityType = null; - object.languageCode = ""; - 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.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this ListEnvironmentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @instance * @returns {Object.} JSON object */ - UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + ListEnvironmentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateEntityTypeRequest + * Gets the default type url for ListEnvironmentsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListEnvironmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse"; }; - return UpdateEntityTypeRequest; + return ListEnvironmentsResponse; })(); - v3beta1.DeleteEntityTypeRequest = (function() { + v3beta1.GetEnvironmentRequest = (function() { /** - * Properties of a DeleteEntityTypeRequest. + * Properties of a GetEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteEntityTypeRequest - * @property {string|null} [name] DeleteEntityTypeRequest name - * @property {boolean|null} [force] DeleteEntityTypeRequest force + * @interface IGetEnvironmentRequest + * @property {string|null} [name] GetEnvironmentRequest name */ /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new GetEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteEntityTypeRequest. - * @implements IDeleteEntityTypeRequest + * @classdesc Represents a GetEnvironmentRequest. + * @implements IGetEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set */ - function DeleteEntityTypeRequest(properties) { + function GetEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -106483,80 +111826,70 @@ } /** - * DeleteEntityTypeRequest name. + * GetEnvironmentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest - * @instance - */ - DeleteEntityTypeRequest.prototype.name = ""; - - /** - * DeleteEntityTypeRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @instance */ - DeleteEntityTypeRequest.prototype.force = false; + GetEnvironmentRequest.prototype.name = ""; /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new GetEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @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.IGetEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest instance */ - DeleteEntityTypeRequest.create = function create(properties) { - return new DeleteEntityTypeRequest(properties); + GetEnvironmentRequest.create = function create(properties) { + return new GetEnvironmentRequest(properties); }; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.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.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest 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 */ - DeleteEntityTypeRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); 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 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.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest 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 */ - DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEntityTypeRequest 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.DeleteEntityTypeRequest + * @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.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @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 */ - DeleteEntityTypeRequest.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.DeleteEntityTypeRequest(); + 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) { @@ -106564,10 +111897,6 @@ message.name = reader.string(); break; } - case 2: { - message.force = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -106577,470 +111906,123 @@ }; /** - * Decodes a DeleteEntityTypeRequest 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.DeleteEntityTypeRequest + * @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.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @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 */ - DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteEntityTypeRequest message. - * @function verify - * @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 - */ - 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.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - return null; - }; - - /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest - */ - 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.DeleteEntityTypeRequest(); - 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 DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteEntityTypeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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 DeleteEntityTypeRequest 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); - }; - - /** - * Gets the default type url for DeleteEntityTypeRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest"; - }; - - 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 - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|runContinuousTest}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef RunContinuousTestCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls RunContinuousTest. - * @function runContinuousTest - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTestCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Environments.prototype.runContinuousTest = function runContinuousTest(request, callback) { - return this.rpcCall(runContinuousTest, $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "RunContinuousTest" }); - - /** - * Calls RunContinuousTest. - * @function runContinuousTest - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} request RunContinuousTestRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|listContinuousTestResults}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef ListContinuousTestResultsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} [response] ListContinuousTestResultsResponse - */ + GetEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListContinuousTestResults. - * @function listContinuousTestResults - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResultsCallback} callback Node-style callback called with the error, if any, and ListContinuousTestResultsResponse - * @returns {undefined} - * @variation 1 + * Verifies a GetEnvironmentRequest message. + * @function verify + * @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 */ - Object.defineProperty(Environments.prototype.listContinuousTestResults = function listContinuousTestResults(request, callback) { - return this.rpcCall(listContinuousTestResults, $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse, request, callback); - }, "name", { value: "ListContinuousTestResults" }); + 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"; + return null; + }; /** - * Calls ListContinuousTestResults. - * @function listContinuousTestResults - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} request ListContinuousTestResultsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest */ + 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.GetEnvironmentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments|deployFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @typedef DeployFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} message GetEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + GetEnvironmentRequest.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; + }; /** - * Calls DeployFlow. - * @function deployFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * Converts this GetEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} request DeployFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Environments.prototype.deployFlow = function deployFlow(request, callback) { - return this.rpcCall(deployFlow, $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeployFlow" }); + GetEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeployFlow. - * @function deployFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} request DeployFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for GetEnvironmentRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + GetEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest"; + }; - return Environments; + return GetEnvironmentRequest; })(); - v3beta1.Environment = (function() { + v3beta1.CreateEnvironmentRequest = (function() { /** - * Properties of an Environment. + * Properties of a CreateEnvironmentRequest. * @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 - * @property {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null} [testCasesConfig] Environment testCasesConfig - * @property {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig|null} [webhookConfig] Environment webhookConfig + * @interface ICreateEnvironmentRequest + * @property {string|null} [parent] CreateEnvironmentRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] CreateEnvironmentRequest environment */ /** - * Constructs a new Environment. + * Constructs a new CreateEnvironmentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Environment. - * @implements IEnvironment + * @classdesc Represents a CreateEnvironmentRequest. + * @implements ICreateEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set */ - function Environment(properties) { - this.versionConfigs = []; + function CreateEnvironmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107048,162 +112030,89 @@ } /** - * 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 - */ - 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 - * @instance - */ - Environment.prototype.updateTime = null; - - /** - * Environment testCasesConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig|null|undefined} testCasesConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * CreateEnvironmentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @instance */ - Environment.prototype.testCasesConfig = null; + CreateEnvironmentRequest.prototype.parent = ""; /** - * Environment webhookConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig|null|undefined} webhookConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * CreateEnvironmentRequest environment. + * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @instance */ - Environment.prototype.webhookConfig = null; + CreateEnvironmentRequest.prototype.environment = null; /** - * Creates a new Environment instance using the specified properties. + * Creates a new CreateEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @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.ICreateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest instance */ - Environment.create = function create(properties) { - return new Environment(properties); + CreateEnvironmentRequest.create = function create(properties) { + return new CreateEnvironmentRequest(properties); }; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.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.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment 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 */ - Environment.encode = function encode(message, writer) { + CreateEnvironmentRequest.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(); - if (message.testCasesConfig != null && Object.hasOwnProperty.call(message, "testCasesConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.encode(message.testCasesConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.webhookConfig != null && Object.hasOwnProperty.call(message, "webhookConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.encode(message.webhookConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + 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(); 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 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.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment 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 */ - Environment.encodeDelimited = function encodeDelimited(message, writer) { + CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Environment 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.Environment + * @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.Environment} Environment + * @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 */ - Environment.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.Environment(); + 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) { case 1: { - message.name = reader.string(); + message.parent = 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; - } - case 7: { - message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - message.webhookConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.decode(reader, reader.uint32()); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); break; } default: @@ -107215,900 +112124,578 @@ }; /** - * Decodes an Environment 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.Environment + * @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.Environment} Environment + * @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 */ - Environment.decodeDelimited = function decodeDelimited(reader) { + CreateEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Environment message. + * Verifies a CreateEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @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 */ - Environment.verify = function verify(message) { + CreateEnvironmentRequest.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; - } - if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify(message.testCasesConfig); - if (error) - return "testCasesConfig." + error; - } - if (message.webhookConfig != null && message.hasOwnProperty("webhookConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify(message.webhookConfig); + 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 "webhookConfig." + error; + return "environment." + error; } return null; }; /** - * Creates an Environment 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.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest */ - Environment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment) + 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.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.testCasesConfig != null) { - if (typeof object.testCasesConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.testCasesConfig: object expected"); - message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.fromObject(object.testCasesConfig); - } - if (object.webhookConfig != null) { - if (typeof object.webhookConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.webhookConfig: object expected"); - message.webhookConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.fromObject(object.webhookConfig); + 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); } return message; }; /** - * Creates a plain object from an Environment 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.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment} message Environment + * @param {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Environment.toObject = function toObject(message, options) { + CreateEnvironmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionConfigs = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.updateTime = null; - object.testCasesConfig = null; - object.webhookConfig = 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); + object.parent = ""; + object.environment = null; } - if (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) - object.testCasesConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.toObject(message.testCasesConfig, options); - if (message.webhookConfig != null && message.hasOwnProperty("webhookConfig")) - object.webhookConfig = $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.toObject(message.webhookConfig, options); + 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); return object; }; /** - * Converts this Environment to JSON. + * Converts this CreateEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @instance * @returns {Object.} JSON object */ - Environment.prototype.toJSON = function toJSON() { + CreateEnvironmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Environment + * Gets the default type url for CreateEnvironmentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Environment"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest"; }; - 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); - }; - - /** - * Gets the default type url for VersionConfig - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - VersionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig"; - }; - - return VersionConfig; - })(); - - Environment.TestCasesConfig = (function() { + return CreateEnvironmentRequest; + })(); - /** - * Properties of a TestCasesConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @interface ITestCasesConfig - * @property {Array.|null} [testCases] TestCasesConfig testCases - * @property {boolean|null} [enableContinuousRun] TestCasesConfig enableContinuousRun - * @property {boolean|null} [enablePredeploymentRun] TestCasesConfig enablePredeploymentRun - */ + v3beta1.UpdateEnvironmentRequest = (function() { - /** - * Constructs a new TestCasesConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @classdesc Represents a TestCasesConfig. - * @implements ITestCasesConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig=} [properties] Properties to set - */ - function TestCasesConfig(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]]; - } + /** + * Properties of an UpdateEnvironmentRequest. + * @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 + */ - /** - * TestCasesConfig testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @instance - */ - TestCasesConfig.prototype.testCases = $util.emptyArray; + /** + * Constructs a new UpdateEnvironmentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an UpdateEnvironmentRequest. + * @implements IUpdateEnvironmentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + */ + function UpdateEnvironmentRequest(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]]; + } - /** - * TestCasesConfig enableContinuousRun. - * @member {boolean} enableContinuousRun - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @instance - */ - TestCasesConfig.prototype.enableContinuousRun = false; + /** + * UpdateEnvironmentRequest environment. + * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @instance + */ + UpdateEnvironmentRequest.prototype.environment = null; - /** - * TestCasesConfig enablePredeploymentRun. - * @member {boolean} enablePredeploymentRun - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @instance - */ - TestCasesConfig.prototype.enablePredeploymentRun = false; + /** + * UpdateEnvironmentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @instance + */ + UpdateEnvironmentRequest.prototype.updateMask = null; - /** - * Creates a new TestCasesConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig instance - */ - TestCasesConfig.create = function create(properties) { - return new TestCasesConfig(properties); - }; + /** + * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance + */ + UpdateEnvironmentRequest.create = function create(properties) { + return new UpdateEnvironmentRequest(properties); + }; - /** - * Encodes the specified TestCasesConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCasesConfig.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) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.testCases[i]); - if (message.enableContinuousRun != null && Object.hasOwnProperty.call(message, "enableContinuousRun")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableContinuousRun); - if (message.enablePredeploymentRun != null && Object.hasOwnProperty.call(message, "enablePredeploymentRun")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enablePredeploymentRun); - return writer; - }; + /** + * 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.UpdateEnvironmentRequest + * @static + * @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 + */ + UpdateEnvironmentRequest.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(); + return writer; + }; - /** - * Encodes the specified TestCasesConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.ITestCasesConfig} message TestCasesConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TestCasesConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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.UpdateEnvironmentRequest + * @static + * @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 + */ + UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a TestCasesConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @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.TestCasesConfig} TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCasesConfig.decode = function decode(reader, length) { - 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.TestCasesConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.testCases && message.testCases.length)) - message.testCases = []; - message.testCases.push(reader.string()); - break; - } - case 2: { - message.enableContinuousRun = reader.bool(); - break; - } - case 3: { - message.enablePredeploymentRun = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * @function decode + * @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.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @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) { + 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(); + 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()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a TestCasesConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TestCasesConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a TestCasesConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TestCasesConfig.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) - if (!$util.isString(message.testCases[i])) - return "testCases: string[] expected"; - } - if (message.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) - if (typeof message.enableContinuousRun !== "boolean") - return "enableContinuousRun: boolean expected"; - if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) - if (typeof message.enablePredeploymentRun !== "boolean") - return "enablePredeploymentRun: boolean expected"; - return null; - }; + /** + * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a TestCasesConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} TestCasesConfig - */ - TestCasesConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(); - if (object.testCases) { - if (!Array.isArray(object.testCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) - message.testCases[i] = String(object.testCases[i]); - } - if (object.enableContinuousRun != null) - message.enableContinuousRun = Boolean(object.enableContinuousRun); - if (object.enablePredeploymentRun != null) - message.enablePredeploymentRun = Boolean(object.enablePredeploymentRun); - return message; - }; + /** + * Verifies an UpdateEnvironmentRequest message. + * @function verify + * @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 + */ + UpdateEnvironmentRequest.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; + } + return null; + }; - /** - * Creates a plain object from a TestCasesConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig} message TestCasesConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TestCasesConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.testCases = []; - if (options.defaults) { - object.enableContinuousRun = false; - object.enablePredeploymentRun = false; - } - 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.enableContinuousRun != null && message.hasOwnProperty("enableContinuousRun")) - object.enableContinuousRun = message.enableContinuousRun; - if (message.enablePredeploymentRun != null && message.hasOwnProperty("enablePredeploymentRun")) - object.enablePredeploymentRun = message.enablePredeploymentRun; + /** + * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + */ + 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.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); + } + return message; + }; + + /** + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateEnvironmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.environment = null; + object.updateMask = null; + } + 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 TestCasesConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @instance - * @returns {Object.} JSON object - */ - TestCasesConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this UpdateEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for TestCasesConfig - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TestCasesConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig"; - }; + /** + * Gets the default type url for UpdateEnvironmentRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest"; + }; - return TestCasesConfig; - })(); + return UpdateEnvironmentRequest; + })(); - Environment.WebhookConfig = (function() { + v3beta1.DeleteEnvironmentRequest = (function() { - /** - * Properties of a WebhookConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @interface IWebhookConfig - * @property {Array.|null} [webhookOverrides] WebhookConfig webhookOverrides - */ + /** + * Properties of a DeleteEnvironmentRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDeleteEnvironmentRequest + * @property {string|null} [name] DeleteEnvironmentRequest name + */ - /** - * Constructs a new WebhookConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment - * @classdesc Represents a WebhookConfig. - * @implements IWebhookConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig=} [properties] Properties to set - */ - function WebhookConfig(properties) { - this.webhookOverrides = []; - 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 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 + */ + 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]]; + } - /** - * WebhookConfig webhookOverrides. - * @member {Array.} webhookOverrides - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @instance - */ - WebhookConfig.prototype.webhookOverrides = $util.emptyArray; + /** + * DeleteEnvironmentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @instance + */ + DeleteEnvironmentRequest.prototype.name = ""; - /** - * Creates a new WebhookConfig instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig} WebhookConfig instance - */ - WebhookConfig.create = function create(properties) { - return new WebhookConfig(properties); - }; + /** + * 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 + */ + DeleteEnvironmentRequest.create = function create(properties) { + return new DeleteEnvironmentRequest(properties); + }; - /** - * Encodes the specified WebhookConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig} message WebhookConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WebhookConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.webhookOverrides != null && message.webhookOverrides.length) - for (var i = 0; i < message.webhookOverrides.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhookOverrides[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * 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 + */ + 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; + }; - /** - * Encodes the specified WebhookConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IWebhookConfig} message WebhookConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WebhookConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 + */ + DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a WebhookConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @static - * @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.WebhookConfig} WebhookConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WebhookConfig.decode = function decode(reader, length) { - 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.WebhookConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.webhookOverrides && message.webhookOverrides.length)) - message.webhookOverrides = []; - message.webhookOverrides.push($root.google.cloud.dialogflow.cx.v3beta1.Webhook.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + /** + * 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 + */ + 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 WebhookConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig} WebhookConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WebhookConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a WebhookConfig message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WebhookConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.webhookOverrides != null && message.hasOwnProperty("webhookOverrides")) { - if (!Array.isArray(message.webhookOverrides)) - return "webhookOverrides: array expected"; - for (var i = 0; i < message.webhookOverrides.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhookOverrides[i]); - if (error) - return "webhookOverrides." + error; - } - } - return null; - }; + /** + * 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 + */ + DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a WebhookConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig} WebhookConfig - */ - WebhookConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig(); - if (object.webhookOverrides) { - if (!Array.isArray(object.webhookOverrides)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.webhookOverrides: array expected"); - message.webhookOverrides = []; - for (var i = 0; i < object.webhookOverrides.length; ++i) { - if (typeof object.webhookOverrides[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.webhookOverrides: object expected"); - message.webhookOverrides[i] = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhookOverrides[i]); - } - } - return message; - }; + /** + * 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 + */ + 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 plain object from a WebhookConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig} message WebhookConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WebhookConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.webhookOverrides = []; - if (message.webhookOverrides && message.webhookOverrides.length) { - object.webhookOverrides = []; - for (var j = 0; j < message.webhookOverrides.length; ++j) - object.webhookOverrides[j] = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.toObject(message.webhookOverrides[j], options); - } + /** + * 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 + */ + 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; + }; - /** - * Converts this WebhookConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @instance - * @returns {Object.} JSON object - */ - WebhookConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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 + */ + 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; + }; - /** - * Gets the default type url for WebhookConfig - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - WebhookConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig"; - }; + /** + * Converts this DeleteEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return WebhookConfig; - })(); + /** + * Gets the default type url for DeleteEnvironmentRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest"; + }; - return Environment; + return DeleteEnvironmentRequest; })(); - v3beta1.ListEnvironmentsRequest = (function() { + v3beta1.LookupEnvironmentHistoryRequest = (function() { /** - * Properties of a ListEnvironmentsRequest. + * Properties of a LookupEnvironmentHistoryRequest. * @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 ILookupEnvironmentHistoryRequest + * @property {string|null} [name] LookupEnvironmentHistoryRequest name + * @property {number|null} [pageSize] LookupEnvironmentHistoryRequest pageSize + * @property {string|null} [pageToken] LookupEnvironmentHistoryRequest pageToken */ /** - * Constructs a new ListEnvironmentsRequest. + * Constructs a new LookupEnvironmentHistoryRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEnvironmentsRequest. - * @implements IListEnvironmentsRequest + * @classdesc Represents a LookupEnvironmentHistoryRequest. + * @implements ILookupEnvironmentHistoryRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set */ - function ListEnvironmentsRequest(properties) { + function LookupEnvironmentHistoryRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108116,55 +112703,55 @@ } /** - * ListEnvironmentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * LookupEnvironmentHistoryRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance */ - ListEnvironmentsRequest.prototype.parent = ""; + LookupEnvironmentHistoryRequest.prototype.name = ""; /** - * ListEnvironmentsRequest pageSize. + * LookupEnvironmentHistoryRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance */ - ListEnvironmentsRequest.prototype.pageSize = 0; + LookupEnvironmentHistoryRequest.prototype.pageSize = 0; /** - * ListEnvironmentsRequest pageToken. + * LookupEnvironmentHistoryRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance */ - ListEnvironmentsRequest.prototype.pageToken = ""; + LookupEnvironmentHistoryRequest.prototype.pageToken = ""; /** - * Creates a new ListEnvironmentsRequest instance using the specified properties. + * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @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.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest instance */ - ListEnvironmentsRequest.create = function create(properties) { - return new ListEnvironmentsRequest(properties); + LookupEnvironmentHistoryRequest.create = function create(properties) { + return new LookupEnvironmentHistoryRequest(properties); }; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.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.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest 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 */ - ListEnvironmentsRequest.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.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")) @@ -108173,38 +112760,38 @@ }; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.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.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest 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 */ - ListEnvironmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsRequest 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.ListEnvironmentsRequest + * @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.ListEnvironmentsRequest} ListEnvironmentsRequest + * @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 */ - ListEnvironmentsRequest.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.ListEnvironmentsRequest(); + 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: { @@ -108224,35 +112811,35 @@ }; /** - * Decodes a ListEnvironmentsRequest 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.ListEnvironmentsRequest + * @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.ListEnvironmentsRequest} ListEnvironmentsRequest + * @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 */ - ListEnvironmentsRequest.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 ListEnvironmentsRequest message. + * Verifies a LookupEnvironmentHistoryRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @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 */ - ListEnvironmentsRequest.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.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"; @@ -108263,19 +112850,19 @@ }; /** - * Creates a ListEnvironmentsRequest 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.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest */ - ListEnvironmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest) + 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.ListEnvironmentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); + 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) @@ -108284,25 +112871,25 @@ }; /** - * Creates a plain object from a ListEnvironmentsRequest 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.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsRequest.toObject = function toObject(message, options) { + LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; + object.name = ""; object.pageSize = 0; object.pageToken = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + 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")) @@ -108311,53 +112898,53 @@ }; /** - * Converts this ListEnvironmentsRequest to JSON. + * Converts this LookupEnvironmentHistoryRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @instance * @returns {Object.} JSON object */ - ListEnvironmentsRequest.prototype.toJSON = function toJSON() { + LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListEnvironmentsRequest + * Gets the default type url for LookupEnvironmentHistoryRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListEnvironmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LookupEnvironmentHistoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest"; }; - return ListEnvironmentsRequest; + return LookupEnvironmentHistoryRequest; })(); - v3beta1.ListEnvironmentsResponse = (function() { + v3beta1.LookupEnvironmentHistoryResponse = (function() { /** - * Properties of a ListEnvironmentsResponse. + * Properties of a LookupEnvironmentHistoryResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListEnvironmentsResponse - * @property {Array.|null} [environments] ListEnvironmentsResponse environments - * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken + * @interface ILookupEnvironmentHistoryResponse + * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments + * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken */ /** - * Constructs a new ListEnvironmentsResponse. + * Constructs a new LookupEnvironmentHistoryResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListEnvironmentsResponse. - * @implements IListEnvironmentsResponse + * @classdesc Represents a LookupEnvironmentHistoryResponse. + * @implements ILookupEnvironmentHistoryResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set */ - function ListEnvironmentsResponse(properties) { + function LookupEnvironmentHistoryResponse(properties) { this.environments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -108366,43 +112953,43 @@ } /** - * ListEnvironmentsResponse environments. + * LookupEnvironmentHistoryResponse environments. * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @instance */ - ListEnvironmentsResponse.prototype.environments = $util.emptyArray; + LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; /** - * ListEnvironmentsResponse nextPageToken. + * LookupEnvironmentHistoryResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @instance */ - ListEnvironmentsResponse.prototype.nextPageToken = ""; + LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; /** - * Creates a new ListEnvironmentsResponse instance using the specified properties. + * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @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.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse instance */ - ListEnvironmentsResponse.create = function create(properties) { - return new ListEnvironmentsResponse(properties); + LookupEnvironmentHistoryResponse.create = function create(properties) { + return new LookupEnvironmentHistoryResponse(properties); }; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.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.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse 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 */ - ListEnvironmentsResponse.encode = function encode(message, writer) { + LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.environments != null && message.environments.length) @@ -108414,33 +113001,33 @@ }; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.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.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse 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 */ - ListEnvironmentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEnvironmentsResponse 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.ListEnvironmentsResponse + * @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.ListEnvironmentsResponse} ListEnvironmentsResponse + * @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 */ - ListEnvironmentsResponse.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.ListEnvironmentsResponse(); + 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) { @@ -108463,30 +113050,30 @@ }; /** - * Decodes a ListEnvironmentsResponse 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.ListEnvironmentsResponse + * @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.ListEnvironmentsResponse} ListEnvironmentsResponse + * @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 */ - ListEnvironmentsResponse.decodeDelimited = function decodeDelimited(reader) { + LookupEnvironmentHistoryResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEnvironmentsResponse message. + * Verifies a LookupEnvironmentHistoryResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @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 */ - ListEnvironmentsResponse.verify = function verify(message) { + LookupEnvironmentHistoryResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.environments != null && message.hasOwnProperty("environments")) { @@ -108505,106 +113092,441 @@ }; /** - * Creates a ListEnvironmentsResponse 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.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse */ - ListEnvironmentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) + 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.ListEnvironmentsResponse(); + 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.ListEnvironmentsResponse.environments: array expected"); + 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.ListEnvironmentsResponse.environments: object expected"); + 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); + 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); + }; + + /** + * Gets the default type url for LookupEnvironmentHistoryResponse + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LookupEnvironmentHistoryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse"; + }; + + return LookupEnvironmentHistoryResponse; + })(); + + v3beta1.ContinuousTestResult = (function() { + + /** + * Properties of a ContinuousTestResult. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IContinuousTestResult + * @property {string|null} [name] ContinuousTestResult name + * @property {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|null} [result] ContinuousTestResult result + * @property {Array.|null} [testCaseResults] ContinuousTestResult testCaseResults + * @property {google.protobuf.ITimestamp|null} [runTime] ContinuousTestResult runTime + */ + + /** + * Constructs a new ContinuousTestResult. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ContinuousTestResult. + * @implements IContinuousTestResult + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult=} [properties] Properties to set + */ + function ContinuousTestResult(properties) { + this.testCaseResults = []; + 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]]; + } + + /** + * ContinuousTestResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @instance + */ + ContinuousTestResult.prototype.name = ""; + + /** + * ContinuousTestResult result. + * @member {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult} result + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @instance + */ + ContinuousTestResult.prototype.result = 0; + + /** + * ContinuousTestResult testCaseResults. + * @member {Array.} testCaseResults + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @instance + */ + ContinuousTestResult.prototype.testCaseResults = $util.emptyArray; + + /** + * ContinuousTestResult runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @instance + */ + ContinuousTestResult.prototype.runTime = null; + + /** + * Creates a new ContinuousTestResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult instance + */ + ContinuousTestResult.create = function create(properties) { + return new ContinuousTestResult(properties); + }; + + /** + * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult} message ContinuousTestResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContinuousTestResult.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.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); + if (message.testCaseResults != null && message.testCaseResults.length) + for (var i = 0; i < message.testCaseResults.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCaseResults[i]); + if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) + $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult} message ContinuousTestResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContinuousTestResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ContinuousTestResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @static + * @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.ContinuousTestResult} ContinuousTestResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContinuousTestResult.decode = function decode(reader, length) { + 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.ContinuousTestResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.result = reader.int32(); + break; + } + case 3: { + if (!(message.testCaseResults && message.testCaseResults.length)) + message.testCaseResults = []; + message.testCaseResults.push(reader.string()); + break; + } + case 4: { + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContinuousTestResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ContinuousTestResult message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContinuousTestResult.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.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + break; + } + 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) + if (!$util.isString(message.testCaseResults[i])) + return "testCaseResults: string[] expected"; + } + if (message.runTime != null && message.hasOwnProperty("runTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.runTime); + if (error) + return "runTime." + error; + } + return null; + }; + + /** + * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult + */ + ContinuousTestResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult(); + if (object.name != null) + message.name = String(object.name); + switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; + case "AGGREGATED_TEST_RESULT_UNSPECIFIED": + case 0: + message.result = 0; + break; + case "PASSED": + case 1: + message.result = 1; + break; + case "FAILED": + case 2: + message.result = 2; + break; + } + if (object.testCaseResults) { + if (!Array.isArray(object.testCaseResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.testCaseResults: array expected"); + message.testCaseResults = []; + for (var i = 0; i < object.testCaseResults.length; ++i) + message.testCaseResults[i] = String(object.testCaseResults[i]); + } + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.runTime: object expected"); + message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); + } return message; }; /** - * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} message ContinuousTestResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEnvironmentsResponse.toObject = function toObject(message, options) { + ContinuousTestResult.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); + object.testCaseResults = []; + if (options.defaults) { + object.name = ""; + object.result = options.enums === String ? "AGGREGATED_TEST_RESULT_UNSPECIFIED" : 0; + object.runTime = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult[message.result] === undefined ? message.result : $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult[message.result] : message.result; + if (message.testCaseResults && message.testCaseResults.length) { + object.testCaseResults = []; + for (var j = 0; j < message.testCaseResults.length; ++j) + object.testCaseResults[j] = message.testCaseResults[j]; + } + if (message.runTime != null && message.hasOwnProperty("runTime")) + object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); return object; }; /** - * Converts this ListEnvironmentsResponse to JSON. + * Converts this ContinuousTestResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @instance * @returns {Object.} JSON object */ - ListEnvironmentsResponse.prototype.toJSON = function toJSON() { + ContinuousTestResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListEnvironmentsResponse + * Gets the default type url for ContinuousTestResult * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListEnvironmentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ContinuousTestResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult"; }; - return ListEnvironmentsResponse; + /** + * AggregatedTestResult enum. + * @name google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult + * @enum {number} + * @property {number} AGGREGATED_TEST_RESULT_UNSPECIFIED=0 AGGREGATED_TEST_RESULT_UNSPECIFIED value + * @property {number} PASSED=1 PASSED value + * @property {number} FAILED=2 FAILED value + */ + ContinuousTestResult.AggregatedTestResult = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AGGREGATED_TEST_RESULT_UNSPECIFIED"] = 0; + values[valuesById[1] = "PASSED"] = 1; + values[valuesById[2] = "FAILED"] = 2; + return values; + })(); + + return ContinuousTestResult; })(); - v3beta1.GetEnvironmentRequest = (function() { + v3beta1.RunContinuousTestRequest = (function() { /** - * Properties of a GetEnvironmentRequest. + * Properties of a RunContinuousTestRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetEnvironmentRequest - * @property {string|null} [name] GetEnvironmentRequest name + * @interface IRunContinuousTestRequest + * @property {string|null} [environment] RunContinuousTestRequest environment */ /** - * Constructs a new GetEnvironmentRequest. + * Constructs a new RunContinuousTestRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetEnvironmentRequest. - * @implements IGetEnvironmentRequest + * @classdesc Represents a RunContinuousTestRequest. + * @implements IRunContinuousTestRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest=} [properties] Properties to set */ - function GetEnvironmentRequest(properties) { + function RunContinuousTestRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108612,75 +113534,75 @@ } /** - * GetEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * RunContinuousTestRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @instance */ - GetEnvironmentRequest.prototype.name = ""; + RunContinuousTestRequest.prototype.environment = ""; /** - * Creates a new GetEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @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.IRunContinuousTestRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest instance */ - GetEnvironmentRequest.create = function create(properties) { - return new GetEnvironmentRequest(properties); + RunContinuousTestRequest.create = function create(properties) { + return new RunContinuousTestRequest(properties); }; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encode = function encode(message, writer) { + RunContinuousTestRequest.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 1, wireType 2 =*/10).string(message.environment); return writer; }; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunContinuousTestRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static * @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.RunContinuousTestRequest} RunContinuousTestRequest * @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) { + RunContinuousTestRequest.decode = function decode(reader, length) { 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.RunContinuousTestRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.environment = reader.string(); break; } default: @@ -108692,123 +113614,122 @@ }; /** - * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @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.RunContinuousTestRequest} RunContinuousTestRequest * @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) { + RunContinuousTestRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEnvironmentRequest message. + * Verifies a RunContinuousTestRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @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) { + RunContinuousTestRequest.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"; return null; }; /** - * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestRequest 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.RunContinuousTestRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest */ - GetEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest) + RunContinuousTestRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest(); + if (object.environment != null) + message.environment = String(object.environment); return message; }; /** - * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} message GetEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} message RunContinuousTestRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEnvironmentRequest.toObject = function toObject(message, options) { + RunContinuousTestRequest.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.environment = ""; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; return object; }; /** - * Converts this GetEnvironmentRequest to JSON. + * Converts this RunContinuousTestRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @instance * @returns {Object.} JSON object */ - GetEnvironmentRequest.prototype.toJSON = function toJSON() { + RunContinuousTestRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetEnvironmentRequest + * Gets the default type url for RunContinuousTestRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunContinuousTestRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest"; }; - return GetEnvironmentRequest; + return RunContinuousTestRequest; })(); - v3beta1.CreateEnvironmentRequest = (function() { + v3beta1.RunContinuousTestResponse = (function() { /** - * Properties of a CreateEnvironmentRequest. + * Properties of a RunContinuousTestResponse. * @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 IRunContinuousTestResponse + * @property {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null} [continuousTestResult] RunContinuousTestResponse continuousTestResult */ /** - * Constructs a new CreateEnvironmentRequest. + * Constructs a new RunContinuousTestResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateEnvironmentRequest. - * @implements ICreateEnvironmentRequest + * @classdesc Represents a RunContinuousTestResponse. + * @implements IRunContinuousTestResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse=} [properties] Properties to set */ - function CreateEnvironmentRequest(properties) { + function RunContinuousTestResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108816,89 +113737,75 @@ } /** - * CreateEnvironmentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest - * @instance - */ - CreateEnvironmentRequest.prototype.parent = ""; - - /** - * CreateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * RunContinuousTestResponse continuousTestResult. + * @member {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null|undefined} continuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @instance */ - CreateEnvironmentRequest.prototype.environment = null; + RunContinuousTestResponse.prototype.continuousTestResult = null; /** - * Creates a new CreateEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @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.IRunContinuousTestResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse instance */ - CreateEnvironmentRequest.create = function create(properties) { - return new CreateEnvironmentRequest(properties); + RunContinuousTestResponse.create = function create(properties) { + return new RunContinuousTestResponse(properties); }; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encode = function encode(message, writer) { + RunContinuousTestResponse.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.continuousTestResult != null && Object.hasOwnProperty.call(message, "continuousTestResult")) + $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.encode(message.continuousTestResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); 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 RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunContinuousTestResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static * @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.RunContinuousTestResponse} RunContinuousTestResponse * @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) { + RunContinuousTestResponse.decode = function decode(reader, length) { 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.RunContinuousTestResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); + message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.decode(reader, reader.uint32()); break; } default: @@ -108910,137 +113817,128 @@ }; /** - * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @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.RunContinuousTestResponse} RunContinuousTestResponse * @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) { + RunContinuousTestResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEnvironmentRequest message. + * Verifies a RunContinuousTestResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @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) { + RunContinuousTestResponse.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 (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify(message.continuousTestResult); if (error) - return "environment." + error; + return "continuousTestResult." + error; } return null; }; /** - * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestResponse 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.RunContinuousTestResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse */ - CreateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest) + RunContinuousTestResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse) 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.RunContinuousTestResponse(); + if (object.continuousTestResult != null) { + if (typeof object.continuousTestResult !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.continuousTestResult: object expected"); + message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.fromObject(object.continuousTestResult); } return message; }; /** - * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} message RunContinuousTestResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEnvironmentRequest.toObject = function toObject(message, options) { + RunContinuousTestResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.environment = null; - } - 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 (options.defaults) + object.continuousTestResult = null; + if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) + object.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.toObject(message.continuousTestResult, options); return object; }; /** - * Converts this CreateEnvironmentRequest to JSON. + * Converts this RunContinuousTestResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @instance * @returns {Object.} JSON object */ - CreateEnvironmentRequest.prototype.toJSON = function toJSON() { + RunContinuousTestResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateEnvironmentRequest + * Gets the default type url for RunContinuousTestResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunContinuousTestResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse"; }; - return CreateEnvironmentRequest; + return RunContinuousTestResponse; })(); - v3beta1.UpdateEnvironmentRequest = (function() { + v3beta1.RunContinuousTestMetadata = (function() { /** - * Properties of an UpdateEnvironmentRequest. + * Properties of a RunContinuousTestMetadata. * @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 IRunContinuousTestMetadata + * @property {Array.|null} [errors] RunContinuousTestMetadata errors */ /** - * Constructs a new UpdateEnvironmentRequest. + * Constructs a new RunContinuousTestMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateEnvironmentRequest. - * @implements IUpdateEnvironmentRequest + * @classdesc Represents a RunContinuousTestMetadata. + * @implements IRunContinuousTestMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata=} [properties] Properties to set */ - function UpdateEnvironmentRequest(properties) { + function RunContinuousTestMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109048,89 +113946,78 @@ } /** - * UpdateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest - * @instance - */ - UpdateEnvironmentRequest.prototype.environment = null; - - /** - * UpdateEnvironmentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * RunContinuousTestMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @instance */ - UpdateEnvironmentRequest.prototype.updateMask = null; + RunContinuousTestMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new UpdateEnvironmentRequest instance using the specified properties. + * Creates a new RunContinuousTestMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @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.IRunContinuousTestMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata instance */ - UpdateEnvironmentRequest.create = function create(properties) { - return new UpdateEnvironmentRequest(properties); + RunContinuousTestMetadata.create = function create(properties) { + return new RunContinuousTestMetadata(properties); }; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encode = function encode(message, writer) { + RunContinuousTestMetadata.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.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 UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata} message RunContinuousTestMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunContinuousTestMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static * @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.RunContinuousTestMetadata} RunContinuousTestMetadata * @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) { + RunContinuousTestMetadata.decode = function decode(reader, length) { 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.RunContinuousTestMetadata(); 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()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); break; } default: @@ -109142,141 +114029,141 @@ }; /** - * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a RunContinuousTestMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @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.RunContinuousTestMetadata} RunContinuousTestMetadata * @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) { + RunContinuousTestMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEnvironmentRequest message. + * Verifies a RunContinuousTestMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @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) { + RunContinuousTestMetadata.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.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 an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RunContinuousTestMetadata 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.RunContinuousTestMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata */ - UpdateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest) + RunContinuousTestMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata) 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.RunContinuousTestMetadata(); + if (object.errors) { + if (!Array.isArray(object.errors)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.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.RunContinuousTestMetadata.errors: object expected"); + message.errors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.errors[i]); + } } return message; }; /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a RunContinuousTestMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} message RunContinuousTestMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEnvironmentRequest.toObject = function toObject(message, options) { + RunContinuousTestMetadata.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.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 (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 UpdateEnvironmentRequest to JSON. + * Converts this RunContinuousTestMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @instance * @returns {Object.} JSON object */ - UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { + RunContinuousTestMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateEnvironmentRequest + * Gets the default type url for RunContinuousTestMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunContinuousTestMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata"; }; - return UpdateEnvironmentRequest; + return RunContinuousTestMetadata; })(); - v3beta1.DeleteEnvironmentRequest = (function() { + v3beta1.ListContinuousTestResultsRequest = (function() { /** - * Properties of a DeleteEnvironmentRequest. + * Properties of a ListContinuousTestResultsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteEnvironmentRequest - * @property {string|null} [name] DeleteEnvironmentRequest name + * @interface IListContinuousTestResultsRequest + * @property {string|null} [parent] ListContinuousTestResultsRequest parent + * @property {number|null} [pageSize] ListContinuousTestResultsRequest pageSize + * @property {string|null} [pageToken] ListContinuousTestResultsRequest pageToken */ /** - * Constructs a new DeleteEnvironmentRequest. + * Constructs a new ListContinuousTestResultsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteEnvironmentRequest. - * @implements IDeleteEnvironmentRequest + * @classdesc Represents a ListContinuousTestResultsRequest. + * @implements IListContinuousTestResultsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest=} [properties] Properties to set */ - function DeleteEnvironmentRequest(properties) { + function ListContinuousTestResultsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109284,75 +114171,103 @@ } /** - * DeleteEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * ListContinuousTestResultsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @instance */ - DeleteEnvironmentRequest.prototype.name = ""; + ListContinuousTestResultsRequest.prototype.parent = ""; /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * ListContinuousTestResultsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @instance + */ + ListContinuousTestResultsRequest.prototype.pageSize = 0; + + /** + * ListContinuousTestResultsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @instance + */ + ListContinuousTestResultsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListContinuousTestResultsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest instance */ - DeleteEnvironmentRequest.create = function create(properties) { - return new DeleteEnvironmentRequest(properties); + ListContinuousTestResultsRequest.create = function create(properties) { + return new ListContinuousTestResultsRequest(properties); }; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnvironmentRequest.encode = function encode(message, writer) { + ListContinuousTestResultsRequest.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); return writer; }; /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListContinuousTestResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnvironmentRequest.decode = function decode(reader, length) { + ListContinuousTestResultsRequest.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest(); 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; } default: @@ -109364,124 +114279,141 @@ }; /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + ListContinuousTestResultsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteEnvironmentRequest message. + * Verifies a ListContinuousTestResultsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEnvironmentRequest.verify = function verify(message) { + ListContinuousTestResultsRequest.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"; return null; }; /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest */ - DeleteEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest) + ListContinuousTestResultsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest(); + 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 DeleteEnvironmentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} message ListContinuousTestResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEnvironmentRequest.toObject = function toObject(message, options) { + ListContinuousTestResultsRequest.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 = ""; + } + 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 DeleteEnvironmentRequest to JSON. + * Converts this ListContinuousTestResultsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @instance * @returns {Object.} JSON object */ - DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { + ListContinuousTestResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteEnvironmentRequest + * Gets the default type url for ListContinuousTestResultsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteEnvironmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListContinuousTestResultsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest"; }; - return DeleteEnvironmentRequest; + return ListContinuousTestResultsRequest; })(); - v3beta1.LookupEnvironmentHistoryRequest = (function() { + v3beta1.ListContinuousTestResultsResponse = (function() { /** - * Properties of a LookupEnvironmentHistoryRequest. + * Properties of a ListContinuousTestResultsResponse. * @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 IListContinuousTestResultsResponse + * @property {Array.|null} [continuousTestResults] ListContinuousTestResultsResponse continuousTestResults + * @property {string|null} [nextPageToken] ListContinuousTestResultsResponse nextPageToken */ /** - * Constructs a new LookupEnvironmentHistoryRequest. + * Constructs a new ListContinuousTestResultsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a LookupEnvironmentHistoryRequest. - * @implements ILookupEnvironmentHistoryRequest + * @classdesc Represents a ListContinuousTestResultsResponse. + * @implements IListContinuousTestResultsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse=} [properties] Properties to set */ - function LookupEnvironmentHistoryRequest(properties) { + function ListContinuousTestResultsResponse(properties) { + this.continuousTestResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109489,103 +114421,92 @@ } /** - * LookupEnvironmentHistoryRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest - * @instance - */ - LookupEnvironmentHistoryRequest.prototype.name = ""; - - /** - * LookupEnvironmentHistoryRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * ListContinuousTestResultsResponse continuousTestResults. + * @member {Array.} continuousTestResults + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @instance */ - LookupEnvironmentHistoryRequest.prototype.pageSize = 0; + ListContinuousTestResultsResponse.prototype.continuousTestResults = $util.emptyArray; /** - * LookupEnvironmentHistoryRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * ListContinuousTestResultsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @instance */ - LookupEnvironmentHistoryRequest.prototype.pageToken = ""; + ListContinuousTestResultsResponse.prototype.nextPageToken = ""; /** - * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * Creates a new ListContinuousTestResultsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @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.IListContinuousTestResultsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse instance */ - LookupEnvironmentHistoryRequest.create = function create(properties) { - return new LookupEnvironmentHistoryRequest(properties); + ListContinuousTestResultsResponse.create = function create(properties) { + return new ListContinuousTestResultsResponse(properties); }; /** - * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encode = function encode(message, writer) { + ListContinuousTestResultsResponse.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.continuousTestResults != null && message.continuousTestResults.length) + for (var i = 0; i < message.continuousTestResults.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.encode(message.continuousTestResults[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 LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListContinuousTestResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static * @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.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse * @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) { + ListContinuousTestResultsResponse.decode = function decode(reader, length) { 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.ListContinuousTestResultsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.continuousTestResults && message.continuousTestResults.length)) + message.continuousTestResults = []; + message.continuousTestResults.push($root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.decode(reader, reader.uint32())); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -109597,141 +114518,149 @@ }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @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.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse * @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) { + ListContinuousTestResultsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupEnvironmentHistoryRequest message. + * Verifies a ListContinuousTestResultsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @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) { + ListContinuousTestResultsResponse.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.continuousTestResults != null && message.hasOwnProperty("continuousTestResults")) { + if (!Array.isArray(message.continuousTestResults)) + return "continuousTestResults: array expected"; + for (var i = 0; i < message.continuousTestResults.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify(message.continuousTestResults[i]); + if (error) + return "continuousTestResults." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContinuousTestResultsResponse 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.ListContinuousTestResultsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse */ - LookupEnvironmentHistoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest) + ListContinuousTestResultsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse) return object; - 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); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse(); + if (object.continuousTestResults) { + if (!Array.isArray(object.continuousTestResults)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.continuousTestResults: array expected"); + message.continuousTestResults = []; + for (var i = 0; i < object.continuousTestResults.length; ++i) { + if (typeof object.continuousTestResults[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.continuousTestResults: object expected"); + message.continuousTestResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.fromObject(object.continuousTestResults[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} message ListContinuousTestResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { + ListContinuousTestResultsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.pageSize = 0; - object.pageToken = ""; + if (options.arrays || options.defaults) + object.continuousTestResults = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.continuousTestResults && message.continuousTestResults.length) { + object.continuousTestResults = []; + for (var j = 0; j < message.continuousTestResults.length; ++j) + object.continuousTestResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.toObject(message.continuousTestResults[j], 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; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this LookupEnvironmentHistoryRequest to JSON. + * Converts this ListContinuousTestResultsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @instance * @returns {Object.} JSON object */ - LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { + ListContinuousTestResultsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupEnvironmentHistoryRequest + * Gets the default type url for ListContinuousTestResultsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupEnvironmentHistoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListContinuousTestResultsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse"; }; - return LookupEnvironmentHistoryRequest; + return ListContinuousTestResultsResponse; })(); - v3beta1.LookupEnvironmentHistoryResponse = (function() { + v3beta1.DeployFlowRequest = (function() { /** - * Properties of a LookupEnvironmentHistoryResponse. + * Properties of a DeployFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ILookupEnvironmentHistoryResponse - * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments - * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken + * @interface IDeployFlowRequest + * @property {string|null} [environment] DeployFlowRequest environment + * @property {string|null} [flowVersion] DeployFlowRequest flowVersion */ /** - * Constructs a new LookupEnvironmentHistoryResponse. + * Constructs a new DeployFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a LookupEnvironmentHistoryResponse. - * @implements ILookupEnvironmentHistoryResponse + * @classdesc Represents a DeployFlowRequest. + * @implements IDeployFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest=} [properties] Properties to set */ - function LookupEnvironmentHistoryResponse(properties) { - this.environments = []; + function DeployFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109739,92 +114668,89 @@ } /** - * LookupEnvironmentHistoryResponse environments. - * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * DeployFlowRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @instance */ - LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; + DeployFlowRequest.prototype.environment = ""; /** - * LookupEnvironmentHistoryResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * DeployFlowRequest flowVersion. + * @member {string} flowVersion + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @instance */ - LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; + DeployFlowRequest.prototype.flowVersion = ""; /** - * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * Creates a new DeployFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @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.IDeployFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest instance */ - LookupEnvironmentHistoryResponse.create = function create(properties) { - return new LookupEnvironmentHistoryResponse(properties); + DeployFlowRequest.create = function create(properties) { + return new DeployFlowRequest(properties); }; /** - * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { + DeployFlowRequest.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")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); 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 DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} message DeployFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeployFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * Decodes a DeployFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static * @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.DeployFlowRequest} DeployFlowRequest * @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) { + DeployFlowRequest.decode = function decode(reader, length) { 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.DeployFlowRequest(); 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 = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.flowVersion = reader.string(); break; } default: @@ -109836,152 +114762,132 @@ }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @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.DeployFlowRequest} DeployFlowRequest * @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) { + DeployFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupEnvironmentHistoryResponse message. + * Verifies a DeployFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @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) { + DeployFlowRequest.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.environment != null && message.hasOwnProperty("environment")) + if (!$util.isString(message.environment)) + return "environment: string expected"; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + if (!$util.isString(message.flowVersion)) + return "flowVersion: string expected"; return null; }; /** - * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest */ - LookupEnvironmentHistoryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) + DeployFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) 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]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest(); + if (object.environment != null) + message.environment = String(object.environment); + if (object.flowVersion != null) + message.flowVersion = String(object.flowVersion); return message; }; /** - * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeployFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse + * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} message DeployFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupEnvironmentHistoryResponse.toObject = function toObject(message, options) { + DeployFlowRequest.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 = ""; + object.flowVersion = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = message.environment; + if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) + object.flowVersion = message.flowVersion; return object; }; /** - * Converts this LookupEnvironmentHistoryResponse to JSON. + * Converts this DeployFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @instance * @returns {Object.} JSON object */ - LookupEnvironmentHistoryResponse.prototype.toJSON = function toJSON() { + DeployFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LookupEnvironmentHistoryResponse + * Gets the default type url for DeployFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LookupEnvironmentHistoryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeployFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest"; }; - return LookupEnvironmentHistoryResponse; + return DeployFlowRequest; })(); - v3beta1.ContinuousTestResult = (function() { + v3beta1.DeployFlowResponse = (function() { /** - * Properties of a ContinuousTestResult. + * Properties of a DeployFlowResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IContinuousTestResult - * @property {string|null} [name] ContinuousTestResult name - * @property {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult|null} [result] ContinuousTestResult result - * @property {Array.|null} [testCaseResults] ContinuousTestResult testCaseResults - * @property {google.protobuf.ITimestamp|null} [runTime] ContinuousTestResult runTime + * @interface IDeployFlowResponse + * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] DeployFlowResponse environment + * @property {string|null} [deployment] DeployFlowResponse deployment */ /** - * Constructs a new ContinuousTestResult. + * Constructs a new DeployFlowResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ContinuousTestResult. - * @implements IContinuousTestResult + * @classdesc Represents a DeployFlowResponse. + * @implements IDeployFlowResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse=} [properties] Properties to set */ - function ContinuousTestResult(properties) { - this.testCaseResults = []; + function DeployFlowResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109989,120 +114895,89 @@ } /** - * ContinuousTestResult name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult - * @instance - */ - ContinuousTestResult.prototype.name = ""; - - /** - * ContinuousTestResult result. - * @member {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult} result - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult - * @instance - */ - ContinuousTestResult.prototype.result = 0; - - /** - * ContinuousTestResult testCaseResults. - * @member {Array.} testCaseResults - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * DeployFlowResponse environment. + * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @instance */ - ContinuousTestResult.prototype.testCaseResults = $util.emptyArray; + DeployFlowResponse.prototype.environment = null; /** - * ContinuousTestResult runTime. - * @member {google.protobuf.ITimestamp|null|undefined} runTime - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * DeployFlowResponse deployment. + * @member {string} deployment + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @instance */ - ContinuousTestResult.prototype.runTime = null; + DeployFlowResponse.prototype.deployment = ""; /** - * Creates a new ContinuousTestResult instance using the specified properties. + * Creates a new DeployFlowResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse instance */ - ContinuousTestResult.create = function create(properties) { - return new ContinuousTestResult(properties); + DeployFlowResponse.create = function create(properties) { + return new DeployFlowResponse(properties); }; /** - * Encodes the specified ContinuousTestResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult} message ContinuousTestResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ContinuousTestResult.encode = function encode(message, writer) { + DeployFlowResponse.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.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); - if (message.testCaseResults != null && message.testCaseResults.length) - for (var i = 0; i < message.testCaseResults.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testCaseResults[i]); - if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) - $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + 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.deployment != null && Object.hasOwnProperty.call(message, "deployment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployment); return writer; }; /** - * Encodes the specified ContinuousTestResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify|verify} messages. + * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult} message ContinuousTestResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ContinuousTestResult.encodeDelimited = function encodeDelimited(message, writer) { + DeployFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer. + * Decodes a DeployFlowResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static * @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.ContinuousTestResult} ContinuousTestResult + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ContinuousTestResult.decode = function decode(reader, length) { + DeployFlowResponse.decode = function decode(reader, length) { 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.ContinuousTestResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); break; } case 2: { - message.result = reader.int32(); - break; - } - case 3: { - if (!(message.testCaseResults && message.testCaseResults.length)) - message.testCaseResults = []; - message.testCaseResults.push(reader.string()); - break; - } - case 4: { - message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.deployment = reader.string(); break; } default: @@ -110114,205 +114989,137 @@ }; /** - * Decodes a ContinuousTestResult message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ContinuousTestResult.decodeDelimited = function decodeDelimited(reader) { + DeployFlowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ContinuousTestResult message. + * Verifies a DeployFlowResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ContinuousTestResult.verify = function verify(message) { + DeployFlowResponse.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.result != null && message.hasOwnProperty("result")) - switch (message.result) { - default: - return "result: enum value expected"; - case 0: - case 1: - case 2: - break; - } - 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) - if (!$util.isString(message.testCaseResults[i])) - return "testCaseResults: string[] expected"; - } - if (message.runTime != null && message.hasOwnProperty("runTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.runTime); + if (message.environment != null && message.hasOwnProperty("environment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); if (error) - return "runTime." + error; + return "environment." + error; } + if (message.deployment != null && message.hasOwnProperty("deployment")) + if (!$util.isString(message.deployment)) + return "deployment: string expected"; return null; }; /** - * Creates a ContinuousTestResult message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} ContinuousTestResult + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse */ - ContinuousTestResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult) + DeployFlowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult(); - if (object.name != null) - message.name = String(object.name); - switch (object.result) { - default: - if (typeof object.result === "number") { - message.result = object.result; - break; - } - break; - case "AGGREGATED_TEST_RESULT_UNSPECIFIED": - case 0: - message.result = 0; - break; - case "PASSED": - case 1: - message.result = 1; - break; - case "FAILED": - case 2: - message.result = 2; - break; - } - if (object.testCaseResults) { - if (!Array.isArray(object.testCaseResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.testCaseResults: array expected"); - message.testCaseResults = []; - for (var i = 0; i < object.testCaseResults.length; ++i) - message.testCaseResults[i] = String(object.testCaseResults[i]); - } - if (object.runTime != null) { - if (typeof object.runTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.runTime: object expected"); - message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse(); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); } + if (object.deployment != null) + message.deployment = String(object.deployment); return message; }; /** - * Creates a plain object from a ContinuousTestResult message. Also converts values to other types if specified. + * Creates a plain object from a DeployFlowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult} message ContinuousTestResult + * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} message DeployFlowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ContinuousTestResult.toObject = function toObject(message, options) { + DeployFlowResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.testCaseResults = []; if (options.defaults) { - object.name = ""; - object.result = options.enums === String ? "AGGREGATED_TEST_RESULT_UNSPECIFIED" : 0; - object.runTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult[message.result] === undefined ? message.result : $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult[message.result] : message.result; - if (message.testCaseResults && message.testCaseResults.length) { - object.testCaseResults = []; - for (var j = 0; j < message.testCaseResults.length; ++j) - object.testCaseResults[j] = message.testCaseResults[j]; + object.environment = null; + object.deployment = ""; } - if (message.runTime != null && message.hasOwnProperty("runTime")) - object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); + if (message.deployment != null && message.hasOwnProperty("deployment")) + object.deployment = message.deployment; return object; }; /** - * Converts this ContinuousTestResult to JSON. + * Converts this DeployFlowResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @instance * @returns {Object.} JSON object */ - ContinuousTestResult.prototype.toJSON = function toJSON() { + DeployFlowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ContinuousTestResult + * Gets the default type url for DeployFlowResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ContinuousTestResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeployFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse"; }; - /** - * AggregatedTestResult enum. - * @name google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult - * @enum {number} - * @property {number} AGGREGATED_TEST_RESULT_UNSPECIFIED=0 AGGREGATED_TEST_RESULT_UNSPECIFIED value - * @property {number} PASSED=1 PASSED value - * @property {number} FAILED=2 FAILED value - */ - ContinuousTestResult.AggregatedTestResult = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AGGREGATED_TEST_RESULT_UNSPECIFIED"] = 0; - values[valuesById[1] = "PASSED"] = 1; - values[valuesById[2] = "FAILED"] = 2; - return values; - })(); - - return ContinuousTestResult; + return DeployFlowResponse; })(); - v3beta1.RunContinuousTestRequest = (function() { + v3beta1.DeployFlowMetadata = (function() { /** - * Properties of a RunContinuousTestRequest. + * Properties of a DeployFlowMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunContinuousTestRequest - * @property {string|null} [environment] RunContinuousTestRequest environment + * @interface IDeployFlowMetadata + * @property {Array.|null} [testErrors] DeployFlowMetadata testErrors */ /** - * Constructs a new RunContinuousTestRequest. + * Constructs a new DeployFlowMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunContinuousTestRequest. - * @implements IRunContinuousTestRequest + * @classdesc Represents a DeployFlowMetadata. + * @implements IDeployFlowMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata=} [properties] Properties to set */ - function RunContinuousTestRequest(properties) { + function DeployFlowMetadata(properties) { + this.testErrors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -110320,75 +115127,78 @@ } /** - * RunContinuousTestRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * DeployFlowMetadata testErrors. + * @member {Array.} testErrors + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @instance */ - RunContinuousTestRequest.prototype.environment = ""; + DeployFlowMetadata.prototype.testErrors = $util.emptyArray; /** - * Creates a new RunContinuousTestRequest instance using the specified properties. + * Creates a new DeployFlowMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata instance */ - RunContinuousTestRequest.create = function create(properties) { - return new RunContinuousTestRequest(properties); + DeployFlowMetadata.create = function create(properties) { + return new DeployFlowMetadata(properties); }; /** - * Encodes the specified RunContinuousTestRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. + * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestRequest.encode = function encode(message, writer) { + DeployFlowMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); + if (message.testErrors != null && message.testErrors.length) + for (var i = 0; i < message.testErrors.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.testErrors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified RunContinuousTestRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest.verify|verify} messages. + * Encodes the specified DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestRequest} message RunContinuousTestRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata} message DeployFlowMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RunContinuousTestRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployFlowMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer. + * Decodes a DeployFlowMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static * @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.RunContinuousTestRequest} RunContinuousTestRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestRequest.decode = function decode(reader, length) { + DeployFlowMetadata.decode = function decode(reader, length) { 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.RunContinuousTestRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.environment = reader.string(); + if (!(message.testErrors && message.testErrors.length)) + message.testErrors = []; + message.testErrors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); break; } default: @@ -110400,331 +115210,579 @@ }; /** - * Decodes a RunContinuousTestRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployFlowMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RunContinuousTestRequest.decodeDelimited = function decodeDelimited(reader) { + DeployFlowMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RunContinuousTestRequest message. + * Verifies a DeployFlowMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RunContinuousTestRequest.verify = function verify(message) { + DeployFlowMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; + if (message.testErrors != null && message.hasOwnProperty("testErrors")) { + if (!Array.isArray(message.testErrors)) + return "testErrors: array expected"; + for (var i = 0; i < message.testErrors.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.testErrors[i]); + if (error) + return "testErrors." + error; + } + } return null; }; /** - * Creates a RunContinuousTestRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployFlowMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} RunContinuousTestRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata */ - RunContinuousTestRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest) + DeployFlowMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest(); - if (object.environment != null) - message.environment = String(object.environment); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata(); + if (object.testErrors) { + if (!Array.isArray(object.testErrors)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.testErrors: array expected"); + message.testErrors = []; + for (var i = 0; i < object.testErrors.length; ++i) { + if (typeof object.testErrors[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.testErrors: object expected"); + message.testErrors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.testErrors[i]); + } + } return message; }; /** - * Creates a plain object from a RunContinuousTestRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployFlowMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest} message RunContinuousTestRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} message DeployFlowMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunContinuousTestRequest.toObject = function toObject(message, options) { + DeployFlowMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.environment = ""; - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; + if (options.arrays || options.defaults) + object.testErrors = []; + if (message.testErrors && message.testErrors.length) { + object.testErrors = []; + for (var j = 0; j < message.testErrors.length; ++j) + object.testErrors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.testErrors[j], options); + } return object; }; /** - * Converts this RunContinuousTestRequest to JSON. + * Converts this DeployFlowMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @instance * @returns {Object.} JSON object */ - RunContinuousTestRequest.prototype.toJSON = function toJSON() { + DeployFlowMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunContinuousTestRequest + * Gets the default type url for DeployFlowMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunContinuousTestRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeployFlowMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata"; }; - return RunContinuousTestRequest; + return DeployFlowMetadata; })(); - v3beta1.RunContinuousTestResponse = (function() { + v3beta1.TestCases = (function() { /** - * Properties of a RunContinuousTestResponse. + * Constructs a new TestCases service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunContinuousTestResponse - * @property {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null} [continuousTestResult] RunContinuousTestResponse continuousTestResult + * @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); + }; /** - * Constructs a new RunContinuousTestResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunContinuousTestResponse. - * @implements IRunContinuousTestResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse=} [properties] Properties to set + * 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 */ - function RunContinuousTestResponse(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]]; - } /** - * RunContinuousTestResponse continuousTestResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IContinuousTestResult|null|undefined} continuousTestResult - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse + * 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 */ - RunContinuousTestResponse.prototype.continuousTestResult = null; + 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" }); /** - * Creates a new RunContinuousTestResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse instance + * 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 */ - RunContinuousTestResponse.create = function create(properties) { - return new RunContinuousTestResponse(properties); - }; /** - * Encodes the specified RunContinuousTestResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * 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 */ - RunContinuousTestResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuousTestResult != null && Object.hasOwnProperty.call(message, "continuousTestResult")) - $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.encode(message.continuousTestResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified RunContinuousTestResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestResponse} message RunContinuousTestResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * 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 */ - RunContinuousTestResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + 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" }); /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @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.RunContinuousTestResponse} RunContinuousTestResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * 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 */ - RunContinuousTestResponse.decode = function decode(reader, length) { - 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.RunContinuousTestResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a RunContinuousTestResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse - * @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}. + * @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 */ - RunContinuousTestResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a RunContinuousTestResponse message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * 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 */ - RunContinuousTestResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify(message.continuousTestResult); - if (error) - return "continuousTestResult." + error; - } - return null; - }; + 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + + /** + * 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 + */ + 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + + /** + * 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 + */ + 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" }); + + /** + * 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 + */ + + /** + * 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 + */ + + /** + * 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 + */ + 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" }); /** - * Creates a RunContinuousTestResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} RunContinuousTestResponse + * 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 + * @returns {Promise} Promise + * @variation 2 */ - RunContinuousTestResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse(); - if (object.continuousTestResult != null) { - if (typeof object.continuousTestResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse.continuousTestResult: object expected"); - message.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.fromObject(object.continuousTestResult); - } - return message; - }; /** - * Creates a plain object from a RunContinuousTestResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse} message RunContinuousTestResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|getTestCaseResult}. + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @typedef GetTestCaseResultCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} [response] TestCaseResult */ - RunContinuousTestResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.continuousTestResult = null; - if (message.continuousTestResult != null && message.hasOwnProperty("continuousTestResult")) - object.continuousTestResult = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.toObject(message.continuousTestResult, options); - return object; - }; /** - * Converts this RunContinuousTestResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse + * Calls GetTestCaseResult. + * @function getTestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResultCallback} callback Node-style callback called with the error, if any, and TestCaseResult + * @returns {undefined} + * @variation 1 */ - RunContinuousTestResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(TestCases.prototype.getTestCaseResult = function getTestCaseResult(request, callback) { + return this.rpcCall(getTestCaseResult, $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult, request, callback); + }, "name", { value: "GetTestCaseResult" }); /** - * Gets the default type url for RunContinuousTestResponse - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls GetTestCaseResult. + * @function getTestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - RunContinuousTestResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse"; - }; - return RunContinuousTestResponse; + return TestCases; })(); - v3beta1.RunContinuousTestMetadata = (function() { + v3beta1.TestCase = (function() { /** - * Properties of a RunContinuousTestMetadata. + * Properties of a TestCase. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunContinuousTestMetadata - * @property {Array.|null} [errors] RunContinuousTestMetadata errors + * @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 RunContinuousTestMetadata. + * Constructs a new TestCase. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunContinuousTestMetadata. - * @implements IRunContinuousTestMetadata + * @classdesc Represents a TestCase. + * @implements ITestCase * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set */ - function RunContinuousTestMetadata(properties) { - this.errors = []; + 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) @@ -110732,78 +115790,179 @@ } /** - * RunContinuousTestMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * TestCase name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance */ - RunContinuousTestMetadata.prototype.errors = $util.emptyArray; + TestCase.prototype.name = ""; /** - * Creates a new RunContinuousTestMetadata instance using the specified properties. + * 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 + * @instance + */ + TestCase.prototype.lastTestResult = null; + + /** + * Creates a new TestCase instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase instance */ - RunContinuousTestMetadata.create = function create(properties) { - return new RunContinuousTestMetadata(properties); + TestCase.create = function create(properties) { + return new TestCase(properties); }; /** - * Encodes the specified RunContinuousTestMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.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.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata} message RunContinuousTestMetadata 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 */ - RunContinuousTestMetadata.encode = function encode(message, writer) { + TestCase.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.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 RunContinuousTestMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.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.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunContinuousTestMetadata} message RunContinuousTestMetadata 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 */ - RunContinuousTestMetadata.encodeDelimited = function encodeDelimited(message, writer) { + TestCase.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunContinuousTestMetadata 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.RunContinuousTestMetadata + * @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.RunContinuousTestMetadata} RunContinuousTestMetadata + * @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 */ - RunContinuousTestMetadata.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.RunContinuousTestMetadata(); + 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) { 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: { + 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()); break; } default: @@ -110815,141 +115974,230 @@ }; /** - * Decodes a RunContinuousTestMetadata 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.RunContinuousTestMetadata + * @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.RunContinuousTestMetadata} RunContinuousTestMetadata + * @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 */ - RunContinuousTestMetadata.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 RunContinuousTestMetadata message. + * Verifies a TestCase message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @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 */ - RunContinuousTestMetadata.verify = function verify(message) { + TestCase.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 (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 "errors." + 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 RunContinuousTestMetadata 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.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} RunContinuousTestMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase */ - RunContinuousTestMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata) + 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.RunContinuousTestMetadata(); - if (object.errors) { - if (!Array.isArray(object.errors)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata.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.RunContinuousTestMetadata.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.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); + } return message; }; /** - * Creates a plain object from a RunContinuousTestMetadata 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.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata} message RunContinuousTestMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} message TestCase * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunContinuousTestMetadata.toObject = function toObject(message, options) { + TestCase.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.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); return object; }; /** - * Converts this RunContinuousTestMetadata to JSON. + * Converts this TestCase to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @instance * @returns {Object.} JSON object */ - RunContinuousTestMetadata.prototype.toJSON = function toJSON() { + TestCase.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunContinuousTestMetadata + * Gets the default type url for TestCase * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunContinuousTestMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestCase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestCase"; }; - return RunContinuousTestMetadata; + return TestCase; })(); - v3beta1.ListContinuousTestResultsRequest = (function() { + v3beta1.TestCaseResult = (function() { /** - * Properties of a ListContinuousTestResultsRequest. + * Properties of a TestCaseResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListContinuousTestResultsRequest - * @property {string|null} [parent] ListContinuousTestResultsRequest parent - * @property {number|null} [pageSize] ListContinuousTestResultsRequest pageSize - * @property {string|null} [pageToken] ListContinuousTestResultsRequest pageToken + * @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 ListContinuousTestResultsRequest. + * Constructs a new TestCaseResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListContinuousTestResultsRequest. - * @implements IListContinuousTestResultsRequest + * @classdesc Represents a TestCaseResult. + * @implements ITestCaseResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set */ - function ListContinuousTestResultsRequest(properties) { + function TestCaseResult(properties) { + this.conversationTurns = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -110957,103 +116205,134 @@ } /** - * ListContinuousTestResultsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * TestCaseResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance */ - ListContinuousTestResultsRequest.prototype.parent = ""; + TestCaseResult.prototype.name = ""; /** - * ListContinuousTestResultsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * TestCaseResult environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance */ - ListContinuousTestResultsRequest.prototype.pageSize = 0; + TestCaseResult.prototype.environment = ""; /** - * ListContinuousTestResultsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * TestCaseResult conversationTurns. + * @member {Array.} conversationTurns + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance */ - ListContinuousTestResultsRequest.prototype.pageToken = ""; + TestCaseResult.prototype.conversationTurns = $util.emptyArray; /** - * Creates a new ListContinuousTestResultsRequest instance using the specified properties. + * 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.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult instance */ - ListContinuousTestResultsRequest.create = function create(properties) { - return new ListContinuousTestResultsRequest(properties); + TestCaseResult.create = function create(properties) { + return new TestCaseResult(properties); }; /** - * Encodes the specified ListContinuousTestResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.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.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest 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 */ - ListContinuousTestResultsRequest.encode = function encode(message, writer) { + TestCaseResult.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.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 ListContinuousTestResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest.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.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsRequest} message ListContinuousTestResultsRequest 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 */ - ListContinuousTestResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContinuousTestResultsRequest 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.ListContinuousTestResultsRequest + * @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.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest + * @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 */ - ListContinuousTestResultsRequest.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.ListContinuousTestResultsRequest(); + 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: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.environment = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + 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: @@ -111065,141 +116344,205 @@ }; /** - * Decodes a ListContinuousTestResultsRequest 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.ListContinuousTestResultsRequest + * @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.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest + * @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 */ - ListContinuousTestResultsRequest.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 ListContinuousTestResultsRequest message. + * Verifies a TestCaseResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @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 */ - ListContinuousTestResultsRequest.verify = function verify(message) { + TestCaseResult.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.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 (error) + return "testTime." + error; + } return null; }; /** - * Creates a ListContinuousTestResultsRequest 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} ListContinuousTestResultsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult */ - ListContinuousTestResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest) + 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.ListContinuousTestResultsRequest(); - 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.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) { + default: + if (typeof object.testResult === "number") { + message.testResult = object.testResult; + break; + } + break; + 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; }; /** - * Creates a plain object from a ListContinuousTestResultsRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestCaseResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest} message ListContinuousTestResultsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} message TestCaseResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContinuousTestResultsRequest.toObject = function toObject(message, options) { + TestCaseResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.conversationTurns = []; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.environment = ""; + object.testResult = options.enums === String ? "TEST_RESULT_UNSPECIFIED" : 0; + object.testTime = 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.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] === undefined ? message.testResult : $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; }; /** - * Converts this ListContinuousTestResultsRequest to JSON. + * Converts this TestCaseResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @instance * @returns {Object.} JSON object */ - ListContinuousTestResultsRequest.prototype.toJSON = function toJSON() { + TestCaseResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListContinuousTestResultsRequest + * Gets the default type url for TestCaseResult * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListContinuousTestResultsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestCaseResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestCaseResult"; }; - return ListContinuousTestResultsRequest; + return TestCaseResult; })(); - v3beta1.ListContinuousTestResultsResponse = (function() { + v3beta1.TestConfig = (function() { /** - * Properties of a ListContinuousTestResultsResponse. + * Properties of a TestConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListContinuousTestResultsResponse - * @property {Array.|null} [continuousTestResults] ListContinuousTestResultsResponse continuousTestResults - * @property {string|null} [nextPageToken] ListContinuousTestResultsResponse nextPageToken + * @interface ITestConfig + * @property {Array.|null} [trackingParameters] TestConfig trackingParameters + * @property {string|null} [flow] TestConfig flow + * @property {string|null} [page] TestConfig page */ /** - * Constructs a new ListContinuousTestResultsResponse. + * Constructs a new TestConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListContinuousTestResultsResponse. - * @implements IListContinuousTestResultsResponse + * @classdesc Represents a TestConfig. + * @implements ITestConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set */ - function ListContinuousTestResultsResponse(properties) { - this.continuousTestResults = []; + function TestConfig(properties) { + this.trackingParameters = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111207,92 +116550,106 @@ } /** - * ListContinuousTestResultsResponse continuousTestResults. - * @member {Array.} continuousTestResults - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * TestConfig trackingParameters. + * @member {Array.} trackingParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @instance */ - ListContinuousTestResultsResponse.prototype.continuousTestResults = $util.emptyArray; + TestConfig.prototype.trackingParameters = $util.emptyArray; /** - * ListContinuousTestResultsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * TestConfig flow. + * @member {string} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @instance */ - ListContinuousTestResultsResponse.prototype.nextPageToken = ""; + TestConfig.prototype.flow = ""; /** - * Creates a new ListContinuousTestResultsResponse instance using the specified properties. + * TestConfig page. + * @member {string} page + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @instance + */ + TestConfig.prototype.page = ""; + + /** + * Creates a new TestConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig instance */ - ListContinuousTestResultsResponse.create = function create(properties) { - return new ListContinuousTestResultsResponse(properties); + TestConfig.create = function create(properties) { + return new TestConfig(properties); }; /** - * Encodes the specified ListContinuousTestResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. + * 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.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode + * @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 */ - ListContinuousTestResultsResponse.encode = function encode(message, writer) { + TestConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.continuousTestResults != null && message.continuousTestResults.length) - for (var i = 0; i < message.continuousTestResults.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.encode(message.continuousTestResults[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.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.page != null && Object.hasOwnProperty.call(message, "page")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.page); return writer; }; /** - * Encodes the specified ListContinuousTestResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.verify|verify} messages. + * 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.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListContinuousTestResultsResponse} message ListContinuousTestResultsResponse message or plain object to encode + * @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 */ - ListContinuousTestResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + TestConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer. + * Decodes a TestConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @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.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse + * @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 */ - ListContinuousTestResultsResponse.decode = function decode(reader, length) { + 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.ListContinuousTestResultsResponse(); + 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.continuousTestResults && message.continuousTestResults.length)) - message.continuousTestResults = []; - message.continuousTestResults.push($root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.decode(reader, reader.uint32())); + if (!(message.trackingParameters && message.trackingParameters.length)) + message.trackingParameters = []; + message.trackingParameters.push(reader.string()); break; } case 2: { - message.nextPageToken = reader.string(); + message.flow = reader.string(); + break; + } + case 3: { + message.page = reader.string(); break; } default: @@ -111304,149 +116661,153 @@ }; /** - * Decodes a ListContinuousTestResultsResponse message from the specified reader or buffer, length delimited. + * Decodes a TestConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @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.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse + * @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 */ - ListContinuousTestResultsResponse.decodeDelimited = function decodeDelimited(reader) { + TestConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContinuousTestResultsResponse message. + * Verifies a TestConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @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 */ - ListContinuousTestResultsResponse.verify = function verify(message) { + TestConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.continuousTestResults != null && message.hasOwnProperty("continuousTestResults")) { - if (!Array.isArray(message.continuousTestResults)) - return "continuousTestResults: array expected"; - for (var i = 0; i < message.continuousTestResults.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.verify(message.continuousTestResults[i]); - if (error) - return "continuousTestResults." + error; - } + 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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.flow != null && message.hasOwnProperty("flow")) + if (!$util.isString(message.flow)) + return "flow: string expected"; + if (message.page != null && message.hasOwnProperty("page")) + if (!$util.isString(message.page)) + return "page: string expected"; return null; }; /** - * Creates a ListContinuousTestResultsResponse 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} ListContinuousTestResultsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig */ - ListContinuousTestResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse) + 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.ListContinuousTestResultsResponse(); - if (object.continuousTestResults) { - if (!Array.isArray(object.continuousTestResults)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.continuousTestResults: array expected"); - message.continuousTestResults = []; - for (var i = 0; i < object.continuousTestResults.length; ++i) { - if (typeof object.continuousTestResults[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse.continuousTestResults: object expected"); - message.continuousTestResults[i] = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.fromObject(object.continuousTestResults[i]); - } + 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.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.flow != null) + message.flow = String(object.flow); + if (object.page != null) + message.page = String(object.page); return message; }; /** - * Creates a plain object from a ListContinuousTestResultsResponse message. Also converts values to other types if specified. + * Creates a plain object from a TestConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse} message ListContinuousTestResultsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.TestConfig} message TestConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContinuousTestResultsResponse.toObject = function toObject(message, options) { + TestConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.continuousTestResults = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.continuousTestResults && message.continuousTestResults.length) { - object.continuousTestResults = []; - for (var j = 0; j < message.continuousTestResults.length; ++j) - object.continuousTestResults[j] = $root.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.toObject(message.continuousTestResults[j], options); + object.trackingParameters = []; + if (options.defaults) { + object.flow = ""; + object.page = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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; + if (message.page != null && message.hasOwnProperty("page")) + object.page = message.page; return object; }; /** - * Converts this ListContinuousTestResultsResponse to JSON. + * Converts this TestConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @instance * @returns {Object.} JSON object */ - ListContinuousTestResultsResponse.prototype.toJSON = function toJSON() { + TestConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListContinuousTestResultsResponse + * Gets the default type url for TestConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListContinuousTestResultsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestConfig"; }; - return ListContinuousTestResultsResponse; + return TestConfig; })(); - v3beta1.DeployFlowRequest = (function() { + v3beta1.ConversationTurn = (function() { /** - * Properties of a DeployFlowRequest. + * Properties of a ConversationTurn. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeployFlowRequest - * @property {string|null} [environment] DeployFlowRequest environment - * @property {string|null} [flowVersion] DeployFlowRequest flowVersion + * @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 DeployFlowRequest. + * Constructs a new ConversationTurn. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeployFlowRequest. - * @implements IDeployFlowRequest + * @classdesc Represents a ConversationTurn. + * @implements IConversationTurn * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set */ - function DeployFlowRequest(properties) { + function ConversationTurn(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111454,89 +116815,89 @@ } /** - * DeployFlowRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * ConversationTurn userInput. + * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null|undefined} userInput + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @instance */ - DeployFlowRequest.prototype.environment = ""; + ConversationTurn.prototype.userInput = null; /** - * DeployFlowRequest flowVersion. - * @member {string} flowVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * ConversationTurn virtualAgentOutput. + * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @instance */ - DeployFlowRequest.prototype.flowVersion = ""; + ConversationTurn.prototype.virtualAgentOutput = null; /** - * Creates a new DeployFlowRequest instance using the specified properties. + * Creates a new ConversationTurn instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn instance */ - DeployFlowRequest.create = function create(properties) { - return new DeployFlowRequest(properties); + ConversationTurn.create = function create(properties) { + return new ConversationTurn(properties); }; /** - * Encodes the specified DeployFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.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.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} message DeployFlowRequest 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 */ - DeployFlowRequest.encode = function encode(message, writer) { + ConversationTurn.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.environment); - if (message.flowVersion != null && Object.hasOwnProperty.call(message, "flowVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowVersion); + 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 DeployFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest.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.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowRequest} message DeployFlowRequest 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 */ - DeployFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployFlowRequest 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.DeployFlowRequest + * @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.DeployFlowRequest} DeployFlowRequest + * @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 */ - DeployFlowRequest.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.DeployFlowRequest(); + 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.environment = reader.string(); + message.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.decode(reader, reader.uint32()); break; } case 2: { - message.flowVersion = reader.string(); + message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); break; } default: @@ -111548,132 +116909,836 @@ }; /** - * Decodes a DeployFlowRequest 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.DeployFlowRequest + * @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.DeployFlowRequest} DeployFlowRequest + * @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 */ - DeployFlowRequest.decodeDelimited = function decodeDelimited(reader) { + ConversationTurn.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployFlowRequest message. + * Verifies a ConversationTurn message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @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 */ - DeployFlowRequest.verify = function verify(message) { + ConversationTurn.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environment != null && message.hasOwnProperty("environment")) - if (!$util.isString(message.environment)) - return "environment: string expected"; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - if (!$util.isString(message.flowVersion)) - return "flowVersion: string 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; + } return null; }; /** - * Creates a DeployFlowRequest 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.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} DeployFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn */ - DeployFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest) + 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.DeployFlowRequest(); - if (object.environment != null) - message.environment = String(object.environment); - if (object.flowVersion != null) - message.flowVersion = String(object.flowVersion); + 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); + } return message; }; /** - * Creates a plain object from a DeployFlowRequest 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.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest} message DeployFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} message ConversationTurn * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployFlowRequest.toObject = function toObject(message, options) { + ConversationTurn.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.environment = ""; - object.flowVersion = ""; + object.userInput = null; + object.virtualAgentOutput = null; } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = message.environment; - if (message.flowVersion != null && message.hasOwnProperty("flowVersion")) - object.flowVersion = message.flowVersion; + 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 DeployFlowRequest to JSON. + * Converts this ConversationTurn to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @instance * @returns {Object.} JSON object */ - DeployFlowRequest.prototype.toJSON = function toJSON() { + ConversationTurn.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployFlowRequest + * Gets the default type url for ConversationTurn * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConversationTurn.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ConversationTurn"; }; - return DeployFlowRequest; + 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 + * @property {boolean|null} [enableSentimentAnalysis] UserInput enableSentimentAnalysis + */ + + /** + * 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; + + /** + * UserInput enableSentimentAnalysis. + * @member {boolean} enableSentimentAnalysis + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.enableSentimentAnalysis = 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(); + if (message.enableSentimentAnalysis != null && Object.hasOwnProperty.call(message, "enableSentimentAnalysis")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableSentimentAnalysis); + 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; + } + case 7: { + message.enableSentimentAnalysis = 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"; + if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) + if (typeof message.enableSentimentAnalysis !== "boolean") + return "enableSentimentAnalysis: 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); + if (object.enableSentimentAnalysis != null) + message.enableSentimentAnalysis = Boolean(object.enableSentimentAnalysis); + 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; + object.enableSentimentAnalysis = false; + } + 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); + if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) + object.enableSentimentAnalysis = message.enableSentimentAnalysis; + 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); + }; + + /** + * Gets the default type url for UserInput + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UserInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput"; + }; + + return UserInput; + })(); + + ConversationTurn.VirtualAgentOutput = (function() { + + /** + * 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 + */ + + /** + * 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]]; + } + + /** + * VirtualAgentOutput sessionParameters. + * @member {google.protobuf.IStruct|null|undefined} sessionParameters + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.sessionParameters = null; + + /** + * VirtualAgentOutput differences. + * @member {Array.} differences + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.differences = $util.emptyArray; + + /** + * VirtualAgentOutput diagnosticInfo. + * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.diagnosticInfo = null; + + /** + * 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; + + /** + * 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; + + /** + * VirtualAgentOutput textResponses. + * @member {Array.} textResponses + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.textResponses = $util.emptyArray; + + /** + * VirtualAgentOutput status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @instance + */ + VirtualAgentOutput.prototype.status = null; + + /** + * 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); + }; + + /** + * 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 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(); + }; + + /** + * 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; + } + } + 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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); + }; + + /** + * Gets the default type url for VirtualAgentOutput + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VirtualAgentOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput"; + }; + + return VirtualAgentOutput; + })(); + + return ConversationTurn; })(); - v3beta1.DeployFlowResponse = (function() { + v3beta1.TestRunDifference = (function() { /** - * Properties of a DeployFlowResponse. + * Properties of a TestRunDifference. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeployFlowResponse - * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] DeployFlowResponse environment - * @property {string|null} [deployment] DeployFlowResponse deployment + * @interface ITestRunDifference + * @property {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType|null} [type] TestRunDifference type + * @property {string|null} [description] TestRunDifference description */ /** - * Constructs a new DeployFlowResponse. + * Constructs a new TestRunDifference. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeployFlowResponse. - * @implements IDeployFlowResponse + * @classdesc Represents a TestRunDifference. + * @implements ITestRunDifference * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set */ - function DeployFlowResponse(properties) { + function TestRunDifference(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111681,89 +117746,89 @@ } /** - * DeployFlowResponse environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse + * TestRunDifference type. + * @member {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType} type + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @instance */ - DeployFlowResponse.prototype.environment = null; + TestRunDifference.prototype.type = 0; /** - * DeployFlowResponse deployment. - * @member {string} deployment - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse + * TestRunDifference description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @instance */ - DeployFlowResponse.prototype.deployment = ""; + TestRunDifference.prototype.description = ""; /** - * Creates a new DeployFlowResponse instance using the specified properties. + * Creates a new TestRunDifference instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference instance */ - DeployFlowResponse.create = function create(properties) { - return new DeployFlowResponse(properties); + TestRunDifference.create = function create(properties) { + return new TestRunDifference(properties); }; /** - * Encodes the specified DeployFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. + * 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.DeployFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode + * @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 */ - DeployFlowResponse.encode = function encode(message, writer) { + TestRunDifference.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.deployment != null && Object.hasOwnProperty.call(message, "deployment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployment); + 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; }; /** - * Encodes the specified DeployFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.verify|verify} messages. + * 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.DeployFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowResponse} message DeployFlowResponse message or plain object to encode + * @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 */ - DeployFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { + TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployFlowResponse message from the specified reader or buffer. + * Decodes a TestRunDifference message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse + * @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.DeployFlowResponse} DeployFlowResponse + * @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 */ - DeployFlowResponse.decode = function decode(reader, length) { + 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.DeployFlowResponse(); + 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.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); + message.type = reader.int32(); break; } case 2: { - message.deployment = reader.string(); + message.description = reader.string(); break; } default: @@ -111775,137 +117840,194 @@ }; /** - * Decodes a DeployFlowResponse 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.v3beta1.DeployFlowResponse + * @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.DeployFlowResponse} DeployFlowResponse + * @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 */ - DeployFlowResponse.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 DeployFlowResponse message. + * Verifies a TestRunDifference message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse + * @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 */ - DeployFlowResponse.verify = function verify(message) { + TestRunDifference.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.deployment != null && message.hasOwnProperty("deployment")) - if (!$util.isString(message.deployment)) - return "deployment: 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: + case 4: + case 5: + break; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a DeployFlowResponse 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.v3beta1.DeployFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} DeployFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference */ - DeployFlowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse) + 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.DeployFlowResponse(); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + 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; + case "FLOW": + case 5: + message.type = 5; + break; } - if (object.deployment != null) - message.deployment = String(object.deployment); + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a DeployFlowResponse 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.v3beta1.DeployFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse} message DeployFlowResponse + * @param {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} message TestRunDifference * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployFlowResponse.toObject = function toObject(message, options) { + TestRunDifference.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.environment = null; - object.deployment = ""; + object.type = options.enums === String ? "DIFF_TYPE_UNSPECIFIED" : 0; + object.description = ""; } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); - if (message.deployment != null && message.hasOwnProperty("deployment")) - object.deployment = message.deployment; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType[message.type] === undefined ? message.type : $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; }; /** - * Converts this DeployFlowResponse to JSON. + * Converts this TestRunDifference to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @instance * @returns {Object.} JSON object */ - DeployFlowResponse.prototype.toJSON = function toJSON() { + TestRunDifference.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployFlowResponse + * Gets the default type url for TestRunDifference * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestRunDifference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestRunDifference"; }; - return DeployFlowResponse; + /** + * 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 + * @property {number} FLOW=5 FLOW 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; + values[valuesById[5] = "FLOW"] = 5; + return values; + })(); + + return TestRunDifference; })(); - v3beta1.DeployFlowMetadata = (function() { + v3beta1.TransitionCoverage = (function() { /** - * Properties of a DeployFlowMetadata. + * Properties of a TransitionCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeployFlowMetadata - * @property {Array.|null} [testErrors] DeployFlowMetadata testErrors + * @interface ITransitionCoverage + * @property {Array.|null} [transitions] TransitionCoverage transitions + * @property {number|null} [coverageScore] TransitionCoverage coverageScore */ /** - * Constructs a new DeployFlowMetadata. + * Constructs a new TransitionCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeployFlowMetadata. - * @implements IDeployFlowMetadata + * @classdesc Represents a TransitionCoverage. + * @implements ITransitionCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set */ - function DeployFlowMetadata(properties) { - this.testErrors = []; + function TransitionCoverage(properties) { + this.transitions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111913,78 +118035,92 @@ } /** - * DeployFlowMetadata testErrors. - * @member {Array.} testErrors - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * TransitionCoverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @instance */ - DeployFlowMetadata.prototype.testErrors = $util.emptyArray; + TransitionCoverage.prototype.transitions = $util.emptyArray; /** - * Creates a new DeployFlowMetadata 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.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage instance */ - DeployFlowMetadata.create = function create(properties) { - return new DeployFlowMetadata(properties); + TransitionCoverage.create = function create(properties) { + return new TransitionCoverage(properties); }; /** - * Encodes the specified DeployFlowMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.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.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata} message DeployFlowMetadata 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 */ - DeployFlowMetadata.encode = function encode(message, writer) { + TransitionCoverage.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.testErrors != null && message.testErrors.length) - for (var i = 0; i < message.testErrors.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TestError.encode(message.testErrors[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 DeployFlowMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.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.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeployFlowMetadata} message DeployFlowMetadata 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 */ - DeployFlowMetadata.encodeDelimited = function encodeDelimited(message, writer) { + TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployFlowMetadata 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.DeployFlowMetadata + * @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.DeployFlowMetadata} DeployFlowMetadata + * @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 */ - DeployFlowMetadata.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.DeployFlowMetadata(); + 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.testErrors && message.testErrors.length)) - message.testErrors = []; - message.testErrors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.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: @@ -111996,579 +118132,1535 @@ }; /** - * Decodes a DeployFlowMetadata 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.DeployFlowMetadata + * @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.DeployFlowMetadata} DeployFlowMetadata + * @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 */ - DeployFlowMetadata.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 DeployFlowMetadata message. + * Verifies a TransitionCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @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 */ - DeployFlowMetadata.verify = function verify(message) { + TransitionCoverage.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.testErrors != null && message.hasOwnProperty("testErrors")) { - if (!Array.isArray(message.testErrors)) - return "testErrors: array expected"; - for (var i = 0; i < message.testErrors.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestError.verify(message.testErrors[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 "testErrors." + error; + return "transitions." + error; } } + if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a DeployFlowMetadata 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.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} DeployFlowMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage */ - DeployFlowMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata) + 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.DeployFlowMetadata(); - if (object.testErrors) { - if (!Array.isArray(object.testErrors)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.testErrors: array expected"); - message.testErrors = []; - for (var i = 0; i < object.testErrors.length; ++i) { - if (typeof object.testErrors[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata.testErrors: object expected"); - message.testErrors[i] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.fromObject(object.testErrors[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 DeployFlowMetadata 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.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata} message DeployFlowMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} message TransitionCoverage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployFlowMetadata.toObject = function toObject(message, options) { + TransitionCoverage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.testErrors = []; - if (message.testErrors && message.testErrors.length) { - object.testErrors = []; - for (var j = 0; j < message.testErrors.length; ++j) - object.testErrors[j] = $root.google.cloud.dialogflow.cx.v3beta1.TestError.toObject(message.testErrors[j], options); + 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 DeployFlowMetadata to JSON. + * Converts this TransitionCoverage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @instance * @returns {Object.} JSON object */ - DeployFlowMetadata.prototype.toJSON = function toJSON() { + TransitionCoverage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployFlowMetadata + * Gets the default type url for TransitionCoverage * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployFlowMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TransitionCoverage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionCoverage"; }; - return DeployFlowMetadata; - })(); + TransitionCoverage.TransitionNode = (function() { - v3beta1.TestCases = (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 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); - } + /** + * 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]]; + } - (TestCases.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TestCases; + /** + * 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; - /** - * 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); - }; + /** + * 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; - /** - * 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 - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * 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" }); + /** + * 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) + }); - /** - * 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 - */ + /** + * 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); + }; - /** - * 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 - */ + /** + * 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; + }; - /** - * 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" }); + /** + * 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(); + }; - /** - * 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 - */ + /** + * 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; + }; - /** - * 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 - */ + /** + * 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()); + }; - /** - * 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" }); + /** + * 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; + }; - /** - * 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 - */ + /** + * 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; + }; - /** - * 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 - */ + /** + * 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; + }; - /** - * 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" }); + /** + * 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); + }; - /** - * 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 - */ + /** + * Gets the default type url for TransitionNode + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransitionNode.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode"; + }; - /** - * 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 - */ + return TransitionNode; + })(); - /** - * 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" }); + TransitionCoverage.Transition = (function() { - /** - * 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 - */ + /** + * 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 + */ - /** - * 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 - */ + /** + * 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]]; + } - /** - * 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" }); + /** + * 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; + + /** + * Transition index. + * @member {number} index + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @instance + */ + Transition.prototype.index = 0; + + /** + * 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; + + /** + * 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.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); + }; + + /** + * 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 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(); + }; + + /** + * 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; + } + } + 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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"; + } + 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); + }; + + /** + * Gets the default type url for Transition + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Transition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition"; + }; + + return Transition; + })(); + + return TransitionCoverage; + })(); + + v3beta1.TransitionRouteGroupCoverage = (function() { /** - * 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 + * Properties of a TransitionRouteGroupCoverage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ITransitionRouteGroupCoverage + * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages + * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore */ /** - * 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 + * Constructs a new TransitionRouteGroupCoverage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a TransitionRouteGroupCoverage. + * @implements ITransitionRouteGroupCoverage + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set */ + function TransitionRouteGroupCoverage(properties) { + this.coverages = []; + 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 BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * TransitionRouteGroupCoverage coverages. + * @member {Array.} coverages + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @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" }); + TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; /** - * Calls BatchRunTestCases. - * @function batchRunTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * TransitionRouteGroupCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} request BatchRunTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + TransitionRouteGroupCoverage.prototype.coverageScore = 0; /** - * 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 + * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage instance */ + TransitionRouteGroupCoverage.create = function create(properties) { + return new TransitionRouteGroupCoverage(properties); + }; /** - * 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 + * 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.TransitionRouteGroupCoverage + * @static + * @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 */ - 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" }); + TransitionRouteGroupCoverage.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); + return writer; + }; /** - * 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 + * 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.TransitionRouteGroupCoverage + * @static + * @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 */ + TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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 + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * @function decode + * @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.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @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) { + 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(); + 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())); + break; + } + case 2: { + message.coverageScore = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * 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 + * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @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.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" }); + TransitionRouteGroupCoverage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * 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 + * Verifies a TransitionRouteGroupCoverage message. + * @function verify + * @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 */ + TransitionRouteGroupCoverage.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.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; + return null; + }; /** - * 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 + * Creates a TransitionRouteGroupCoverage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage */ + 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.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; + }; /** - * 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 + * Creates a plain object from a TransitionRouteGroupCoverage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - 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" }); + TransitionRouteGroupCoverage.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 (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + return object; + }; /** - * Calls ExportTestCases. - * @function exportTestCases - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases + * Converts this TransitionRouteGroupCoverage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} request ExportTestCasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * 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 + * Gets the default type url for TransitionRouteGroupCoverage + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + TransitionRouteGroupCoverage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage"; + }; - /** - * 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 - */ - 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" }); + TransitionRouteGroupCoverage.Coverage = (function() { - /** - * 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 - * @returns {Promise} Promise - * @variation 2 - */ + /** + * 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 + */ - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TestCases|getTestCaseResult}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @typedef GetTestCaseResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} [response] TestCaseResult - */ + /** + * 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]]; + } - /** - * Calls GetTestCaseResult. - * @function getTestCaseResult - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResultCallback} callback Node-style callback called with the error, if any, and TestCaseResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(TestCases.prototype.getTestCaseResult = function getTestCaseResult(request, callback) { - return this.rpcCall(getTestCaseResult, $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult, request, callback); - }, "name", { value: "GetTestCaseResult" }); + /** + * 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; - /** - * Calls GetTestCaseResult. - * @function getTestCaseResult - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCases - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} request GetTestCaseResultRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Coverage transitions. + * @member {Array.} transitions + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.transitions = $util.emptyArray; - return TestCases; + /** + * Coverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @instance + */ + Coverage.prototype.coverageScore = 0; + + /** + * 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 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 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 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; + }; + + /** + * 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 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; + }; + + /** + * 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]); + } + } + 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.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 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); + }; + + /** + * Gets the default type url for Coverage + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Coverage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage"; + }; + + Coverage.Transition = (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 + */ + + /** + * 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]]; + } + + /** + * 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; + + /** + * Transition covered. + * @member {boolean} covered + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @instance + */ + Transition.prototype.covered = false; + + /** + * 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 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 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 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 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; + }; + + /** + * 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; + }; + + /** + * 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); + }; + + /** + * Gets the default type url for Transition + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Transition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition"; + }; + + return Transition; + })(); + + return Coverage; + })(); + + return TransitionRouteGroupCoverage; })(); - v3beta1.TestCase = (function() { + v3beta1.IntentCoverage = (function() { /** - * Properties of a TestCase. + * Properties of an IntentCoverage. * @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 IIntentCoverage + * @property {Array.|null} [intents] IntentCoverage intents + * @property {number|null} [coverageScore] IntentCoverage coverageScore */ /** - * Constructs a new TestCase. + * Constructs a new IntentCoverage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCase. - * @implements ITestCase + * @classdesc Represents an IntentCoverage. + * @implements IIntentCoverage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set */ - function TestCase(properties) { - this.tags = []; - this.testCaseConversationTurns = []; + function IntentCoverage(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112576,179 +119668,92 @@ } /** - * 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 + * IntentCoverage intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @instance */ - TestCase.prototype.creationTime = null; + IntentCoverage.prototype.intents = $util.emptyArray; /** - * TestCase lastTestResult. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} lastTestResult - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * IntentCoverage coverageScore. + * @member {number} coverageScore + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @instance */ - TestCase.prototype.lastTestResult = null; + IntentCoverage.prototype.coverageScore = 0; /** - * Creates a new TestCase instance using the specified properties. + * Creates a new IntentCoverage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @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.IIntentCoverage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage instance */ - TestCase.create = function create(properties) { - return new TestCase(properties); + IntentCoverage.create = function create(properties) { + return new IntentCoverage(properties); }; /** - * Encodes the specified TestCase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.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.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase 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 */ - TestCase.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.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.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 TestCase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCase.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.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCase} message TestCase 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 */ - TestCase.encodeDelimited = function encodeDelimited(message, writer) { + IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCase 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.TestCase + * @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.TestCase} TestCase + * @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 */ - TestCase.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.TestCase(); + 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.name = 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: { - 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()); + message.coverageScore = reader.float(); break; } default: @@ -112760,230 +119765,376 @@ }; /** - * Decodes a TestCase 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.TestCase + * @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.TestCase} TestCase + * @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 */ - TestCase.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 TestCase message. + * Verifies an IntentCoverage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @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 */ - TestCase.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.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 (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 "testCaseConversationTurns." + error; + return "intents." + 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.coverageScore != null && message.hasOwnProperty("coverageScore")) + if (typeof message.coverageScore !== "number") + return "coverageScore: number expected"; return null; }; /** - * Creates a TestCase 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.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCase} TestCase + * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage */ - TestCase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCase) + 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.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]); + 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.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); - } + if (object.coverageScore != null) + message.coverageScore = Number(object.coverageScore); return message; }; /** - * Creates a plain object from a TestCase 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.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestCase} message TestCase + * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} message IntentCoverage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCase.toObject = function toObject(message, options) { + IntentCoverage.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 (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.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 (message.coverageScore != null && message.hasOwnProperty("coverageScore")) + object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this TestCase to JSON. + * Converts this IntentCoverage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @instance * @returns {Object.} JSON object */ - TestCase.prototype.toJSON = function toJSON() { + IntentCoverage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestCase + * Gets the default type url for IntentCoverage * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCase + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestCase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + IntentCoverage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestCase"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.IntentCoverage"; }; - return TestCase; + 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); + }; + + /** + * Gets the default type url for Intent + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Intent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent"; + }; + + return Intent; + })(); + + return IntentCoverage; })(); - v3beta1.TestCaseResult = (function() { + v3beta1.CalculateCoverageRequest = (function() { /** - * Properties of a TestCaseResult. + * Properties of a CalculateCoverageRequest. * @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 ICalculateCoverageRequest + * @property {string|null} [agent] CalculateCoverageRequest agent + * @property {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType|null} [type] CalculateCoverageRequest type */ /** - * Constructs a new TestCaseResult. + * Constructs a new CalculateCoverageRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestCaseResult. - * @implements ITestCaseResult + * @classdesc Represents a CalculateCoverageRequest. + * @implements ICalculateCoverageRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set */ - function TestCaseResult(properties) { - this.conversationTurns = []; + function CalculateCoverageRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112991,134 +120142,89 @@ } /** - * 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 + * CalculateCoverageRequest agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @instance */ - TestCaseResult.prototype.testResult = 0; + CalculateCoverageRequest.prototype.agent = ""; /** - * TestCaseResult testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * CalculateCoverageRequest type. + * @member {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType} type + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @instance */ - TestCaseResult.prototype.testTime = null; + CalculateCoverageRequest.prototype.type = 0; /** - * Creates a new TestCaseResult instance using the specified properties. + * Creates a new CalculateCoverageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @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.ICalculateCoverageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest instance */ - TestCaseResult.create = function create(properties) { - return new TestCaseResult(properties); + CalculateCoverageRequest.create = function create(properties) { + return new CalculateCoverageRequest(properties); }; /** - * Encodes the specified TestCaseResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.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.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult 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 */ - TestCaseResult.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.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.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 TestCaseResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestCaseResult.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.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult} message TestCaseResult 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 */ - TestCaseResult.encodeDelimited = function encodeDelimited(message, writer) { + CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestCaseResult 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.TestCaseResult + * @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.TestCaseResult} TestCaseResult + * @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 */ - TestCaseResult.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.TestCaseResult(); + 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.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.v3beta1.ConversationTurn.decode(reader, reader.uint32())); - break; - } - case 4: { - message.testResult = reader.int32(); + message.agent = reader.string(); break; } - case 5: { - message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 2: { + message.type = reader.int32(); break; } default: @@ -113130,205 +120236,181 @@ }; /** - * Decodes a TestCaseResult 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.TestCaseResult + * @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.TestCaseResult} TestCaseResult + * @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 */ - TestCaseResult.decodeDelimited = function decodeDelimited(reader) { + CalculateCoverageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestCaseResult message. + * Verifies a CalculateCoverageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @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 */ - TestCaseResult.verify = function verify(message) { + CalculateCoverageRequest.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) { + 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 "testResult: enum value expected"; + return "type: enum value expected"; case 0: case 1: case 2: + case 3: break; } - 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 TestCaseResult 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.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} TestCaseResult + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest */ - TestCaseResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult) + 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.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) { + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(); + if (object.agent != null) + message.agent = String(object.agent); + switch (object.type) { default: - if (typeof object.testResult === "number") { - message.testResult = object.testResult; + if (typeof object.type === "number") { + message.type = object.type; break; } break; - case "TEST_RESULT_UNSPECIFIED": + case "COVERAGE_TYPE_UNSPECIFIED": case 0: - message.testResult = 0; + message.type = 0; break; - case "PASSED": + case "INTENT": case 1: - message.testResult = 1; + message.type = 1; break; - case "FAILED": + case "PAGE_TRANSITION": case 2: - message.testResult = 2; + message.type = 2; + break; + case "TRANSITION_ROUTE_GROUP": + case 3: + message.type = 3; 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; }; /** - * Creates a plain object from a TestCaseResult 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.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseResult} message TestCaseResult + * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} message CalculateCoverageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestCaseResult.toObject = function toObject(message, options) { + CalculateCoverageRequest.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.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; + object.agent = ""; } - if (message.testResult != null && message.hasOwnProperty("testResult")) - object.testResult = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestResult[message.testResult] === undefined ? message.testResult : $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.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType[message.type] === undefined ? message.type : $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 TestCaseResult to JSON. + * Converts this CalculateCoverageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @instance * @returns {Object.} JSON object */ - TestCaseResult.prototype.toJSON = function toJSON() { + CalculateCoverageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestCaseResult + * Gets the default type url for CalculateCoverageRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseResult + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestCaseResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CalculateCoverageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestCaseResult"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest"; }; - return TestCaseResult; + /** + * 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.TestConfig = (function() { + v3beta1.CalculateCoverageResponse = (function() { /** - * Properties of a TestConfig. + * Properties of a CalculateCoverageResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITestConfig - * @property {Array.|null} [trackingParameters] TestConfig trackingParameters - * @property {string|null} [flow] TestConfig flow - * @property {string|null} [page] TestConfig page + * @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 TestConfig. + * Constructs a new CalculateCoverageResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestConfig. - * @implements ITestConfig + * @classdesc Represents a CalculateCoverageResponse. + * @implements ICalculateCoverageResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set */ - function TestConfig(properties) { - this.trackingParameters = []; + function CalculateCoverageResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113336,106 +120418,131 @@ } /** - * TestConfig trackingParameters. - * @member {Array.} trackingParameters - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * CalculateCoverageResponse agent. + * @member {string} agent + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance */ - TestConfig.prototype.trackingParameters = $util.emptyArray; + CalculateCoverageResponse.prototype.agent = ""; /** - * TestConfig flow. - * @member {string} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * CalculateCoverageResponse intentCoverage. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null|undefined} intentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance */ - TestConfig.prototype.flow = ""; + CalculateCoverageResponse.prototype.intentCoverage = null; /** - * TestConfig page. - * @member {string} page - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * CalculateCoverageResponse transitionCoverage. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null|undefined} transitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance */ - TestConfig.prototype.page = ""; + CalculateCoverageResponse.prototype.transitionCoverage = null; /** - * Creates a new TestConfig instance using the specified properties. + * CalculateCoverageResponse routeGroupCoverage. + * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @instance + */ + CalculateCoverageResponse.prototype.routeGroupCoverage = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CalculateCoverageResponse coverageType. + * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @instance + */ + Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { + get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CalculateCoverageResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @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.ICalculateCoverageResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse instance */ - TestConfig.create = function create(properties) { - return new TestConfig(properties); + CalculateCoverageResponse.create = function create(properties) { + return new CalculateCoverageResponse(properties); }; /** - * Encodes the specified TestConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.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.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig 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 */ - TestConfig.encode = function encode(message, writer) { + CalculateCoverageResponse.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.page != null && Object.hasOwnProperty.call(message, "page")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.page); + 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 TestConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestConfig.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.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestConfig} message TestConfig 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 */ - TestConfig.encodeDelimited = function encodeDelimited(message, writer) { + CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestConfig 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.TestConfig + * @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.TestConfig} TestConfig + * @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 */ - TestConfig.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.TestConfig(); + 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: { - if (!(message.trackingParameters && message.trackingParameters.length)) - message.trackingParameters = []; - message.trackingParameters.push(reader.string()); + case 5: { + message.agent = reader.string(); break; } case 2: { - message.flow = reader.string(); + message.intentCoverage = $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.decode(reader, reader.uint32()); break; } - case 3: { - message.page = reader.string(); + 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: @@ -113447,153 +120554,184 @@ }; /** - * Decodes a TestConfig 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.TestConfig + * @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.TestConfig} TestConfig + * @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 */ - TestConfig.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 TestConfig message. + * Verifies a CalculateCoverageResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @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 */ - TestConfig.verify = function verify(message) { + CalculateCoverageResponse.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.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; + } } - if (message.flow != null && message.hasOwnProperty("flow")) - if (!$util.isString(message.flow)) - return "flow: string expected"; - if (message.page != null && message.hasOwnProperty("page")) - if (!$util.isString(message.page)) - return "page: string expected"; return null; }; /** - * Creates a TestConfig 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.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestConfig} TestConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse */ - TestConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestConfig) + 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.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]); + 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); } - if (object.flow != null) - message.flow = String(object.flow); - if (object.page != null) - message.page = String(object.page); return message; }; /** - * Creates a plain object from a TestConfig 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.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestConfig} message TestConfig + * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} message CalculateCoverageResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestConfig.toObject = function toObject(message, options) { + CalculateCoverageResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.trackingParameters = []; - if (options.defaults) { - object.flow = ""; - object.page = ""; + 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.trackingParameters && message.trackingParameters.length) { - object.trackingParameters = []; - for (var j = 0; j < message.trackingParameters.length; ++j) - object.trackingParameters[j] = message.trackingParameters[j]; + 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"; } - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = message.flow; - if (message.page != null && message.hasOwnProperty("page")) - object.page = message.page; return object; }; /** - * Converts this TestConfig to JSON. + * Converts this CalculateCoverageResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @instance * @returns {Object.} JSON object */ - TestConfig.prototype.toJSON = function toJSON() { + CalculateCoverageResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestConfig + * Gets the default type url for CalculateCoverageResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CalculateCoverageResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestConfig"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse"; }; - return TestConfig; + return CalculateCoverageResponse; })(); - v3beta1.ConversationTurn = (function() { + v3beta1.ListTestCasesRequest = (function() { /** - * Properties of a ConversationTurn. + * Properties of a ListTestCasesRequest. * @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 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 ConversationTurn. + * Constructs a new ListTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ConversationTurn. - * @implements IConversationTurn + * @classdesc Represents a ListTestCasesRequest. + * @implements IListTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set */ - function ConversationTurn(properties) { + function ListTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113601,89 +120739,117 @@ } /** - * ConversationTurn userInput. - * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IUserInput|null|undefined} userInput - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * ListTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @instance */ - ConversationTurn.prototype.userInput = null; + ListTestCasesRequest.prototype.parent = ""; /** - * ConversationTurn virtualAgentOutput. - * @member {google.cloud.dialogflow.cx.v3beta1.ConversationTurn.IVirtualAgentOutput|null|undefined} virtualAgentOutput - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * ListTestCasesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @instance */ - ConversationTurn.prototype.virtualAgentOutput = null; + ListTestCasesRequest.prototype.pageSize = 0; /** - * Creates a new ConversationTurn instance using the specified properties. + * 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.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @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.IListTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest instance */ - ConversationTurn.create = function create(properties) { - return new ConversationTurn(properties); + ListTestCasesRequest.create = function create(properties) { + return new ListTestCasesRequest(properties); }; /** - * Encodes the specified ConversationTurn message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.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.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn 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 */ - ConversationTurn.encode = function encode(message, writer) { + ListTestCasesRequest.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.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 ConversationTurn message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ConversationTurn.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.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IConversationTurn} message ConversationTurn 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 */ - ConversationTurn.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConversationTurn 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.ConversationTurn + * @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.ConversationTurn} ConversationTurn + * @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 */ - ConversationTurn.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.ConversationTurn(); + 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.userInput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.virtualAgentOutput = $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.view = reader.int32(); break; } default: @@ -113695,836 +120861,189 @@ }; /** - * Decodes a ConversationTurn 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.ConversationTurn + * @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.ConversationTurn} ConversationTurn + * @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 */ - ConversationTurn.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 ConversationTurn message. + * Verifies a ListTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @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 */ - ConversationTurn.verify = function verify(message) { + ListTestCasesRequest.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.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 ConversationTurn 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.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} ConversationTurn + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest */ - ConversationTurn.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ConversationTurn) + 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.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.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) { + default: + if (typeof object.view === "number") { + message.view = object.view; + break; + } + break; + 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 ConversationTurn 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.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ConversationTurn} message ConversationTurn + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} message ListTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConversationTurn.toObject = function toObject(message, options) { + ListTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.userInput = null; - object.virtualAgentOutput = null; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.view = options.enums === String ? "TEST_CASE_VIEW_UNSPECIFIED" : 0; } - 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.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] === undefined ? message.view : $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView[message.view] : message.view; return object; }; /** - * Converts this ConversationTurn to JSON. + * Converts this ListTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @instance * @returns {Object.} JSON object */ - ConversationTurn.prototype.toJSON = function toJSON() { + ListTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ConversationTurn + * Gets the default type url for ListTestCasesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ConversationTurn.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ConversationTurn"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest"; }; - 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 - * @property {boolean|null} [enableSentimentAnalysis] UserInput enableSentimentAnalysis - */ - - /** - * 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; - - /** - * UserInput enableSentimentAnalysis. - * @member {boolean} enableSentimentAnalysis - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @instance - */ - UserInput.prototype.enableSentimentAnalysis = 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(); - if (message.enableSentimentAnalysis != null && Object.hasOwnProperty.call(message, "enableSentimentAnalysis")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableSentimentAnalysis); - 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; - } - case 7: { - message.enableSentimentAnalysis = 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"; - if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) - if (typeof message.enableSentimentAnalysis !== "boolean") - return "enableSentimentAnalysis: 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); - if (object.enableSentimentAnalysis != null) - message.enableSentimentAnalysis = Boolean(object.enableSentimentAnalysis); - 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; - object.enableSentimentAnalysis = false; - } - 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); - if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) - object.enableSentimentAnalysis = message.enableSentimentAnalysis; - 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); - }; - - /** - * Gets the default type url for UserInput - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UserInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput"; - }; - - return UserInput; - })(); - - ConversationTurn.VirtualAgentOutput = (function() { - - /** - * 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 - */ - - /** - * 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]]; - } - - /** - * VirtualAgentOutput sessionParameters. - * @member {google.protobuf.IStruct|null|undefined} sessionParameters - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.sessionParameters = null; - - /** - * VirtualAgentOutput differences. - * @member {Array.} differences - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.differences = $util.emptyArray; - - /** - * VirtualAgentOutput diagnosticInfo. - * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.diagnosticInfo = null; - - /** - * 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; - - /** - * 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; - - /** - * VirtualAgentOutput textResponses. - * @member {Array.} textResponses - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.textResponses = $util.emptyArray; - - /** - * VirtualAgentOutput status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @instance - */ - VirtualAgentOutput.prototype.status = null; - - /** - * 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); - }; - - /** - * 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 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(); - }; - - /** - * 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; - } - } - 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()); - }; - - /** - * 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; - }; - - /** - * 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; - }; - - /** - * 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; - }; - - /** - * 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); - }; - - /** - * Gets the default type url for VirtualAgentOutput - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - VirtualAgentOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput"; - }; - - return VirtualAgentOutput; + /** + * 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 ConversationTurn; + return ListTestCasesRequest; })(); - v3beta1.TestRunDifference = (function() { + v3beta1.ListTestCasesResponse = (function() { /** - * Properties of a TestRunDifference. + * Properties of a ListTestCasesResponse. * @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 IListTestCasesResponse + * @property {Array.|null} [testCases] ListTestCasesResponse testCases + * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken */ /** - * Constructs a new TestRunDifference. + * Constructs a new ListTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestRunDifference. - * @implements ITestRunDifference + * @classdesc Represents a ListTestCasesResponse. + * @implements IListTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set */ - function TestRunDifference(properties) { + function ListTestCasesResponse(properties) { + this.testCases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114532,89 +121051,92 @@ } /** - * TestRunDifference type. - * @member {google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType} type - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * ListTestCasesResponse testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @instance */ - TestRunDifference.prototype.type = 0; + ListTestCasesResponse.prototype.testCases = $util.emptyArray; /** - * TestRunDifference description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * ListTestCasesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @instance */ - TestRunDifference.prototype.description = ""; + ListTestCasesResponse.prototype.nextPageToken = ""; /** - * Creates a new TestRunDifference instance using the specified properties. + * Creates a new ListTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @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.IListTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse instance */ - TestRunDifference.create = function create(properties) { - return new TestRunDifference(properties); + ListTestCasesResponse.create = function create(properties) { + return new ListTestCasesResponse(properties); }; /** - * Encodes the specified TestRunDifference message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * 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.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode + * @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 */ - 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); + 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; }; /** - * Encodes the specified TestRunDifference message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestRunDifference.verify|verify} messages. + * 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.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestRunDifference} message TestRunDifference message or plain object to encode + * @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 */ - TestRunDifference.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestRunDifference message from the specified reader or buffer. + * Decodes a ListTestCasesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @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.TestRunDifference} TestRunDifference + * @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 */ - TestRunDifference.decode = function decode(reader, length) { + 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.TestRunDifference(); + 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: { - message.type = reader.int32(); + 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.description = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -114626,194 +121148,150 @@ }; /** - * Decodes a TestRunDifference message from the specified reader or buffer, length delimited. + * Decodes a ListTestCasesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @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.TestRunDifference} TestRunDifference + * @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 */ - TestRunDifference.decodeDelimited = function decodeDelimited(reader) { + ListTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestRunDifference message. + * Verifies a ListTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @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 */ - TestRunDifference.verify = function verify(message) { + ListTestCasesResponse.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: - case 5: - break; + 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.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a TestRunDifference 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} TestRunDifference + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse */ - TestRunDifference.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference) + 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.TestRunDifference(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; + 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]); } - break; - 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; - case "FLOW": - case 5: - message.type = 5; - break; } - if (object.description != null) - message.description = String(object.description); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a TestRunDifference message. Also converts values to other types if specified. + * Creates a plain object from a ListTestCasesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestRunDifference} message TestRunDifference + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} message ListTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestRunDifference.toObject = function toObject(message, options) { + ListTestCasesResponse.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 (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.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType[message.type] === undefined ? message.type : $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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this TestRunDifference to JSON. + * Converts this ListTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @instance * @returns {Object.} JSON object */ - TestRunDifference.prototype.toJSON = function toJSON() { + ListTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestRunDifference + * Gets the default type url for ListTestCasesResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TestRunDifference + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestRunDifference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTestCasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestRunDifference"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse"; }; - /** - * 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 - * @property {number} FLOW=5 FLOW 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; - values[valuesById[5] = "FLOW"] = 5; - return values; - })(); - - return TestRunDifference; + return ListTestCasesResponse; })(); - v3beta1.TransitionCoverage = (function() { + v3beta1.BatchDeleteTestCasesRequest = (function() { /** - * Properties of a TransitionCoverage. + * Properties of a BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionCoverage - * @property {Array.|null} [transitions] TransitionCoverage transitions - * @property {number|null} [coverageScore] TransitionCoverage coverageScore + * @interface IBatchDeleteTestCasesRequest + * @property {string|null} [parent] BatchDeleteTestCasesRequest parent + * @property {Array.|null} [names] BatchDeleteTestCasesRequest names */ /** - * Constructs a new TransitionCoverage. + * Constructs a new BatchDeleteTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionCoverage. - * @implements ITransitionCoverage + * @classdesc Represents a BatchDeleteTestCasesRequest. + * @implements IBatchDeleteTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set */ - function TransitionCoverage(properties) { - this.transitions = []; + function BatchDeleteTestCasesRequest(properties) { + this.names = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114821,92 +121299,92 @@ } /** - * TransitionCoverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * BatchDeleteTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @instance */ - TransitionCoverage.prototype.transitions = $util.emptyArray; + BatchDeleteTestCasesRequest.prototype.parent = ""; /** - * TransitionCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * BatchDeleteTestCasesRequest names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @instance */ - TransitionCoverage.prototype.coverageScore = 0; + BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; /** - * Creates a new TransitionCoverage instance using the specified properties. + * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @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.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest instance */ - TransitionCoverage.create = function create(properties) { - return new TransitionCoverage(properties); + BatchDeleteTestCasesRequest.create = function create(properties) { + return new BatchDeleteTestCasesRequest(properties); }; /** - * Encodes the specified TransitionCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage 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 */ - TransitionCoverage.encode = function encode(message, writer) { + BatchDeleteTestCasesRequest.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.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 TransitionCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.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.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage} message TransitionCoverage 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 */ - TransitionCoverage.encodeDelimited = function encodeDelimited(message, writer) { + BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionCoverage 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.TransitionCoverage + * @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.TransitionCoverage} TransitionCoverage + * @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 */ - TransitionCoverage.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.TransitionCoverage(); + 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: { - if (!(message.transitions && message.transitions.length)) - message.transitions = []; - message.transitions.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } - case 2: { - message.coverageScore = reader.float(); + case 3: { + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; } default: @@ -114918,778 +121396,144 @@ }; /** - * Decodes a TransitionCoverage 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.TransitionCoverage + * @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.TransitionCoverage} TransitionCoverage + * @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 */ - TransitionCoverage.decodeDelimited = function decodeDelimited(reader) { + BatchDeleteTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionCoverage message. + * Verifies a BatchDeleteTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @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 */ - TransitionCoverage.verify = function verify(message) { + BatchDeleteTestCasesRequest.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]); - if (error) - return "transitions." + error; - } + 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.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 BatchDeleteTestCasesRequest 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.BatchDeleteTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} TransitionCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest */ - TransitionCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage) + 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.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.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 (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 BatchDeleteTestCasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionCoverage} message TransitionCoverage + * @param {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionCoverage.toObject = function toObject(message, options) { + BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.transitions = []; + object.names = []; 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); + 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.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; return object; }; /** - * Converts this TransitionCoverage to JSON. + * Converts this BatchDeleteTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @instance * @returns {Object.} JSON object */ - TransitionCoverage.prototype.toJSON = function toJSON() { + BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TransitionCoverage + * Gets the default type url for BatchDeleteTestCasesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TransitionCoverage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchDeleteTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionCoverage"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest"; }; - 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); - }; - - /** - * Gets the default type url for TransitionNode - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TransitionNode.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode"; - }; - - 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]]; - } - - /** - * 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; - - /** - * Transition index. - * @member {number} index - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @instance - */ - Transition.prototype.index = 0; - - /** - * 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; - - /** - * 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.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); - }; - - /** - * 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 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(); - }; - - /** - * 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; - } - } - 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()); - }; - - /** - * 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; - }; - - /** - * 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; - }; - - /** - * 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"; - } - 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); - }; - - /** - * Gets the default type url for Transition - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Transition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition"; - }; - - return Transition; - })(); - - return TransitionCoverage; + return BatchDeleteTestCasesRequest; })(); - v3beta1.TransitionRouteGroupCoverage = (function() { + v3beta1.CreateTestCaseRequest = (function() { /** - * Properties of a TransitionRouteGroupCoverage. + * Properties of a CreateTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionRouteGroupCoverage - * @property {Array.|null} [coverages] TransitionRouteGroupCoverage coverages - * @property {number|null} [coverageScore] TransitionRouteGroupCoverage coverageScore + * @interface ICreateTestCaseRequest + * @property {string|null} [parent] CreateTestCaseRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] CreateTestCaseRequest testCase */ /** - * Constructs a new TransitionRouteGroupCoverage. + * Constructs a new CreateTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionRouteGroupCoverage. - * @implements ITransitionRouteGroupCoverage + * @classdesc Represents a CreateTestCaseRequest. + * @implements ICreateTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set */ - function TransitionRouteGroupCoverage(properties) { - this.coverages = []; + function CreateTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115697,92 +121541,89 @@ } /** - * TransitionRouteGroupCoverage coverages. - * @member {Array.} coverages - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * CreateTestCaseRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @instance */ - TransitionRouteGroupCoverage.prototype.coverages = $util.emptyArray; + CreateTestCaseRequest.prototype.parent = ""; /** - * TransitionRouteGroupCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * CreateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @instance */ - TransitionRouteGroupCoverage.prototype.coverageScore = 0; + CreateTestCaseRequest.prototype.testCase = null; /** - * Creates a new TransitionRouteGroupCoverage instance using the specified properties. + * Creates a new CreateTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @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.ICreateTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest instance */ - TransitionRouteGroupCoverage.create = function create(properties) { - return new TransitionRouteGroupCoverage(properties); + CreateTestCaseRequest.create = function create(properties) { + return new CreateTestCaseRequest(properties); }; /** - * Encodes the specified TransitionRouteGroupCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * 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.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @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 */ - TransitionRouteGroupCoverage.encode = function encode(message, writer) { + CreateTestCaseRequest.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.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; }; /** - * Encodes the specified TransitionRouteGroupCoverage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.verify|verify} messages. + * 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.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage} message TransitionRouteGroupCoverage message or plain object to encode + * @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 */ - TransitionRouteGroupCoverage.encodeDelimited = function encodeDelimited(message, writer) { + CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRouteGroupCoverage message from the specified reader or buffer. + * Decodes a CreateTestCaseRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @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.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @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 */ - TransitionRouteGroupCoverage.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.v3beta1.TransitionRouteGroupCoverage(); + 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: { - if (!(message.coverages && message.coverages.length)) - message.coverages = []; - message.coverages.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.coverageScore = reader.float(); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); break; } default: @@ -115794,659 +121635,577 @@ }; /** - * Decodes a TransitionRouteGroupCoverage 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.v3beta1.TransitionRouteGroupCoverage + * @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.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @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 */ - TransitionRouteGroupCoverage.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 TransitionRouteGroupCoverage message. + * Verifies a CreateTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @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 */ - TransitionRouteGroupCoverage.verify = function verify(message) { + CreateTestCaseRequest.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.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.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 CreateTestCaseRequest 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.CreateTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} TransitionRouteGroupCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest */ - TransitionRouteGroupCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage) + 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.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.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); } - 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 CreateTestCaseRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage} message TransitionRouteGroupCoverage + * @param {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} message CreateTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRouteGroupCoverage.toObject = function toObject(message, options) { + CreateTestCaseRequest.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.parent = ""; + object.testCase = null; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + 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; }; /** - * Converts this TransitionRouteGroupCoverage to JSON. + * Converts this CreateTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @instance * @returns {Object.} JSON object */ - TransitionRouteGroupCoverage.prototype.toJSON = function toJSON() { + CreateTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TransitionRouteGroupCoverage + * Gets the default type url for CreateTestCaseRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TransitionRouteGroupCoverage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateTestCaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest"; }; - TransitionRouteGroupCoverage.Coverage = (function() { + return CreateTestCaseRequest; + })(); - /** - * 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 - */ + v3beta1.UpdateTestCaseRequest = (function() { - /** - * 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]]; - } + /** + * 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 + */ - /** - * 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; + /** + * 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]]; + } - /** - * Coverage transitions. - * @member {Array.} transitions - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.transitions = $util.emptyArray; + /** + * UpdateTestCaseRequest testCase. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @instance + */ + UpdateTestCaseRequest.prototype.testCase = null; - /** - * Coverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @instance - */ - Coverage.prototype.coverageScore = 0; + /** + * UpdateTestCaseRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @instance + */ + UpdateTestCaseRequest.prototype.updateMask = null; - /** - * 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); - }; + /** + * 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 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 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 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(); - }; + /** + * 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 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); + /** + * 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; } - } - return message; - }; - - /** - * 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 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; + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; } + default: + reader.skipType(tag & 7); + break; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - if (typeof message.coverageScore !== "number") - return "coverageScore: number expected"; - return null; - }; + } + return message; + }; - /** - * 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]); - } - } - if (object.coverageScore != null) - message.coverageScore = Number(object.coverageScore); - 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 + */ + UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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 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; + }; - /** - * Gets the default type url for Coverage - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Coverage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage"; - }; + /** + * 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; + }; - Coverage.Transition = (function() { + /** + * 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); + }; - /** - * 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 - */ + /** + * Gets the default type url for UpdateTestCaseRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateTestCaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest"; + }; - /** - * 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]]; - } + return UpdateTestCaseRequest; + })(); - /** - * 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; + v3beta1.GetTestCaseRequest = (function() { - /** - * Transition covered. - * @member {boolean} covered - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @instance - */ - Transition.prototype.covered = false; + /** + * Properties of a GetTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IGetTestCaseRequest + * @property {string|null} [name] GetTestCaseRequest name + */ - /** - * 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); - }; + /** + * Constructs a new GetTestCaseRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GetTestCaseRequest. + * @implements IGetTestCaseRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set + */ + function GetTestCaseRequest(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 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; - }; + /** + * GetTestCaseRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @instance + */ + GetTestCaseRequest.prototype.name = ""; - /** - * 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(); - }; + /** + * 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 + */ + GetTestCaseRequest.create = function create(properties) { + return new GetTestCaseRequest(properties); + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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()); - }; + /** + * 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(); + }; - /** - * 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; + /** + * 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; } - if (message.covered != null && message.hasOwnProperty("covered")) - if (typeof message.covered !== "boolean") - return "covered: boolean expected"; - return null; - }; + 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.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; - }; + /** + * 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()); + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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 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; + }; - /** - * Gets the default type url for Transition - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Transition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition"; - }; + /** + * 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; + }; - return Transition; - })(); + /** + * Converts this GetTestCaseRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @instance + * @returns {Object.} JSON object + */ + GetTestCaseRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Coverage; - })(); + /** + * Gets the default type url for GetTestCaseRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetTestCaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest"; + }; - return TransitionRouteGroupCoverage; + return GetTestCaseRequest; })(); - v3beta1.IntentCoverage = (function() { + v3beta1.RunTestCaseRequest = (function() { /** - * Properties of an IntentCoverage. + * Properties of a RunTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IIntentCoverage - * @property {Array.|null} [intents] IntentCoverage intents - * @property {number|null} [coverageScore] IntentCoverage coverageScore + * @interface IRunTestCaseRequest + * @property {string|null} [name] RunTestCaseRequest name + * @property {string|null} [environment] RunTestCaseRequest environment */ /** - * Constructs a new IntentCoverage. + * Constructs a new RunTestCaseRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an IntentCoverage. - * @implements IIntentCoverage + * @classdesc Represents a RunTestCaseRequest. + * @implements IRunTestCaseRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set */ - function IntentCoverage(properties) { - this.intents = []; + function RunTestCaseRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116454,92 +122213,89 @@ } /** - * IntentCoverage intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * RunTestCaseRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @instance */ - IntentCoverage.prototype.intents = $util.emptyArray; + RunTestCaseRequest.prototype.name = ""; /** - * IntentCoverage coverageScore. - * @member {number} coverageScore - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * RunTestCaseRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @instance */ - IntentCoverage.prototype.coverageScore = 0; + RunTestCaseRequest.prototype.environment = ""; /** - * Creates a new IntentCoverage instance using the specified properties. + * Creates a new RunTestCaseRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @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.IRunTestCaseRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest instance */ - IntentCoverage.create = function create(properties) { - return new IntentCoverage(properties); + RunTestCaseRequest.create = function create(properties) { + return new RunTestCaseRequest(properties); }; /** - * Encodes the specified IntentCoverage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentCoverage.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.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage 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 */ - IntentCoverage.encode = function encode(message, writer) { + RunTestCaseRequest.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.environment != null && Object.hasOwnProperty.call(message, "environment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.environment); 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 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.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage} message IntentCoverage 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 */ - IntentCoverage.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IntentCoverage 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.IntentCoverage + * @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.IntentCoverage} IntentCoverage + * @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 */ - IntentCoverage.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.IntentCoverage(); + 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: { - 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(); + message.environment = reader.string(); break; } default: @@ -116551,376 +122307,131 @@ }; /** - * Decodes an IntentCoverage 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.IntentCoverage + * @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.IntentCoverage} IntentCoverage + * @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 */ - IntentCoverage.decodeDelimited = function decodeDelimited(reader) { + RunTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IntentCoverage message. + * Verifies a RunTestCaseRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @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 */ - IntentCoverage.verify = function verify(message) { + RunTestCaseRequest.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"; + 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 an IntentCoverage 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.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} IntentCoverage + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest */ - IntentCoverage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentCoverage) + 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.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); + 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 an IntentCoverage 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.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentCoverage} message IntentCoverage + * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} message RunTestCaseRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IntentCoverage.toObject = function toObject(message, options) { + RunTestCaseRequest.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 (options.defaults) { + object.name = ""; + object.environment = ""; } - if (message.coverageScore != null && message.hasOwnProperty("coverageScore")) - object.coverageScore = options.json && !isFinite(message.coverageScore) ? String(message.coverageScore) : message.coverageScore; + 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 IntentCoverage to JSON. + * Converts this RunTestCaseRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @instance * @returns {Object.} JSON object */ - IntentCoverage.prototype.toJSON = function toJSON() { + RunTestCaseRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IntentCoverage + * Gets the default type url for RunTestCaseRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IntentCoverage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunTestCaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.IntentCoverage"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest"; }; - 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); - }; - - /** - * Gets the default type url for Intent - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Intent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent"; - }; - - return Intent; - })(); - - return IntentCoverage; + return RunTestCaseRequest; })(); - v3beta1.CalculateCoverageRequest = (function() { + v3beta1.RunTestCaseResponse = (function() { /** - * Properties of a CalculateCoverageRequest. + * Properties of a RunTestCaseResponse. * @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 IRunTestCaseResponse + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [result] RunTestCaseResponse result */ /** - * Constructs a new CalculateCoverageRequest. + * Constructs a new RunTestCaseResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CalculateCoverageRequest. - * @implements ICalculateCoverageRequest + * @classdesc Represents a RunTestCaseResponse. + * @implements IRunTestCaseResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set */ - function CalculateCoverageRequest(properties) { + function RunTestCaseResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116928,89 +122439,75 @@ } /** - * CalculateCoverageRequest agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest - * @instance - */ - CalculateCoverageRequest.prototype.agent = ""; - - /** - * CalculateCoverageRequest type. - * @member {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType} type - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * RunTestCaseResponse result. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @instance */ - CalculateCoverageRequest.prototype.type = 0; + RunTestCaseResponse.prototype.result = null; /** - * Creates a new CalculateCoverageRequest instance using the specified properties. + * Creates a new RunTestCaseResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @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.IRunTestCaseResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse instance */ - CalculateCoverageRequest.create = function create(properties) { - return new CalculateCoverageRequest(properties); + RunTestCaseResponse.create = function create(properties) { + return new RunTestCaseResponse(properties); }; /** - * Encodes the specified CalculateCoverageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.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.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest 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 */ - CalculateCoverageRequest.encode = function encode(message, writer) { + RunTestCaseResponse.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.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 CalculateCoverageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.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.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest} message CalculateCoverageRequest 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 */ - CalculateCoverageRequest.encodeDelimited = function encodeDelimited(message, writer) { + RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageRequest 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.CalculateCoverageRequest + * @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.CalculateCoverageRequest} CalculateCoverageRequest + * @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 */ - CalculateCoverageRequest.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.CalculateCoverageRequest(); + 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 3: { - message.agent = reader.string(); - break; - } case 2: { - message.type = reader.int32(); + message.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); break; } default: @@ -117022,181 +122519,126 @@ }; /** - * Decodes a CalculateCoverageRequest 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.CalculateCoverageRequest + * @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.CalculateCoverageRequest} CalculateCoverageRequest + * @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 */ - CalculateCoverageRequest.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 CalculateCoverageRequest message. + * Verifies a RunTestCaseResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @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 */ - CalculateCoverageRequest.verify = function verify(message) { + RunTestCaseResponse.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.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.verify(message.result); + if (error) + return "result." + error; + } return null; }; /** - * Creates a CalculateCoverageRequest 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.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} CalculateCoverageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse */ - CalculateCoverageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest) + 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.CalculateCoverageRequest(); - if (object.agent != null) - message.agent = String(object.agent); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - 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.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); } return message; }; /** - * Creates a plain object from a CalculateCoverageRequest 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.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest} message CalculateCoverageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} message RunTestCaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageRequest.toObject = function toObject(message, options) { + RunTestCaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "COVERAGE_TYPE_UNSPECIFIED" : 0; - object.agent = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType[message.type] === undefined ? message.type : $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType[message.type] : message.type; - if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = message.agent; + 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); return object; }; /** - * Converts this CalculateCoverageRequest to JSON. + * Converts this RunTestCaseResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @instance * @returns {Object.} JSON object */ - CalculateCoverageRequest.prototype.toJSON = function toJSON() { + RunTestCaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CalculateCoverageRequest + * Gets the default type url for RunTestCaseResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CalculateCoverageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RunTestCaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse"; }; - /** - * 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 RunTestCaseResponse; })(); - v3beta1.CalculateCoverageResponse = (function() { + v3beta1.RunTestCaseMetadata = (function() { /** - * Properties of a CalculateCoverageResponse. + * Properties of a RunTestCaseMetadata. * @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 IRunTestCaseMetadata */ /** - * Constructs a new CalculateCoverageResponse. + * Constructs a new RunTestCaseMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CalculateCoverageResponse. - * @implements ICalculateCoverageResponse + * @classdesc Represents a RunTestCaseMetadata. + * @implements IRunTestCaseMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set */ - function CalculateCoverageResponse(properties) { + function RunTestCaseMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117204,131 +122646,285 @@ } /** - * CalculateCoverageResponse agent. - * @member {string} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse - * @instance + * Creates a new RunTestCaseMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata instance */ - CalculateCoverageResponse.prototype.agent = ""; + RunTestCaseMetadata.create = function create(properties) { + return new RunTestCaseMetadata(properties); + }; /** - * CalculateCoverageResponse intentCoverage. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntentCoverage|null|undefined} intentCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse - * @instance + * 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.RunTestCaseMetadata + * @static + * @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 */ - CalculateCoverageResponse.prototype.intentCoverage = null; + RunTestCaseMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * CalculateCoverageResponse transitionCoverage. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionCoverage|null|undefined} transitionCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * 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.RunTestCaseMetadata + * @static + * @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 + */ + RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RunTestCaseMetadata message from the specified reader or buffer. + * @function decode + * @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.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.v3beta1.RunTestCaseMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RunTestCaseMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.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()); + }; + + /** + * Verifies a RunTestCaseMetadata message. + * @function verify + * @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 + */ + RunTestCaseMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a RunTestCaseMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata + */ + RunTestCaseMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata) + return object; + return new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); + }; + + /** + * Creates a plain object from a RunTestCaseMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} message RunTestCaseMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RunTestCaseMetadata.toObject = function toObject() { + return {}; + }; + + /** + * Converts this RunTestCaseMetadata to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata * @instance + * @returns {Object.} JSON object */ - CalculateCoverageResponse.prototype.transitionCoverage = null; + RunTestCaseMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * CalculateCoverageResponse routeGroupCoverage. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroupCoverage|null|undefined} routeGroupCoverage - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * Gets the default type url for RunTestCaseMetadata + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RunTestCaseMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata"; + }; + + return RunTestCaseMetadata; + })(); + + v3beta1.BatchRunTestCasesRequest = (function() { + + /** + * Properties of a BatchRunTestCasesRequest. + * @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 + */ + + /** + * Constructs a new BatchRunTestCasesRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a BatchRunTestCasesRequest. + * @implements IBatchRunTestCasesRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.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]]; + } + + /** + * BatchRunTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance */ - CalculateCoverageResponse.prototype.routeGroupCoverage = null; + BatchRunTestCasesRequest.prototype.parent = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * BatchRunTestCasesRequest environment. + * @member {string} environment + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @instance + */ + BatchRunTestCasesRequest.prototype.environment = ""; /** - * CalculateCoverageResponse coverageType. - * @member {"intentCoverage"|"transitionCoverage"|"routeGroupCoverage"|undefined} coverageType - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * BatchRunTestCasesRequest testCases. + * @member {Array.} testCases + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance */ - Object.defineProperty(CalculateCoverageResponse.prototype, "coverageType", { - get: $util.oneOfGetter($oneOfFields = ["intentCoverage", "transitionCoverage", "routeGroupCoverage"]), - set: $util.oneOfSetter($oneOfFields) - }); + BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; /** - * Creates a new CalculateCoverageResponse instance using the specified properties. + * Creates a new BatchRunTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @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.IBatchRunTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest instance */ - CalculateCoverageResponse.create = function create(properties) { - return new CalculateCoverageResponse(properties); + BatchRunTestCasesRequest.create = function create(properties) { + return new BatchRunTestCasesRequest(properties); }; /** - * Encodes the specified CalculateCoverageResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.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.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse 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 */ - CalculateCoverageResponse.encode = function encode(message, writer) { + BatchRunTestCasesRequest.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.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 CalculateCoverageResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse.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.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageResponse} message CalculateCoverageResponse 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 */ - CalculateCoverageResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CalculateCoverageResponse 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.CalculateCoverageResponse + * @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.CalculateCoverageResponse} CalculateCoverageResponse + * @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 */ - CalculateCoverageResponse.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.CalculateCoverageResponse(); + 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) { - case 5: { - message.agent = reader.string(); + case 1: { + message.parent = 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()); + message.environment = reader.string(); break; } - case 6: { - message.routeGroupCoverage = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.decode(reader, reader.uint32()); + case 3: { + if (!(message.testCases && message.testCases.length)) + message.testCases = []; + message.testCases.push(reader.string()); break; } default: @@ -117340,184 +122936,153 @@ }; /** - * Decodes a CalculateCoverageResponse 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.CalculateCoverageResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - 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.v3beta1.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.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; - } + * @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.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()); + }; + + /** + * Verifies a BatchRunTestCasesRequest message. + * @function verify + * @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 + */ + 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; }; /** - * Creates a CalculateCoverageResponse 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.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} CalculateCoverageResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest */ - CalculateCoverageResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse) + 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.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.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.v3beta1.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 CalculateCoverageResponse 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.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse} message CalculateCoverageResponse + * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} message BatchRunTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CalculateCoverageResponse.toObject = function toObject(message, options) { + BatchRunTestCasesRequest.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.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 (options.arrays || options.defaults) + object.testCases = []; + if (options.defaults) { + object.parent = ""; + object.environment = ""; } - 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"; + 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 CalculateCoverageResponse to JSON. + * Converts this BatchRunTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @instance * @returns {Object.} JSON object */ - CalculateCoverageResponse.prototype.toJSON = function toJSON() { + BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CalculateCoverageResponse + * Gets the default type url for BatchRunTestCasesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CalculateCoverageResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchRunTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest"; }; - return CalculateCoverageResponse; + return BatchRunTestCasesRequest; })(); - v3beta1.ListTestCasesRequest = (function() { + v3beta1.BatchRunTestCasesResponse = (function() { /** - * Properties of a ListTestCasesRequest. + * Properties of a BatchRunTestCasesResponse. * @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 IBatchRunTestCasesResponse + * @property {Array.|null} [results] BatchRunTestCasesResponse results */ /** - * Constructs a new ListTestCasesRequest. + * Constructs a new BatchRunTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCasesRequest. - * @implements IListTestCasesRequest + * @classdesc Represents a BatchRunTestCasesResponse. + * @implements IBatchRunTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set */ - function ListTestCasesRequest(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) @@ -117525,117 +123090,78 @@ } /** - * 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 + * BatchRunTestCasesResponse results. + * @member {Array.} results + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @instance */ - ListTestCasesRequest.prototype.view = 0; + BatchRunTestCasesResponse.prototype.results = $util.emptyArray; /** - * Creates a new ListTestCasesRequest instance using the specified properties. + * Creates a new BatchRunTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @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.IBatchRunTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse instance */ - ListTestCasesRequest.create = function create(properties) { - return new ListTestCasesRequest(properties); + BatchRunTestCasesResponse.create = function create(properties) { + return new BatchRunTestCasesResponse(properties); }; /** - * Encodes the specified ListTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.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.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest 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 */ - ListTestCasesRequest.encode = function encode(message, writer) { + BatchRunTestCasesResponse.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.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 ListTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.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.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest} message ListTestCasesRequest 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 */ - ListTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesRequest 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.ListTestCasesRequest + * @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.ListTestCasesRequest} ListTestCasesRequest + * @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 */ - ListTestCasesRequest.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.ListTestCasesRequest(); + 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.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.view = reader.int32(); + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); break; } default: @@ -117647,189 +123173,140 @@ }; /** - * Decodes a ListTestCasesRequest 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.ListTestCasesRequest + * @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.ListTestCasesRequest} ListTestCasesRequest + * @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 */ - ListTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + BatchRunTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTestCasesRequest message. + * Verifies a BatchRunTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @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 */ - ListTestCasesRequest.verify = function verify(message) { + BatchRunTestCasesResponse.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.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 a ListTestCasesRequest 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.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} ListTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse */ - ListTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest) + 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.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) { - default: - if (typeof object.view === "number") { - message.view = object.view; - break; + 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]); } - break; - 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 ListTestCasesRequest 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.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest} message ListTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} message BatchRunTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesRequest.toObject = function toObject(message, options) { + BatchRunTestCasesResponse.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.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.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] === undefined ? message.view : $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView[message.view] : message.view; return object; }; /** - * Converts this ListTestCasesRequest to JSON. + * Converts this BatchRunTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @instance * @returns {Object.} JSON object */ - ListTestCasesRequest.prototype.toJSON = function toJSON() { + BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTestCasesRequest + * Gets the default type url for BatchRunTestCasesResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchRunTestCasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse"; }; - /** - * 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 BatchRunTestCasesResponse; })(); - v3beta1.ListTestCasesResponse = (function() { + v3beta1.BatchRunTestCasesMetadata = (function() { /** - * Properties of a ListTestCasesResponse. + * Properties of a BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCasesResponse - * @property {Array.|null} [testCases] ListTestCasesResponse testCases - * @property {string|null} [nextPageToken] ListTestCasesResponse nextPageToken + * @interface IBatchRunTestCasesMetadata + * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors */ /** - * Constructs a new ListTestCasesResponse. + * Constructs a new BatchRunTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCasesResponse. - * @implements IListTestCasesResponse + * @classdesc Represents a BatchRunTestCasesMetadata. + * @implements IBatchRunTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set */ - function ListTestCasesResponse(properties) { - this.testCases = []; + function BatchRunTestCasesMetadata(properties) { + this.errors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117837,92 +123314,78 @@ } /** - * ListTestCasesResponse testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse - * @instance - */ - ListTestCasesResponse.prototype.testCases = $util.emptyArray; - - /** - * ListTestCasesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * BatchRunTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @instance */ - ListTestCasesResponse.prototype.nextPageToken = ""; + BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new ListTestCasesResponse instance using the specified properties. + * Creates a new BatchRunTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @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.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata instance */ - ListTestCasesResponse.create = function create(properties) { - return new ListTestCasesResponse(properties); + BatchRunTestCasesMetadata.create = function create(properties) { + return new BatchRunTestCasesMetadata(properties); }; /** - * Encodes the specified ListTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.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.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse 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 */ - ListTestCasesResponse.encode = function encode(message, writer) { + BatchRunTestCasesMetadata.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.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 ListTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse.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.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCasesResponse} message ListTestCasesResponse 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 */ - ListTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCasesResponse 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.ListTestCasesResponse + * @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.ListTestCasesResponse} ListTestCasesResponse + * @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 */ - ListTestCasesResponse.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.ListTestCasesResponse(); + 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: { - 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(); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); break; } default: @@ -117934,150 +123397,141 @@ }; /** - * Decodes a ListTestCasesResponse 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.ListTestCasesResponse + * @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.ListTestCasesResponse} ListTestCasesResponse + * @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 */ - ListTestCasesResponse.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 ListTestCasesResponse message. + * Verifies a BatchRunTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @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 */ - ListTestCasesResponse.verify = function verify(message) { + BatchRunTestCasesMetadata.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 (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 "testCases." + error; + return "errors." + 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 BatchRunTestCasesMetadata 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.BatchRunTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} ListTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata */ - ListTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse) + 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.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.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]); } } - 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 BatchRunTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse} message ListTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCasesResponse.toObject = function toObject(message, options) { + BatchRunTestCasesMetadata.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); + 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 (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListTestCasesResponse to JSON. + * Converts this BatchRunTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @instance * @returns {Object.} JSON object */ - ListTestCasesResponse.prototype.toJSON = function toJSON() { + BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTestCasesResponse + * Gets the default type url for BatchRunTestCasesMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTestCasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchRunTestCasesMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata"; }; - return ListTestCasesResponse; + return BatchRunTestCasesMetadata; })(); - v3beta1.BatchDeleteTestCasesRequest = (function() { + v3beta1.TestError = (function() { /** - * Properties of a BatchDeleteTestCasesRequest. + * Properties of a TestError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchDeleteTestCasesRequest - * @property {string|null} [parent] BatchDeleteTestCasesRequest parent - * @property {Array.|null} [names] BatchDeleteTestCasesRequest names + * @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 BatchDeleteTestCasesRequest. + * Constructs a new TestError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchDeleteTestCasesRequest. - * @implements IBatchDeleteTestCasesRequest + * @classdesc Represents a TestError. + * @implements ITestError * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set */ - function BatchDeleteTestCasesRequest(properties) { - this.names = []; + function TestError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118085,92 +123539,103 @@ } /** - * BatchDeleteTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * TestError testCase. + * @member {string} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @instance */ - BatchDeleteTestCasesRequest.prototype.parent = ""; + TestError.prototype.testCase = ""; /** - * BatchDeleteTestCasesRequest names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * TestError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @instance */ - BatchDeleteTestCasesRequest.prototype.names = $util.emptyArray; + TestError.prototype.status = null; /** - * Creates a new BatchDeleteTestCasesRequest instance using the specified properties. + * TestError testTime. + * @member {google.protobuf.ITimestamp|null|undefined} testTime + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @instance + */ + TestError.prototype.testTime = null; + + /** + * Creates a new TestError instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @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.ITestError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError instance */ - BatchDeleteTestCasesRequest.create = function create(properties) { - return new BatchDeleteTestCasesRequest(properties); + TestError.create = function create(properties) { + return new TestError(properties); }; /** - * Encodes the specified BatchDeleteTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.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.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest 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 */ - BatchDeleteTestCasesRequest.encode = function encode(message, writer) { + TestError.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.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 BatchDeleteTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest.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.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest 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 */ - BatchDeleteTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchDeleteTestCasesRequest 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.BatchDeleteTestCasesRequest + * @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.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @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 */ - BatchDeleteTestCasesRequest.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.BatchDeleteTestCasesRequest(); + 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.parent = reader.string(); + message.testCase = reader.string(); + break; + } + case 2: { + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + message.testTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -118182,144 +123647,151 @@ }; /** - * Decodes a BatchDeleteTestCasesRequest 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.BatchDeleteTestCasesRequest + * @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.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @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 */ - BatchDeleteTestCasesRequest.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 BatchDeleteTestCasesRequest message. + * Verifies a TestError message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @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 */ - BatchDeleteTestCasesRequest.verify = function verify(message) { + TestError.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.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 BatchDeleteTestCasesRequest 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.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} BatchDeleteTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError */ - BatchDeleteTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest) + 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.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.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 BatchDeleteTestCasesRequest 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.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest} message BatchDeleteTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TestError} message TestError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchDeleteTestCasesRequest.toObject = function toObject(message, options) { + TestError.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.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 BatchDeleteTestCasesRequest to JSON. + * Converts this TestError to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @instance * @returns {Object.} JSON object */ - BatchDeleteTestCasesRequest.prototype.toJSON = function toJSON() { + TestError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchDeleteTestCasesRequest + * Gets the default type url for TestError * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestError * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchDeleteTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestError"; }; - return BatchDeleteTestCasesRequest; + return TestError; })(); - v3beta1.CreateTestCaseRequest = (function() { + v3beta1.ImportTestCasesRequest = (function() { /** - * Properties of a CreateTestCaseRequest. + * Properties of an ImportTestCasesRequest. * @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 IImportTestCasesRequest + * @property {string|null} [parent] ImportTestCasesRequest parent + * @property {string|null} [gcsUri] ImportTestCasesRequest gcsUri + * @property {Uint8Array|null} [content] ImportTestCasesRequest content */ /** - * Constructs a new CreateTestCaseRequest. + * Constructs a new ImportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateTestCaseRequest. - * @implements ICreateTestCaseRequest + * @classdesc Represents an ImportTestCasesRequest. + * @implements IImportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set */ - function CreateTestCaseRequest(properties) { + function ImportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118327,80 +123799,104 @@ } /** - * CreateTestCaseRequest parent. + * ImportTestCasesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @instance */ - CreateTestCaseRequest.prototype.parent = ""; + ImportTestCasesRequest.prototype.parent = ""; /** - * CreateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * ImportTestCasesRequest gcsUri. + * @member {string|null|undefined} gcsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @instance */ - CreateTestCaseRequest.prototype.testCase = null; + ImportTestCasesRequest.prototype.gcsUri = null; /** - * Creates a new CreateTestCaseRequest instance using the specified properties. + * ImportTestCasesRequest content. + * @member {Uint8Array|null|undefined} content + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * @instance + */ + ImportTestCasesRequest.prototype.content = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ImportTestCasesRequest source. + * @member {"gcsUri"|"content"|undefined} source + * @memberof google.cloud.dialogflow.cx.v3beta1.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.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @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.IImportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest instance */ - CreateTestCaseRequest.create = function create(properties) { - return new CreateTestCaseRequest(properties); + ImportTestCasesRequest.create = function create(properties) { + return new ImportTestCasesRequest(properties); }; /** - * Encodes the specified CreateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.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.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest 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 */ - CreateTestCaseRequest.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.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.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 CreateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.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.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest} message CreateTestCaseRequest 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 */ - CreateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTestCaseRequest 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.CreateTestCaseRequest + * @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.CreateTestCaseRequest} CreateTestCaseRequest + * @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 */ - CreateTestCaseRequest.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.CreateTestCaseRequest(); + 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) { @@ -118409,7 +123905,11 @@ break; } case 2: { - message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); + message.gcsUri = reader.string(); + break; + } + case 3: { + message.content = reader.bytes(); break; } default: @@ -118421,227 +123921,232 @@ }; /** - * Decodes a CreateTestCaseRequest 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.CreateTestCaseRequest + * @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.CreateTestCaseRequest} CreateTestCaseRequest + * @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 */ - CreateTestCaseRequest.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 CreateTestCaseRequest message. + * Verifies an ImportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @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 */ - CreateTestCaseRequest.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.testCase != null && message.hasOwnProperty("testCase")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.verify(message.testCase); - if (error) - return "testCase." + 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 CreateTestCaseRequest 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.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} CreateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest */ - CreateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest) + 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.CreateTestCaseRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(); 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); - } + 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 >= 0) + message.content = object.content; return message; }; /** - * Creates a plain object from a CreateTestCaseRequest 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.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest} message CreateTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} message ImportTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTestCaseRequest.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.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 (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 CreateTestCaseRequest to JSON. + * Converts this ImportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @instance * @returns {Object.} JSON object */ - CreateTestCaseRequest.prototype.toJSON = function toJSON() { + ImportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateTestCaseRequest + * Gets the default type url for ImportTestCasesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateTestCaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest"; }; - return CreateTestCaseRequest; + return ImportTestCasesRequest; })(); - v3beta1.UpdateTestCaseRequest = (function() { + v3beta1.ImportTestCasesResponse = (function() { /** - * Properties of an UpdateTestCaseRequest. + * Properties of an ImportTestCasesResponse. * @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 + * @interface IImportTestCasesResponse + * @property {Array.|null} [names] ImportTestCasesResponse names */ /** - * Constructs a new UpdateTestCaseRequest. + * Constructs a new ImportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateTestCaseRequest. - * @implements IUpdateTestCaseRequest + * @classdesc Represents an ImportTestCasesResponse. + * @implements IImportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set */ - function UpdateTestCaseRequest(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) this[keys[i]] = properties[keys[i]]; - } - - /** - * UpdateTestCaseRequest testCase. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest - * @instance - */ - UpdateTestCaseRequest.prototype.testCase = null; + } /** - * UpdateTestCaseRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * ImportTestCasesResponse names. + * @member {Array.} names + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @instance */ - UpdateTestCaseRequest.prototype.updateMask = null; + ImportTestCasesResponse.prototype.names = $util.emptyArray; /** - * Creates a new UpdateTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse instance */ - UpdateTestCaseRequest.create = function create(properties) { - return new UpdateTestCaseRequest(properties); + ImportTestCasesResponse.create = function create(properties) { + return new ImportTestCasesResponse(properties); }; /** - * Encodes the specified UpdateTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.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.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest 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 */ - UpdateTestCaseRequest.encode = function encode(message, writer) { + ImportTestCasesResponse.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(); + 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 UpdateTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest.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.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest} message UpdateTestCaseRequest 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 */ - UpdateTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateTestCaseRequest 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.UpdateTestCaseRequest + * @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.UpdateTestCaseRequest} UpdateTestCaseRequest + * @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 */ - UpdateTestCaseRequest.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.UpdateTestCaseRequest(); + 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.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()); + if (!(message.names && message.names.length)) + message.names = []; + message.names.push(reader.string()); break; } default: @@ -118653,141 +124158,135 @@ }; /** - * Decodes an UpdateTestCaseRequest 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.UpdateTestCaseRequest + * @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.UpdateTestCaseRequest} UpdateTestCaseRequest + * @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 */ - UpdateTestCaseRequest.decodeDelimited = function decodeDelimited(reader) { + ImportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateTestCaseRequest message. + * Verifies an ImportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @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 */ - UpdateTestCaseRequest.verify = function verify(message) { + ImportTestCasesResponse.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; + 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 an UpdateTestCaseRequest 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.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} UpdateTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse */ - UpdateTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest) + 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.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); + 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 UpdateTestCaseRequest 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.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest} message UpdateTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} message ImportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateTestCaseRequest.toObject = function toObject(message, options) { + ImportTestCasesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.testCase = null; - object.updateMask = 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.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; }; /** - * Converts this UpdateTestCaseRequest to JSON. + * Converts this ImportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @instance * @returns {Object.} JSON object */ - UpdateTestCaseRequest.prototype.toJSON = function toJSON() { + ImportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateTestCaseRequest + * Gets the default type url for ImportTestCasesResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateTestCaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportTestCasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse"; }; - return UpdateTestCaseRequest; + return ImportTestCasesResponse; })(); - v3beta1.GetTestCaseRequest = (function() { + v3beta1.ImportTestCasesMetadata = (function() { /** - * Properties of a GetTestCaseRequest. + * Properties of an ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetTestCaseRequest - * @property {string|null} [name] GetTestCaseRequest name + * @interface IImportTestCasesMetadata + * @property {Array.|null} [errors] ImportTestCasesMetadata errors */ /** - * Constructs a new GetTestCaseRequest. + * Constructs a new ImportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetTestCaseRequest. - * @implements IGetTestCaseRequest + * @classdesc Represents an ImportTestCasesMetadata. + * @implements IImportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesMetadata=} [properties] Properties to set */ - function GetTestCaseRequest(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) @@ -118795,75 +124294,78 @@ } /** - * GetTestCaseRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * ImportTestCasesMetadata errors. + * @member {Array.} errors + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @instance */ - GetTestCaseRequest.prototype.name = ""; + ImportTestCasesMetadata.prototype.errors = $util.emptyArray; /** - * Creates a new GetTestCaseRequest instance using the specified properties. + * Creates a new ImportTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @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.IImportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata instance */ - GetTestCaseRequest.create = function create(properties) { - return new GetTestCaseRequest(properties); + ImportTestCasesMetadata.create = function create(properties) { + return new ImportTestCasesMetadata(properties); }; /** - * Encodes the specified GetTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.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.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest 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 */ - GetTestCaseRequest.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.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 GetTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest.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.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest} message GetTestCaseRequest 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 */ - GetTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTestCaseRequest 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.GetTestCaseRequest + * @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.GetTestCaseRequest} GetTestCaseRequest + * @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 */ - GetTestCaseRequest.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.GetTestCaseRequest(); + 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.name = reader.string(); + if (!(message.errors && message.errors.length)) + message.errors = []; + message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseError.decode(reader, reader.uint32())); break; } default: @@ -118875,123 +124377,140 @@ }; /** - * Decodes a GetTestCaseRequest 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.GetTestCaseRequest + * @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.GetTestCaseRequest} GetTestCaseRequest + * @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 */ - GetTestCaseRequest.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 GetTestCaseRequest message. + * Verifies an ImportTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @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 */ - GetTestCaseRequest.verify = function verify(message) { + ImportTestCasesMetadata.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.TestCaseError.verify(message.errors[i]); + if (error) + return "errors." + error; + } + } return null; }; /** - * Creates a GetTestCaseRequest 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.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} GetTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} ImportTestCasesMetadata */ - GetTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest) + 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.GetTestCaseRequest(); - if (object.name != null) - message.name = String(object.name); + 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 GetTestCaseRequest 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.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest} message GetTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata} message ImportTestCasesMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTestCaseRequest.toObject = function toObject(message, options) { + ImportTestCasesMetadata.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.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 GetTestCaseRequest to JSON. + * Converts this ImportTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @instance * @returns {Object.} JSON object */ - GetTestCaseRequest.prototype.toJSON = function toJSON() { + ImportTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetTestCaseRequest + * Gets the default type url for ImportTestCasesMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetTestCaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportTestCasesMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata"; }; - return GetTestCaseRequest; + return ImportTestCasesMetadata; })(); - v3beta1.RunTestCaseRequest = (function() { + v3beta1.TestCaseError = (function() { /** - * Properties of a RunTestCaseRequest. + * Properties of a TestCaseError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunTestCaseRequest - * @property {string|null} [name] RunTestCaseRequest name - * @property {string|null} [environment] RunTestCaseRequest environment + * @interface ITestCaseError + * @property {google.cloud.dialogflow.cx.v3beta1.ITestCase|null} [testCase] TestCaseError testCase + * @property {google.rpc.IStatus|null} [status] TestCaseError status */ /** - * Constructs a new RunTestCaseRequest. + * Constructs a new TestCaseError. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunTestCaseRequest. - * @implements IRunTestCaseRequest + * @classdesc Represents a TestCaseError. + * @implements ITestCaseError * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITestCaseError=} [properties] Properties to set */ - function RunTestCaseRequest(properties) { + function TestCaseError(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118999,89 +124518,89 @@ } /** - * RunTestCaseRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * TestCaseError testCase. + * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @instance */ - RunTestCaseRequest.prototype.name = ""; + TestCaseError.prototype.testCase = null; /** - * RunTestCaseRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * TestCaseError status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @instance */ - RunTestCaseRequest.prototype.environment = ""; + TestCaseError.prototype.status = null; /** - * Creates a new RunTestCaseRequest instance using the specified properties. + * Creates a new TestCaseError instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @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.ITestCaseError=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError instance */ - RunTestCaseRequest.create = function create(properties) { - return new RunTestCaseRequest(properties); + TestCaseError.create = function create(properties) { + return new TestCaseError(properties); }; /** - * Encodes the specified RunTestCaseRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.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.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest 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 */ - RunTestCaseRequest.encode = function encode(message, writer) { + TestCaseError.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.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 RunTestCaseRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest.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.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest} message RunTestCaseRequest 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 */ - RunTestCaseRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestCaseError.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseRequest 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.RunTestCaseRequest + * @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.RunTestCaseRequest} RunTestCaseRequest + * @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 */ - RunTestCaseRequest.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.RunTestCaseRequest(); + 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.name = reader.string(); + message.testCase = $root.google.cloud.dialogflow.cx.v3beta1.TestCase.decode(reader, reader.uint32()); break; } case 2: { - message.environment = reader.string(); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -119093,131 +124612,144 @@ }; /** - * Decodes a RunTestCaseRequest 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.RunTestCaseRequest + * @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.RunTestCaseRequest} RunTestCaseRequest + * @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 */ - RunTestCaseRequest.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 RunTestCaseRequest message. + * Verifies a TestCaseError message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @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 */ - RunTestCaseRequest.verify = function verify(message) { + TestCaseError.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.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; }; /** - * Creates a RunTestCaseRequest 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.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} RunTestCaseRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TestCaseError} TestCaseError */ - RunTestCaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest) + 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.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.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 plain object from a RunTestCaseRequest 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.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest} message RunTestCaseRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TestCaseError} message TestCaseError * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseRequest.toObject = function toObject(message, options) { + TestCaseError.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.environment = ""; + object.testCase = null; + object.status = 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.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 RunTestCaseRequest to JSON. + * Converts this TestCaseError to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @instance * @returns {Object.} JSON object */ - RunTestCaseRequest.prototype.toJSON = function toJSON() { + TestCaseError.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunTestCaseRequest + * Gets the default type url for TestCaseError * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunTestCaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestCaseError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestCaseError"; }; - return RunTestCaseRequest; + return TestCaseError; })(); - v3beta1.RunTestCaseResponse = (function() { + v3beta1.ExportTestCasesRequest = (function() { /** - * Properties of a RunTestCaseResponse. + * Properties of an ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunTestCaseResponse - * @property {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null} [result] RunTestCaseResponse result + * @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 RunTestCaseResponse. + * Constructs a new ExportTestCasesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunTestCaseResponse. - * @implements IRunTestCaseResponse + * @classdesc Represents an ExportTestCasesRequest. + * @implements IExportTestCasesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set */ - function RunTestCaseResponse(properties) { + function ExportTestCasesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119225,75 +124757,131 @@ } /** - * RunTestCaseResponse result. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCaseResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * ExportTestCasesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance */ - RunTestCaseResponse.prototype.result = null; + ExportTestCasesRequest.prototype.parent = ""; /** - * Creates a new RunTestCaseResponse instance using the specified properties. + * ExportTestCasesRequest gcsUri. + * @member {string|null|undefined} gcsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @instance + */ + ExportTestCasesRequest.prototype.gcsUri = null; + + /** + * ExportTestCasesRequest dataFormat. + * @member {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat} dataFormat + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @instance + */ + ExportTestCasesRequest.prototype.dataFormat = 0; + + /** + * ExportTestCasesRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @instance + */ + ExportTestCasesRequest.prototype.filter = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * 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) + }); + + /** + * Creates a new ExportTestCasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @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.IExportTestCasesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest instance */ - RunTestCaseResponse.create = function create(properties) { - return new RunTestCaseResponse(properties); + ExportTestCasesRequest.create = function create(properties) { + return new ExportTestCasesRequest(properties); }; /** - * Encodes the specified RunTestCaseResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.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.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse 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 */ - RunTestCaseResponse.encode = function encode(message, writer) { + ExportTestCasesRequest.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.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 RunTestCaseResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse.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.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseResponse} message RunTestCaseResponse 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 */ - RunTestCaseResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseResponse 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.RunTestCaseResponse + * @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.RunTestCaseResponse} RunTestCaseResponse + * @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 */ - RunTestCaseResponse.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.RunTestCaseResponse(); + 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.result = $root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32()); + message.gcsUri = reader.string(); + break; + } + case 3: { + message.dataFormat = reader.int32(); + break; + } + case 4: { + message.filter = reader.string(); break; } default: @@ -119305,126 +124893,193 @@ }; /** - * Decodes a RunTestCaseResponse 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.RunTestCaseResponse + * @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.RunTestCaseResponse} RunTestCaseResponse + * @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 */ - RunTestCaseResponse.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 RunTestCaseResponse message. + * Verifies an ExportTestCasesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @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 */ - RunTestCaseResponse.verify = function verify(message) { + ExportTestCasesRequest.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; + 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 RunTestCaseResponse 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.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} RunTestCaseResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest */ - RunTestCaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse) + 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.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.ExportTestCasesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.gcsUri != null) + message.gcsUri = String(object.gcsUri); + switch (object.dataFormat) { + default: + if (typeof object.dataFormat === "number") { + message.dataFormat = object.dataFormat; + break; + } + break; + 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 RunTestCaseResponse 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.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse} message RunTestCaseResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} message ExportTestCasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseResponse.toObject = function toObject(message, options) { + ExportTestCasesRequest.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.v3beta1.TestCaseResult.toObject(message.result, options); + 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] === undefined ? message.dataFormat : $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 RunTestCaseResponse to JSON. + * Converts this ExportTestCasesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @instance * @returns {Object.} JSON object */ - RunTestCaseResponse.prototype.toJSON = function toJSON() { + ExportTestCasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunTestCaseResponse + * Gets the default type url for ExportTestCasesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunTestCaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest"; }; - return RunTestCaseResponse; + /** + * 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.RunTestCaseMetadata = (function() { + v3beta1.ExportTestCasesResponse = (function() { /** - * Properties of a RunTestCaseMetadata. + * Properties of an ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IRunTestCaseMetadata + * @interface IExportTestCasesResponse + * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri + * @property {Uint8Array|null} [content] ExportTestCasesResponse content */ /** - * Constructs a new RunTestCaseMetadata. + * Constructs a new ExportTestCasesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a RunTestCaseMetadata. - * @implements IRunTestCaseMetadata + * @classdesc Represents an ExportTestCasesResponse. + * @implements IExportTestCasesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set */ - function RunTestCaseMetadata(properties) { + function ExportTestCasesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119432,63 +125087,105 @@ } /** - * Creates a new RunTestCaseMetadata instance using the specified properties. + * ExportTestCasesResponse gcsUri. + * @member {string|null|undefined} gcsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @instance + */ + ExportTestCasesResponse.prototype.gcsUri = null; + + /** + * ExportTestCasesResponse content. + * @member {Uint8Array|null|undefined} content + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @instance + */ + ExportTestCasesResponse.prototype.content = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * 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) + }); + + /** + * Creates a new ExportTestCasesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @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.IExportTestCasesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse instance */ - RunTestCaseMetadata.create = function create(properties) { - return new RunTestCaseMetadata(properties); + ExportTestCasesResponse.create = function create(properties) { + return new ExportTestCasesResponse(properties); }; /** - * Encodes the specified RunTestCaseMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.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.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata 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 */ - RunTestCaseMetadata.encode = function encode(message, 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; }; /** - * Encodes the specified RunTestCaseMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata.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.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRunTestCaseMetadata} message RunTestCaseMetadata 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 */ - RunTestCaseMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RunTestCaseMetadata 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.RunTestCaseMetadata + * @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.RunTestCaseMetadata} RunTestCaseMetadata + * @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 */ - RunTestCaseMetadata.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.RunTestCaseMetadata(); + 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; @@ -119498,112 +125195,142 @@ }; /** - * Decodes a RunTestCaseMetadata 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.RunTestCaseMetadata + * @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.RunTestCaseMetadata} RunTestCaseMetadata + * @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 */ - RunTestCaseMetadata.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 RunTestCaseMetadata message. + * Verifies an ExportTestCasesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @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 */ - RunTestCaseMetadata.verify = function verify(message) { + 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; }; /** - * Creates a RunTestCaseMetadata 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.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} RunTestCaseMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse */ - RunTestCaseMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata) + ExportTestCasesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse) return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata(); + 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 >= 0) + message.content = object.content; + return message; }; /** - * Creates a plain object from a RunTestCaseMetadata 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.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata} message RunTestCaseMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} message ExportTestCasesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RunTestCaseMetadata.toObject = function toObject() { - return {}; + 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; }; /** - * Converts this RunTestCaseMetadata to JSON. + * Converts this ExportTestCasesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @instance * @returns {Object.} JSON object */ - RunTestCaseMetadata.prototype.toJSON = function toJSON() { + ExportTestCasesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RunTestCaseMetadata + * Gets the default type url for ExportTestCasesResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RunTestCaseMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportTestCasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse"; }; - return RunTestCaseMetadata; + return ExportTestCasesResponse; })(); - v3beta1.BatchRunTestCasesRequest = (function() { + v3beta1.ExportTestCasesMetadata = (function() { /** - * Properties of a BatchRunTestCasesRequest. + * Properties of an ExportTestCasesMetadata. * @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 IExportTestCasesMetadata */ /** - * Constructs a new BatchRunTestCasesRequest. + * Constructs a new ExportTestCasesMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchRunTestCasesRequest. - * @implements IBatchRunTestCasesRequest + * @classdesc Represents an ExportTestCasesMetadata. + * @implements IExportTestCasesMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set */ - function BatchRunTestCasesRequest(properties) { - this.testCases = []; + function ExportTestCasesMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119611,108 +125338,63 @@ } /** - * BatchRunTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest - * @instance - */ - BatchRunTestCasesRequest.prototype.parent = ""; - - /** - * BatchRunTestCasesRequest environment. - * @member {string} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest - * @instance - */ - BatchRunTestCasesRequest.prototype.environment = ""; - - /** - * BatchRunTestCasesRequest testCases. - * @member {Array.} testCases - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest - * @instance - */ - BatchRunTestCasesRequest.prototype.testCases = $util.emptyArray; - - /** - * Creates a new BatchRunTestCasesRequest instance using the specified properties. + * Creates a new ExportTestCasesMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @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.IExportTestCasesMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata instance */ - BatchRunTestCasesRequest.create = function create(properties) { - return new BatchRunTestCasesRequest(properties); + ExportTestCasesMetadata.create = function create(properties) { + return new ExportTestCasesMetadata(properties); }; /** - * Encodes the specified BatchRunTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * 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.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode + * @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 */ - BatchRunTestCasesRequest.encode = function encode(message, writer) { + ExportTestCasesMetadata.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; }; /** - * Encodes the specified BatchRunTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest.verify|verify} messages. + * 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.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest} message BatchRunTestCasesRequest message or plain object to encode + * @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 */ - BatchRunTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesRequest message from the specified reader or buffer. + * Decodes an ExportTestCasesMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @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.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @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 */ - BatchRunTestCasesRequest.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.v3beta1.BatchRunTestCasesRequest(); + 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) { - 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; @@ -119722,153 +125404,112 @@ }; /** - * Decodes a BatchRunTestCasesRequest 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.v3beta1.BatchRunTestCasesRequest + * @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.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @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 */ - BatchRunTestCasesRequest.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 BatchRunTestCasesRequest message. + * Verifies an ExportTestCasesMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @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 */ - BatchRunTestCasesRequest.verify = function verify(message) { + ExportTestCasesMetadata.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; }; /** - * Creates a BatchRunTestCasesRequest 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.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} BatchRunTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata */ - BatchRunTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest) + ExportTestCasesMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.BatchRunTestCasesRequest.testCases: array expected"); - message.testCases = []; - for (var i = 0; i < object.testCases.length; ++i) - message.testCases[i] = String(object.testCases[i]); - } - return message; + return new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); }; /** - * Creates a plain object from a BatchRunTestCasesRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportTestCasesMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest} message BatchRunTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} message ExportTestCasesMetadata * @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; + ExportTestCasesMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this BatchRunTestCasesRequest to JSON. + * Converts this ExportTestCasesMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesRequest.prototype.toJSON = function toJSON() { + ExportTestCasesMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchRunTestCasesRequest + * Gets the default type url for ExportTestCasesMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchRunTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportTestCasesMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata"; }; - return BatchRunTestCasesRequest; + return ExportTestCasesMetadata; })(); - v3beta1.BatchRunTestCasesResponse = (function() { + v3beta1.ListTestCaseResultsRequest = (function() { /** - * Properties of a BatchRunTestCasesResponse. + * Properties of a ListTestCaseResultsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchRunTestCasesResponse - * @property {Array.|null} [results] BatchRunTestCasesResponse results + * @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 BatchRunTestCasesResponse. + * Constructs a new ListTestCaseResultsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchRunTestCasesResponse. - * @implements IBatchRunTestCasesResponse + * @classdesc Represents a ListTestCaseResultsRequest. + * @implements IListTestCaseResultsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set */ - function BatchRunTestCasesResponse(properties) { - this.results = []; + function ListTestCaseResultsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119876,78 +125517,117 @@ } /** - * BatchRunTestCasesResponse results. - * @member {Array.} results - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * ListTestCaseResultsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @instance */ - BatchRunTestCasesResponse.prototype.results = $util.emptyArray; + ListTestCaseResultsRequest.prototype.parent = ""; /** - * Creates a new BatchRunTestCasesResponse instance using the specified properties. + * ListTestCaseResultsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.pageSize = 0; + + /** + * ListTestCaseResultsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.pageToken = ""; + + /** + * ListTestCaseResultsRequest filter. + * @member {string} filter + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @instance + */ + ListTestCaseResultsRequest.prototype.filter = ""; + + /** + * Creates a new ListTestCaseResultsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @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.IListTestCaseResultsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance */ - BatchRunTestCasesResponse.create = function create(properties) { - return new BatchRunTestCasesResponse(properties); + ListTestCaseResultsRequest.create = function create(properties) { + return new ListTestCaseResultsRequest(properties); }; /** - * Encodes the specified BatchRunTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.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.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse 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 */ - BatchRunTestCasesResponse.encode = function encode(message, writer) { + ListTestCaseResultsRequest.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.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 BatchRunTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse.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.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesResponse} message BatchRunTestCasesResponse 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 */ - BatchRunTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesResponse 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.BatchRunTestCasesResponse + * @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.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @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 */ - BatchRunTestCasesResponse.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.BatchRunTestCasesResponse(); + 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: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); + 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: @@ -119959,140 +125639,149 @@ }; /** - * Decodes a BatchRunTestCasesResponse 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.v3beta1.BatchRunTestCasesResponse + * @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.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @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 */ - BatchRunTestCasesResponse.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 BatchRunTestCasesResponse message. + * Verifies a ListTestCaseResultsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @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 */ - BatchRunTestCasesResponse.verify = function verify(message) { + ListTestCaseResultsRequest.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.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 BatchRunTestCasesResponse 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.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} BatchRunTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest */ - BatchRunTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse) + 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.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.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 BatchRunTestCasesResponse 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.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse} message BatchRunTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} message ListTestCaseResultsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesResponse.toObject = function toObject(message, options) { + ListTestCaseResultsRequest.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.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 BatchRunTestCasesResponse to JSON. + * Converts this ListTestCaseResultsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesResponse.prototype.toJSON = function toJSON() { + ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchRunTestCasesResponse + * Gets the default type url for ListTestCaseResultsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchRunTestCasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTestCaseResultsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest"; }; - return BatchRunTestCasesResponse; + return ListTestCaseResultsRequest; })(); - v3beta1.BatchRunTestCasesMetadata = (function() { + v3beta1.ListTestCaseResultsResponse = (function() { /** - * Properties of a BatchRunTestCasesMetadata. + * Properties of a ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IBatchRunTestCasesMetadata - * @property {Array.|null} [errors] BatchRunTestCasesMetadata errors + * @interface IListTestCaseResultsResponse + * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults + * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken */ /** - * Constructs a new BatchRunTestCasesMetadata. + * Constructs a new ListTestCaseResultsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a BatchRunTestCasesMetadata. - * @implements IBatchRunTestCasesMetadata + * @classdesc Represents a ListTestCaseResultsResponse. + * @implements IListTestCaseResultsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set */ - function BatchRunTestCasesMetadata(properties) { - this.errors = []; + function ListTestCaseResultsResponse(properties) { + this.testCaseResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -120100,78 +125789,92 @@ } /** - * BatchRunTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * ListTestCaseResultsResponse testCaseResults. + * @member {Array.} testCaseResults + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @instance */ - BatchRunTestCasesMetadata.prototype.errors = $util.emptyArray; + ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; /** - * Creates a new BatchRunTestCasesMetadata 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.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @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.IListTestCaseResultsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse instance */ - BatchRunTestCasesMetadata.create = function create(properties) { - return new BatchRunTestCasesMetadata(properties); + ListTestCaseResultsResponse.create = function create(properties) { + return new ListTestCaseResultsResponse(properties); }; /** - * Encodes the specified BatchRunTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.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.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata 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 */ - BatchRunTestCasesMetadata.encode = function encode(message, writer) { + ListTestCaseResultsResponse.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.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 BatchRunTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata.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.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesMetadata} message BatchRunTestCasesMetadata 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 */ - BatchRunTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchRunTestCasesMetadata 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.BatchRunTestCasesMetadata + * @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.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @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 */ - BatchRunTestCasesMetadata.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.BatchRunTestCasesMetadata(); + 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: { - if (!(message.errors && message.errors.length)) - message.errors = []; - message.errors.push($root.google.cloud.dialogflow.cx.v3beta1.TestError.decode(reader, reader.uint32())); + 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: @@ -120183,141 +125886,148 @@ }; /** - * Decodes a BatchRunTestCasesMetadata 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.BatchRunTestCasesMetadata + * @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.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @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 */ - BatchRunTestCasesMetadata.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 BatchRunTestCasesMetadata message. + * Verifies a ListTestCaseResultsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @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 */ - BatchRunTestCasesMetadata.verify = function verify(message) { + ListTestCaseResultsResponse.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 (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 "errors." + error; + return "testCaseResults." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a BatchRunTestCasesMetadata 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.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} BatchRunTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse */ - BatchRunTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata) + 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.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.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 BatchRunTestCasesMetadata 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.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata} message BatchRunTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} message ListTestCaseResultsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchRunTestCasesMetadata.toObject = function toObject(message, options) { + ListTestCaseResultsResponse.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); + 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); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this BatchRunTestCasesMetadata to JSON. + * Converts this ListTestCaseResultsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @instance * @returns {Object.} JSON object */ - BatchRunTestCasesMetadata.prototype.toJSON = function toJSON() { + ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchRunTestCasesMetadata + * Gets the default type url for ListTestCaseResultsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchRunTestCasesMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTestCaseResultsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse"; }; - return BatchRunTestCasesMetadata; + return ListTestCaseResultsResponse; })(); - v3beta1.TestError = (function() { + v3beta1.GetTestCaseResultRequest = (function() { /** - * Properties of a TestError. + * Properties of a GetTestCaseResultRequest. * @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 + * @interface IGetTestCaseResultRequest + * @property {string|null} [name] GetTestCaseResultRequest name */ /** - * Constructs a new TestError. + * Constructs a new GetTestCaseResultRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TestError. - * @implements ITestError + * @classdesc Represents a GetTestCaseResultRequest. + * @implements IGetTestCaseResultRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest=} [properties] Properties to set */ - function TestError(properties) { + function GetTestCaseResultRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -120325,103 +126035,75 @@ } /** - * TestError testCase. - * @member {string} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @instance - */ - TestError.prototype.testCase = ""; - - /** - * TestError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError - * @instance - */ - TestError.prototype.status = null; - - /** - * TestError testTime. - * @member {google.protobuf.ITimestamp|null|undefined} testTime - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * GetTestCaseResultRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @instance */ - TestError.prototype.testTime = null; + GetTestCaseResultRequest.prototype.name = ""; /** - * Creates a new TestError instance using the specified properties. + * Creates a new GetTestCaseResultRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest instance */ - TestError.create = function create(properties) { - return new TestError(properties); + GetTestCaseResultRequest.create = function create(properties) { + return new GetTestCaseResultRequest(properties); }; /** - * Encodes the specified TestError message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. + * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestError.encode = function encode(message, writer) { + GetTestCaseResultRequest.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(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified TestError message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TestError.verify|verify} messages. + * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITestError} message TestError message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} message GetTestCaseResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestError.encodeDelimited = function encodeDelimited(message, writer) { + GetTestCaseResultRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestError message from the specified reader or buffer. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest * @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) { + GetTestCaseResultRequest.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest(); 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()); + message.name = reader.string(); break; } default: @@ -120433,427 +126115,414 @@ }; /** - * Decodes a TestError message from the specified reader or buffer, length delimited. + * Decodes a GetTestCaseResultRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest * @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) { + GetTestCaseResultRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestError message. + * Verifies a GetTestCaseResultRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @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) { + GetTestCaseResultRequest.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; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a TestError message from a plain object. Also converts values to their respective internal types. + * Creates a GetTestCaseResultRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TestError} TestError + * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest */ - TestError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TestError) + GetTestCaseResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) 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); - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a TestError message. Also converts values to other types if specified. + * Creates a plain object from a GetTestCaseResultRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TestError} message TestError + * @param {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} message GetTestCaseResultRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestError.toObject = function toObject(message, options) { + GetTestCaseResultRequest.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); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this TestError to JSON. + * Converts this GetTestCaseResultRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @instance * @returns {Object.} JSON object */ - TestError.prototype.toJSON = function toJSON() { + GetTestCaseResultRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestError + * Gets the default type url for GetTestCaseResultRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TestError + * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTestCaseResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestError"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest"; }; - return TestError; + return GetTestCaseResultRequest; })(); - v3beta1.ImportTestCasesRequest = (function() { + /** + * 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; + })(); - /** - * Properties of an ImportTestCasesRequest. - * @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 - */ + v3beta1.Intents = (function() { /** - * Constructs a new ImportTestCasesRequest. + * Constructs a new Intents service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportTestCasesRequest. - * @implements IImportTestCasesRequest + * @classdesc Represents an Intents + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [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 ImportTestCasesRequest(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 Intents(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; + /** - * ImportTestCasesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * 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 */ - ImportTestCasesRequest.prototype.parent = ""; + 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" }); /** - * ImportTestCasesRequest gcsUri. - * @member {string|null|undefined} gcsUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * 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 */ - ImportTestCasesRequest.prototype.gcsUri = null; /** - * ImportTestCasesRequest content. - * @member {Uint8Array|null|undefined} content - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * 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 + */ + + /** + * 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 */ - ImportTestCasesRequest.prototype.content = null; + 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" }); - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * 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 + */ /** - * ImportTestCasesRequest source. - * @member {"gcsUri"|"content"|undefined} source - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * 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 + */ + + /** + * 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 */ - Object.defineProperty(ImportTestCasesRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), - set: $util.oneOfSetter($oneOfFields) - }); + 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" }); /** - * Creates a new ImportTestCasesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest instance + * 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 */ - ImportTestCasesRequest.create = function create(properties) { - return new ImportTestCasesRequest(properties); - }; /** - * 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.ImportTestCasesRequest - * @static - * @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 + * 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 */ - 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.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 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.ImportTestCasesRequest - * @static - * @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 + * 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 */ - ImportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + 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" }); /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer. - * @function decode - * @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.ImportTestCasesRequest} ImportTestCasesRequest - * @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 + * @returns {Promise} Promise + * @variation 2 */ - 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.ImportTestCasesRequest(); - 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.content = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an ImportTestCasesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.ImportTestCasesRequest} ImportTestCasesRequest - * @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|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 + */ + + /** + * 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 + */ + 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" }); + + /** + * 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 + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents|importIntents}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef ImportIntentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ImportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies an ImportTestCasesRequest message. - * @function verify - * @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 + * Calls ImportIntents. + * @function importIntents + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest} request ImportIntentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntentsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - 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.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; - }; + Object.defineProperty(Intents.prototype.importIntents = function importIntents(request, callback) { + return this.rpcCall(importIntents, $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportIntents" }); /** - * Creates an ImportTestCasesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} ImportTestCasesRequest + * Calls ImportIntents. + * @function importIntents + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest} request ImportIntentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.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 >= 0) - message.content = object.content; - return message; - }; /** - * Creates a plain object from an ImportTestCasesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest} message ImportTestCasesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents|exportIntents}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @typedef ExportIntentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - 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"; - } - return object; - }; /** - * Converts this ImportTestCasesRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest + * Calls ExportIntents. + * @function exportIntents + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest} request ExportIntentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntentsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ImportTestCasesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Intents.prototype.exportIntents = function exportIntents(request, callback) { + return this.rpcCall(exportIntents, $root.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportIntents" }); /** - * Gets the default type url for ImportTestCasesRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ExportIntents. + * @function exportIntents + * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest} request ExportIntentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest"; - }; - return ImportTestCasesRequest; + return Intents; })(); - v3beta1.ImportTestCasesResponse = (function() { + v3beta1.Intent = (function() { /** - * Properties of an ImportTestCasesResponse. + * Properties of an Intent. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportTestCasesResponse - * @property {Array.|null} [names] ImportTestCasesResponse names + * @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 ImportTestCasesResponse. + * Constructs a new Intent. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportTestCasesResponse. - * @implements IImportTestCasesResponse + * @classdesc Represents an Intent. + * @implements IIntent * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set */ - function ImportTestCasesResponse(properties) { - this.names = []; + 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) @@ -120861,78 +126530,199 @@ } /** - * ImportTestCasesResponse names. - * @member {Array.} names - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * Intent name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @instance */ - ImportTestCasesResponse.prototype.names = $util.emptyArray; + Intent.prototype.name = ""; /** - * Creates a new ImportTestCasesResponse instance using the specified properties. + * 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 + * @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.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent instance */ - ImportTestCasesResponse.create = function create(properties) { - return new ImportTestCasesResponse(properties); + Intent.create = function create(properties) { + return new Intent(properties); }; /** - * Encodes the specified ImportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.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.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse 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 */ - ImportTestCasesResponse.encode = function encode(message, writer) { + Intent.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.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 ImportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse.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.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportTestCasesResponse} message ImportTestCasesResponse 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 */ - ImportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Intent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportTestCasesResponse 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.ImportTestCasesResponse + * @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.ImportTestCasesResponse} ImportTestCasesResponse + * @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 */ - ImportTestCasesResponse.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.ImportTestCasesResponse(); + 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: { - if (!(message.names && message.names.length)) - message.names = []; - message.names.push(reader.string()); + 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.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: @@ -120944,598 +126734,1006 @@ }; /** - * Decodes an ImportTestCasesResponse 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.ImportTestCasesResponse + * @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.ImportTestCasesResponse} ImportTestCasesResponse + * @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 */ - ImportTestCasesResponse.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 ImportTestCasesResponse message. + * Verifies an Intent message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @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 */ - ImportTestCasesResponse.verify = function verify(message) { + Intent.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.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.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates an ImportTestCasesResponse 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.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} ImportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent */ - ImportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse) + 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.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]); + 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 ImportTestCasesResponse 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.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse} message ImportTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.Intent} message Intent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportTestCasesResponse.toObject = function toObject(message, options) { + Intent.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.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); + } + 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 ImportTestCasesResponse to JSON. + * Converts this Intent to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @instance * @returns {Object.} JSON object */ - ImportTestCasesResponse.prototype.toJSON = function toJSON() { + Intent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportTestCasesResponse + * Gets the default type url for Intent * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportTestCasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Intent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Intent"; }; - return ImportTestCasesResponse; - })(); + Intent.TrainingPhrase = (function() { - v3beta1.ImportTestCasesMetadata = (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 ImportTestCasesMetadata. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportTestCasesMetadata - * @property {Array.|null} [errors] ImportTestCasesMetadata errors - */ + /** + * 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 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]]; - } + /** + * TrainingPhrase id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.id = ""; - /** - * ImportTestCasesMetadata errors. - * @member {Array.} errors - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @instance - */ - ImportTestCasesMetadata.prototype.errors = $util.emptyArray; + /** + * TrainingPhrase parts. + * @member {Array.} parts + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.parts = $util.emptyArray; - /** - * 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); - }; + /** + * TrainingPhrase repeatCount. + * @member {number} repeatCount + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.repeatCount = 0; - /** - * 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; - }; + /** + * 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); + }; + + /** + * Gets the default type url for TrainingPhrase + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainingPhrase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase"; + }; + + 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; + }; + + /** + * 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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; + }; - /** - * 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(); - }; + /** + * 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); + }; - /** - * 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; + /** + * Gets the default type url for Part + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Part.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - default: - reader.skipType(tag & 7); - break; - } - } - 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()); - }; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part"; + }; - /** - * 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]); - if (error) - return "errors." + error; - } - } - return null; - }; + return Part; + })(); - /** - * 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]); - } - } - return message; - }; + return TrainingPhrase; + })(); - /** - * 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; - }; + Intent.Parameter = (function() { - /** - * 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); - }; + /** + * 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 + */ - /** - * Gets the default type url for ImportTestCasesMetadata - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ImportTestCasesMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * 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]]; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata"; - }; - - return ImportTestCasesMetadata; - })(); - - v3beta1.TestCaseError = (function() { - /** - * 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 - */ + /** + * Parameter id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.id = ""; - /** - * 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]]; - } + /** + * Parameter entityType. + * @member {string} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.entityType = ""; - /** - * TestCaseError testCase. - * @member {google.cloud.dialogflow.cx.v3beta1.ITestCase|null|undefined} testCase - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @instance - */ - TestCaseError.prototype.testCase = null; + /** + * Parameter isList. + * @member {boolean} isList + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.isList = false; - /** - * TestCaseError status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @instance - */ - TestCaseError.prototype.status = null; + /** + * Parameter redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @instance + */ + Parameter.prototype.redact = false; - /** - * 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 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 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 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 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 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 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()); + /** + * 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; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + 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 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 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 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 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) + /** + * 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.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 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; - }; + /** + * 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 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); - }; + /** + * Gets the default type url for Parameter + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Intent.Parameter"; + }; - /** - * Gets the default type url for TestCaseError - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TestCaseError - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TestCaseError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TestCaseError"; - }; + return Parameter; + })(); - return TestCaseError; + return Intent; })(); - v3beta1.ExportTestCasesRequest = (function() { + v3beta1.ListIntentsRequest = (function() { /** - * Properties of an ExportTestCasesRequest. + * Properties of a ListIntentsRequest. * @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 + * @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 ExportTestCasesRequest. + * Constructs a new ListIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportTestCasesRequest. - * @implements IExportTestCasesRequest + * @classdesc Represents a ListIntentsRequest. + * @implements IListIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set */ - function ExportTestCasesRequest(properties) { + function ListIntentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -121543,114 +127741,110 @@ } /** - * ExportTestCasesRequest parent. + * ListIntentsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - ExportTestCasesRequest.prototype.parent = ""; + ListIntentsRequest.prototype.parent = ""; /** - * ExportTestCasesRequest gcsUri. - * @member {string|null|undefined} gcsUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * ListIntentsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - ExportTestCasesRequest.prototype.gcsUri = null; + ListIntentsRequest.prototype.languageCode = ""; /** - * ExportTestCasesRequest dataFormat. - * @member {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat} dataFormat - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * ListIntentsRequest intentView. + * @member {google.cloud.dialogflow.cx.v3beta1.IntentView} intentView + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - ExportTestCasesRequest.prototype.dataFormat = 0; + ListIntentsRequest.prototype.intentView = 0; /** - * ExportTestCasesRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * ListIntentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - ExportTestCasesRequest.prototype.filter = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListIntentsRequest.prototype.pageSize = 0; /** - * ExportTestCasesRequest destination. - * @member {"gcsUri"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * ListIntentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance */ - Object.defineProperty(ExportTestCasesRequest.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListIntentsRequest.prototype.pageToken = ""; /** - * Creates a new ExportTestCasesRequest instance using the specified properties. + * Creates a new ListIntentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest instance */ - ExportTestCasesRequest.create = function create(properties) { - return new ExportTestCasesRequest(properties); + ListIntentsRequest.create = function create(properties) { + return new ListIntentsRequest(properties); }; /** - * Encodes the specified ExportTestCasesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.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.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest 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 */ - ExportTestCasesRequest.encode = function encode(message, 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.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); + 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 ExportTestCasesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.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.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest} message ExportTestCasesRequest 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 */ - ExportTestCasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesRequest 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.ExportTestCasesRequest + * @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.ExportTestCasesRequest} ExportTestCasesRequest + * @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 */ - ExportTestCasesRequest.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.ExportTestCasesRequest(); + 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) { @@ -121659,15 +127853,19 @@ break; } case 2: { - message.gcsUri = reader.string(); + message.languageCode = reader.string(); + break; + } + case 5: { + message.intentView = reader.int32(); break; } case 3: { - message.dataFormat = reader.int32(); + message.pageSize = reader.int32(); break; } case 4: { - message.filter = reader.string(); + message.pageToken = reader.string(); break; } default: @@ -121679,193 +127877,181 @@ }; /** - * Decodes an ExportTestCasesRequest 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.ExportTestCasesRequest + * @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.ExportTestCasesRequest} ExportTestCasesRequest + * @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 */ - ExportTestCasesRequest.decodeDelimited = function decodeDelimited(reader) { + ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesRequest message. + * Verifies a ListIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @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 */ - ExportTestCasesRequest.verify = function verify(message) { + ListIntentsRequest.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) { + 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 "dataFormat: enum value expected"; + return "intentView: 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"; + 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 ExportTestCasesRequest 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.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} ExportTestCasesRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest */ - ExportTestCasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest) + 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.ExportTestCasesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.gcsUri != null) - message.gcsUri = String(object.gcsUri); - switch (object.dataFormat) { + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + switch (object.intentView) { default: - if (typeof object.dataFormat === "number") { - message.dataFormat = object.dataFormat; + if (typeof object.intentView === "number") { + message.intentView = object.intentView; break; } break; - case "DATA_FORMAT_UNSPECIFIED": + case "INTENT_VIEW_UNSPECIFIED": case 0: - message.dataFormat = 0; + message.intentView = 0; break; - case "BLOB": + case "INTENT_VIEW_PARTIAL": case 1: - message.dataFormat = 1; + message.intentView = 1; break; - case "JSON": + case "INTENT_VIEW_FULL": case 2: - message.dataFormat = 2; + message.intentView = 2; break; } - if (object.filter != null) - message.filter = String(object.filter); + 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 ExportTestCasesRequest 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.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest} message ExportTestCasesRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} message ListIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesRequest.toObject = function toObject(message, options) { + ListIntentsRequest.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.languageCode = ""; + 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.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] === undefined ? message.dataFormat : $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat[message.dataFormat] : message.dataFormat; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + 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] === undefined ? message.intentView : $root.google.cloud.dialogflow.cx.v3beta1.IntentView[message.intentView] : message.intentView; return object; }; /** - * Converts this ExportTestCasesRequest to JSON. + * Converts this ListIntentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @instance * @returns {Object.} JSON object */ - ExportTestCasesRequest.prototype.toJSON = function toJSON() { + ListIntentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportTestCasesRequest + * Gets the default type url for ListIntentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportTestCasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListIntentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest"; }; - /** - * 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; + return ListIntentsRequest; })(); - v3beta1.ExportTestCasesResponse = (function() { + v3beta1.ListIntentsResponse = (function() { /** - * Properties of an ExportTestCasesResponse. + * Properties of a ListIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportTestCasesResponse - * @property {string|null} [gcsUri] ExportTestCasesResponse gcsUri - * @property {Uint8Array|null} [content] ExportTestCasesResponse content + * @interface IListIntentsResponse + * @property {Array.|null} [intents] ListIntentsResponse intents + * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken */ /** - * Constructs a new ExportTestCasesResponse. + * Constructs a new ListIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportTestCasesResponse. - * @implements IExportTestCasesResponse + * @classdesc Represents a ListIntentsResponse. + * @implements IListIntentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set */ - function ExportTestCasesResponse(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) @@ -121873,103 +128059,92 @@ } /** - * ExportTestCasesResponse gcsUri. - * @member {string|null|undefined} gcsUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse - * @instance - */ - ExportTestCasesResponse.prototype.gcsUri = null; - - /** - * ExportTestCasesResponse content. - * @member {Uint8Array|null|undefined} content - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * ListIntentsResponse intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @instance */ - ExportTestCasesResponse.prototype.content = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListIntentsResponse.prototype.intents = $util.emptyArray; /** - * ExportTestCasesResponse destination. - * @member {"gcsUri"|"content"|undefined} destination - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * ListIntentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @instance */ - Object.defineProperty(ExportTestCasesResponse.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsUri", "content"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListIntentsResponse.prototype.nextPageToken = ""; /** - * Creates a new ExportTestCasesResponse instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse instance */ - ExportTestCasesResponse.create = function create(properties) { - return new ExportTestCasesResponse(properties); + ListIntentsResponse.create = function create(properties) { + return new ListIntentsResponse(properties); }; /** - * Encodes the specified ExportTestCasesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.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.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse 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 */ - ExportTestCasesResponse.encode = function encode(message, writer) { + ListIntentsResponse.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.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 ExportTestCasesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse.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.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesResponse} message ExportTestCasesResponse 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 */ - ExportTestCasesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesResponse 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.ExportTestCasesResponse + * @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.ExportTestCasesResponse} ExportTestCasesResponse + * @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 */ - ExportTestCasesResponse.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.ExportTestCasesResponse(); + 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.gcsUri = 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.content = reader.bytes(); + message.nextPageToken = reader.string(); break; } default: @@ -121981,142 +128156,149 @@ }; /** - * Decodes an ExportTestCasesResponse 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.ExportTestCasesResponse + * @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.ExportTestCasesResponse} ExportTestCasesResponse + * @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 */ - ExportTestCasesResponse.decodeDelimited = function decodeDelimited(reader) { + ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportTestCasesResponse message. + * Verifies a ListIntentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @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 */ - ExportTestCasesResponse.verify = function verify(message) { + ListIntentsResponse.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"; + 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 an ExportTestCasesResponse 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.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} ExportTestCasesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse */ - ExportTestCasesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse) + 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.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 >= 0) - message.content = object.content; + 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 an ExportTestCasesResponse 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.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse} message ExportTestCasesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} message ListIntentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesResponse.toObject = function toObject(message, options) { + ListIntentsResponse.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.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; return object; }; /** - * Converts this ExportTestCasesResponse to JSON. + * Converts this ListIntentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @instance * @returns {Object.} JSON object */ - ExportTestCasesResponse.prototype.toJSON = function toJSON() { + ListIntentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportTestCasesResponse + * Gets the default type url for ListIntentsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportTestCasesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListIntentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse"; }; - return ExportTestCasesResponse; + return ListIntentsResponse; })(); - v3beta1.ExportTestCasesMetadata = (function() { + v3beta1.GetIntentRequest = (function() { /** - * Properties of an ExportTestCasesMetadata. + * Properties of a GetIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportTestCasesMetadata + * @interface IGetIntentRequest + * @property {string|null} [name] GetIntentRequest name + * @property {string|null} [languageCode] GetIntentRequest languageCode */ /** - * Constructs a new ExportTestCasesMetadata. + * Constructs a new GetIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportTestCasesMetadata. - * @implements IExportTestCasesMetadata + * @classdesc Represents a GetIntentRequest. + * @implements IGetIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set */ - function ExportTestCasesMetadata(properties) { + function GetIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -122124,63 +128306,91 @@ } /** - * Creates a new ExportTestCasesMetadata instance using the specified properties. + * 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. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @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.IGetIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest instance */ - ExportTestCasesMetadata.create = function create(properties) { - return new ExportTestCasesMetadata(properties); + GetIntentRequest.create = function create(properties) { + return new GetIntentRequest(properties); }; /** - * Encodes the specified ExportTestCasesMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.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.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata 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 */ - ExportTestCasesMetadata.encode = function encode(message, writer) { + GetIntentRequest.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 ExportTestCasesMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata.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.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportTestCasesMetadata} message ExportTestCasesMetadata 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 */ - ExportTestCasesMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportTestCasesMetadata 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.ExportTestCasesMetadata + * @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.ExportTestCasesMetadata} ExportTestCasesMetadata + * @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 */ - ExportTestCasesMetadata.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.ExportTestCasesMetadata(); + 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.name = reader.string(); + break; + } + case 2: { + message.languageCode = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -122190,112 +128400,133 @@ }; /** - * Decodes an ExportTestCasesMetadata 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.ExportTestCasesMetadata + * @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.ExportTestCasesMetadata} ExportTestCasesMetadata + * @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 */ - ExportTestCasesMetadata.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 ExportTestCasesMetadata message. + * Verifies a GetIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @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 */ - ExportTestCasesMetadata.verify = function verify(message) { + GetIntentRequest.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 an ExportTestCasesMetadata 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.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} ExportTestCasesMetadata + * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest */ - ExportTestCasesMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata) + GetIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest) return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata(); + 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 an ExportTestCasesMetadata 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.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata} message ExportTestCasesMetadata + * @param {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} message GetIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportTestCasesMetadata.toObject = function toObject() { - return {}; + 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 ExportTestCasesMetadata to JSON. + * Converts this GetIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @instance * @returns {Object.} JSON object */ - ExportTestCasesMetadata.prototype.toJSON = function toJSON() { + GetIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportTestCasesMetadata + * Gets the default type url for GetIntentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata + * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportTestCasesMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetIntentRequest"; }; - return ExportTestCasesMetadata; + return GetIntentRequest; })(); - v3beta1.ListTestCaseResultsRequest = (function() { + v3beta1.CreateIntentRequest = (function() { /** - * Properties of a ListTestCaseResultsRequest. + * Properties of a CreateIntentRequest. * @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 + * @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 ListTestCaseResultsRequest. + * Constructs a new CreateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCaseResultsRequest. - * @implements IListTestCaseResultsRequest + * @classdesc Represents a CreateIntentRequest. + * @implements ICreateIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set */ - function ListTestCaseResultsRequest(properties) { + function CreateIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -122303,100 +128534,90 @@ } /** - * ListTestCaseResultsRequest parent. + * CreateIntentRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest - * @instance - */ - ListTestCaseResultsRequest.prototype.parent = ""; - - /** - * ListTestCaseResultsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @instance */ - ListTestCaseResultsRequest.prototype.pageSize = 0; + CreateIntentRequest.prototype.parent = ""; /** - * ListTestCaseResultsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * CreateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @instance */ - ListTestCaseResultsRequest.prototype.pageToken = ""; + CreateIntentRequest.prototype.intent = null; /** - * ListTestCaseResultsRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * CreateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @instance */ - ListTestCaseResultsRequest.prototype.filter = ""; + CreateIntentRequest.prototype.languageCode = ""; /** - * Creates a new ListTestCaseResultsRequest instance using the specified properties. + * Creates a new CreateIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest instance */ - ListTestCaseResultsRequest.create = function create(properties) { - return new ListTestCaseResultsRequest(properties); + CreateIntentRequest.create = function create(properties) { + return new CreateIntentRequest(properties); }; /** - * Encodes the specified ListTestCaseResultsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.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.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest 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 */ - ListTestCaseResultsRequest.encode = function encode(message, writer) { + CreateIntentRequest.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.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 ListTestCaseResultsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest.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.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest} message ListTestCaseResultsRequest 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 */ - ListTestCaseResultsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCaseResultsRequest 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.ListTestCaseResultsRequest + * @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.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @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 */ - ListTestCaseResultsRequest.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.ListTestCaseResultsRequest(); + 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) { @@ -122405,15 +128626,11 @@ break; } case 2: { - message.pageSize = reader.int32(); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + message.languageCode = reader.string(); break; } default: @@ -122425,149 +128642,146 @@ }; /** - * Decodes a ListTestCaseResultsRequest 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.ListTestCaseResultsRequest + * @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.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @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 */ - ListTestCaseResultsRequest.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 ListTestCaseResultsRequest message. + * Verifies a CreateIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @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 */ - ListTestCaseResultsRequest.verify = function verify(message) { + CreateIntentRequest.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.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"; return null; }; /** - * Creates a ListTestCaseResultsRequest 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.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} ListTestCaseResultsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest */ - ListTestCaseResultsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest) + 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.ListTestCaseResultsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); 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); + 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 ListTestCaseResultsRequest 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.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest} message ListTestCaseResultsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} message CreateIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCaseResultsRequest.toObject = function toObject(message, options) { + CreateIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.intent = null; + 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.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + 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 ListTestCaseResultsRequest to JSON. + * Converts this CreateIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @instance * @returns {Object.} JSON object */ - ListTestCaseResultsRequest.prototype.toJSON = function toJSON() { + CreateIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTestCaseResultsRequest + * Gets the default type url for CreateIntentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTestCaseResultsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest"; }; - return ListTestCaseResultsRequest; + return CreateIntentRequest; })(); - v3beta1.ListTestCaseResultsResponse = (function() { + v3beta1.UpdateIntentRequest = (function() { /** - * Properties of a ListTestCaseResultsResponse. + * Properties of an UpdateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListTestCaseResultsResponse - * @property {Array.|null} [testCaseResults] ListTestCaseResultsResponse testCaseResults - * @property {string|null} [nextPageToken] ListTestCaseResultsResponse nextPageToken + * @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 ListTestCaseResultsResponse. + * Constructs a new UpdateIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListTestCaseResultsResponse. - * @implements IListTestCaseResultsResponse + * @classdesc Represents an UpdateIntentRequest. + * @implements IUpdateIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set */ - function ListTestCaseResultsResponse(properties) { - this.testCaseResults = []; + function UpdateIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -122575,92 +128789,103 @@ } /** - * ListTestCaseResultsResponse testCaseResults. - * @member {Array.} testCaseResults - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * UpdateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @instance */ - ListTestCaseResultsResponse.prototype.testCaseResults = $util.emptyArray; + UpdateIntentRequest.prototype.intent = null; /** - * ListTestCaseResultsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * UpdateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @instance */ - ListTestCaseResultsResponse.prototype.nextPageToken = ""; + UpdateIntentRequest.prototype.languageCode = ""; /** - * Creates a new ListTestCaseResultsResponse instance using the specified properties. + * UpdateIntentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @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.IUpdateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest instance */ - ListTestCaseResultsResponse.create = function create(properties) { - return new ListTestCaseResultsResponse(properties); + UpdateIntentRequest.create = function create(properties) { + return new UpdateIntentRequest(properties); }; /** - * Encodes the specified ListTestCaseResultsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.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.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse 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 */ - ListTestCaseResultsResponse.encode = function encode(message, writer) { + UpdateIntentRequest.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.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 ListTestCaseResultsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse.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.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsResponse} message ListTestCaseResultsResponse 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 */ - ListTestCaseResultsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTestCaseResultsResponse 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.ListTestCaseResultsResponse + * @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.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @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 */ - ListTestCaseResultsResponse.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.ListTestCaseResultsResponse(); + 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: { - if (!(message.testCaseResults && message.testCaseResults.length)) - message.testCaseResults = []; - message.testCaseResults.push($root.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.decode(reader, reader.uint32())); + message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.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: @@ -122672,148 +128897,149 @@ }; /** - * Decodes a ListTestCaseResultsResponse 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.ListTestCaseResultsResponse + * @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.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @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 */ - ListTestCaseResultsResponse.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 ListTestCaseResultsResponse message. + * Verifies an UpdateIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @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 */ - ListTestCaseResultsResponse.verify = function verify(message) { + UpdateIntentRequest.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]); - if (error) - return "testCaseResults." + 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.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 ListTestCaseResultsResponse 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.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} ListTestCaseResultsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest */ - ListTestCaseResultsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse) + 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.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.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); } - 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 an UpdateIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse} message ListTestCaseResultsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} message UpdateIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTestCaseResultsResponse.toObject = function toObject(message, options) { + UpdateIntentRequest.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); + if (options.defaults) { + object.intent = null; + object.languageCode = ""; + object.updateMask = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListTestCaseResultsResponse to JSON. + * Converts this UpdateIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @instance * @returns {Object.} JSON object */ - ListTestCaseResultsResponse.prototype.toJSON = function toJSON() { + UpdateIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTestCaseResultsResponse + * Gets the default type url for UpdateIntentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTestCaseResultsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest"; }; - return ListTestCaseResultsResponse; + return UpdateIntentRequest; })(); - v3beta1.GetTestCaseResultRequest = (function() { + v3beta1.DeleteIntentRequest = (function() { /** - * Properties of a GetTestCaseResultRequest. + * Properties of a DeleteIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetTestCaseResultRequest - * @property {string|null} [name] GetTestCaseResultRequest name + * @interface IDeleteIntentRequest + * @property {string|null} [name] DeleteIntentRequest name */ /** - * Constructs a new GetTestCaseResultRequest. + * Constructs a new DeleteIntentRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetTestCaseResultRequest. - * @implements IGetTestCaseResultRequest + * @classdesc Represents a DeleteIntentRequest. + * @implements IDeleteIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set */ - function GetTestCaseResultRequest(properties) { + function DeleteIntentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -122821,35 +129047,35 @@ } /** - * GetTestCaseResultRequest name. + * DeleteIntentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @instance */ - GetTestCaseResultRequest.prototype.name = ""; + DeleteIntentRequest.prototype.name = ""; /** - * Creates a new GetTestCaseResultRequest instance using the specified properties. + * Creates a new DeleteIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest instance */ - GetTestCaseResultRequest.create = function create(properties) { - return new GetTestCaseResultRequest(properties); + DeleteIntentRequest.create = function create(properties) { + return new DeleteIntentRequest(properties); }; /** - * Encodes the specified GetTestCaseResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.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.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} message GetTestCaseResultRequest 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 */ - GetTestCaseResultRequest.encode = function encode(message, writer) { + DeleteIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -122858,33 +129084,33 @@ }; /** - * Encodes the specified GetTestCaseResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.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.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest} message GetTestCaseResultRequest 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 */ - GetTestCaseResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetTestCaseResultRequest 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.GetTestCaseResultRequest + * @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.GetTestCaseResultRequest} GetTestCaseResultRequest + * @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 */ - GetTestCaseResultRequest.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.GetTestCaseResultRequest(); + 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) { @@ -122901,30 +129127,30 @@ }; /** - * Decodes a GetTestCaseResultRequest 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.GetTestCaseResultRequest + * @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.GetTestCaseResultRequest} GetTestCaseResultRequest + * @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 */ - GetTestCaseResultRequest.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 GetTestCaseResultRequest message. + * Verifies a DeleteIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + * @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 */ - GetTestCaseResultRequest.verify = function verify(message) { + DeleteIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -122934,315 +129160,108 @@ }; /** - * Creates a GetTestCaseResultRequest 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.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} GetTestCaseResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest */ - GetTestCaseResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) + 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.GetTestCaseResultRequest(); + 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 GetTestCaseResultRequest 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.GetTestCaseResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} message GetTestCaseResultRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} message DeleteIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetTestCaseResultRequest.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 GetTestCaseResultRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest - * @instance - * @returns {Object.} JSON object - */ - GetTestCaseResultRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GetTestCaseResultRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetTestCaseResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest"; - }; - - return GetTestCaseResultRequest; - })(); - - /** - * 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 - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ + 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; + }; /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * Converts this DeleteIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest * @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 + * @returns {Object.} JSON 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" }); + DeleteIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * 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 - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for DeleteIntentRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + DeleteIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest"; + }; - return Intents; + return DeleteIntentRequest; })(); - v3beta1.Intent = (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.ImportIntentsRequest = (function() { /** - * Properties of an Intent. + * Properties of an ImportIntentsRequest. * @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 IImportIntentsRequest + * @property {string|null} [parent] ImportIntentsRequest parent + * @property {string|null} [intentsUri] ImportIntentsRequest intentsUri + * @property {google.cloud.dialogflow.cx.v3beta1.IInlineSource|null} [intentsContent] ImportIntentsRequest intentsContent + * @property {google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption|null} [mergeOption] ImportIntentsRequest mergeOption */ /** - * Constructs a new Intent. + * Constructs a new ImportIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Intent. - * @implements IIntent + * @classdesc Represents an ImportIntentsRequest. + * @implements IImportIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest=} [properties] Properties to set */ - function Intent(properties) { - this.trainingPhrases = []; - this.parameters = []; - this.labels = {}; + function ImportIntentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123250,199 +129269,131 @@ } /** - * 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 + * ImportIntentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @instance */ - Intent.prototype.trainingPhrases = $util.emptyArray; + ImportIntentsRequest.prototype.parent = ""; /** - * Intent parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * ImportIntentsRequest intentsUri. + * @member {string|null|undefined} intentsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @instance */ - Intent.prototype.parameters = $util.emptyArray; + ImportIntentsRequest.prototype.intentsUri = null; /** - * Intent priority. - * @member {number} priority - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * ImportIntentsRequest intentsContent. + * @member {google.cloud.dialogflow.cx.v3beta1.IInlineSource|null|undefined} intentsContent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @instance */ - Intent.prototype.priority = 0; + ImportIntentsRequest.prototype.intentsContent = null; /** - * Intent isFallback. - * @member {boolean} isFallback - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * ImportIntentsRequest mergeOption. + * @member {google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption} mergeOption + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @instance */ - Intent.prototype.isFallback = false; + ImportIntentsRequest.prototype.mergeOption = 0; - /** - * Intent labels. - * @member {Object.} labels - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.labels = $util.emptyObject; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Intent description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * ImportIntentsRequest intents. + * @member {"intentsUri"|"intentsContent"|undefined} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @instance */ - Intent.prototype.description = ""; + Object.defineProperty(ImportIntentsRequest.prototype, "intents", { + get: $util.oneOfGetter($oneOfFields = ["intentsUri", "intentsContent"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Intent instance using the specified properties. + * Creates a new ImportIntentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @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.IImportIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest} ImportIntentsRequest instance */ - Intent.create = function create(properties) { - return new Intent(properties); + ImportIntentsRequest.create = function create(properties) { + return new ImportIntentsRequest(properties); }; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * Encodes the specified ImportIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest} message ImportIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encode = function encode(message, writer) { + ImportIntentsRequest.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.intentsUri != null && Object.hasOwnProperty.call(message, "intentsUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.intentsUri); + if (message.intentsContent != null && Object.hasOwnProperty.call(message, "intentsContent")) + $root.google.cloud.dialogflow.cx.v3beta1.InlineSource.encode(message.intentsContent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mergeOption != null && Object.hasOwnProperty.call(message, "mergeOption")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.mergeOption); 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 ImportIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest} message ImportIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { + ImportIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes an ImportIntentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @static * @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.ImportIntentsRequest} ImportIntentsRequest * @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) { + ImportIntentsRequest.decode = function decode(reader, length) { 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.ImportIntentsRequest(); 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.intentsUri = 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())); + message.intentsContent = $root.google.cloud.dialogflow.cx.v3beta1.InlineSource.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(); + message.mergeOption = reader.int32(); break; } default: @@ -123454,729 +129405,480 @@ }; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes an ImportIntentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @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.ImportIntentsRequest} ImportIntentsRequest * @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) { + ImportIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Intent message. + * Verifies an ImportIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @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) { + ImportIntentsRequest.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]); + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + properties.intents = 1; + if (!$util.isString(message.intentsUri)) + return "intentsUri: string expected"; + } + if (message.intentsContent != null && message.hasOwnProperty("intentsContent")) { + if (properties.intents === 1) + return "intents: multiple values"; + properties.intents = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.InlineSource.verify(message.intentsContent); if (error) - return "trainingPhrases." + error; + return "intentsContent." + 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.mergeOption != null && message.hasOwnProperty("mergeOption")) + switch (message.mergeOption) { + default: + return "mergeOption: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + 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 an ImportIntentsRequest 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.ImportIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest} ImportIntentsRequest */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent) + ImportIntentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest) 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]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.intentsUri != null) + message.intentsUri = String(object.intentsUri); + if (object.intentsContent != null) { + if (typeof object.intentsContent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.intentsContent: object expected"); + message.intentsContent = $root.google.cloud.dialogflow.cx.v3beta1.InlineSource.fromObject(object.intentsContent); + } + switch (object.mergeOption) { + default: + if (typeof object.mergeOption === "number") { + message.mergeOption = object.mergeOption; + break; } + break; + case "MERGE_OPTION_UNSPECIFIED": + case 0: + message.mergeOption = 0; + break; + case "REJECT": + case 1: + message.mergeOption = 1; + break; + case "REPLACE": + case 2: + message.mergeOption = 2; + break; + case "MERGE": + case 3: + message.mergeOption = 3; + break; + case "RENAME": + case 4: + message.mergeOption = 4; + break; + case "REPORT_CONFLICT": + case 5: + message.mergeOption = 5; + break; + case "KEEP": + case 6: + message.mergeOption = 6; + break; } - 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. + * Creates a plain object from an ImportIntentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} message Intent + * @param {google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest} message ImportIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Intent.toObject = function toObject(message, options) { + ImportIntentsRequest.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); + object.parent = ""; + object.mergeOption = options.enums === String ? "MERGE_OPTION_UNSPECIFIED" : 0; } - 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.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + object.intentsUri = message.intentsUri; + if (options.oneofs) + object.intents = "intentsUri"; } - 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.intentsContent != null && message.hasOwnProperty("intentsContent")) { + object.intentsContent = $root.google.cloud.dialogflow.cx.v3beta1.InlineSource.toObject(message.intentsContent, options); + if (options.oneofs) + object.intents = "intentsContent"; } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.mergeOption != null && message.hasOwnProperty("mergeOption")) + object.mergeOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption[message.mergeOption] === undefined ? message.mergeOption : $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption[message.mergeOption] : message.mergeOption; return object; }; /** - * Converts this Intent to JSON. + * Converts this ImportIntentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @instance * @returns {Object.} JSON object */ - Intent.prototype.toJSON = function toJSON() { + ImportIntentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Intent + * Gets the default type url for ImportIntentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Intent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportIntentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Intent"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest"; }; - 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 - */ + /** + * MergeOption enum. + * @name google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption + * @enum {number} + * @property {number} MERGE_OPTION_UNSPECIFIED=0 MERGE_OPTION_UNSPECIFIED value + * @property {number} REJECT=1 REJECT value + * @property {number} REPLACE=2 REPLACE value + * @property {number} MERGE=3 MERGE value + * @property {number} RENAME=4 RENAME value + * @property {number} REPORT_CONFLICT=5 REPORT_CONFLICT value + * @property {number} KEEP=6 KEEP value + */ + ImportIntentsRequest.MergeOption = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MERGE_OPTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "REJECT"] = 1; + values[valuesById[2] = "REPLACE"] = 2; + values[valuesById[3] = "MERGE"] = 3; + values[valuesById[4] = "RENAME"] = 4; + values[valuesById[5] = "REPORT_CONFLICT"] = 5; + values[valuesById[6] = "KEEP"] = 6; + return values; + })(); - /** - * 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]]; - } + return ImportIntentsRequest; + })(); - /** - * TrainingPhrase id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.id = ""; + v3beta1.ImportIntentsResponse = (function() { - /** - * TrainingPhrase parts. - * @member {Array.} parts - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.parts = $util.emptyArray; + /** + * Properties of an ImportIntentsResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IImportIntentsResponse + * @property {Array.|null} [intents] ImportIntentsResponse intents + * @property {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources|null} [conflictingResources] ImportIntentsResponse conflictingResources + */ - /** - * TrainingPhrase repeatCount. - * @member {number} repeatCount - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.repeatCount = 0; + /** + * Constructs a new ImportIntentsResponse. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an ImportIntentsResponse. + * @implements IImportIntentsResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse=} [properties] Properties to set + */ + function ImportIntentsResponse(properties) { + this.intents = []; + 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 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); - }; + /** + * ImportIntentsResponse intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @instance + */ + ImportIntentsResponse.prototype.intents = $util.emptyArray; - /** - * 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; - }; + /** + * ImportIntentsResponse conflictingResources. + * @member {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources|null|undefined} conflictingResources + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @instance + */ + ImportIntentsResponse.prototype.conflictingResources = null; - /** - * 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(); - }; + /** + * Creates a new ImportIntentsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse} ImportIntentsResponse instance + */ + ImportIntentsResponse.create = function create(properties) { + return new ImportIntentsResponse(properties); + }; - /** - * 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; - }; + /** + * Encodes the specified ImportIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse} message ImportIntentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportIntentsResponse.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) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intents[i]); + if (message.conflictingResources != null && Object.hasOwnProperty.call(message, "conflictingResources")) + $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.encode(message.conflictingResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * 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()); - }; + /** + * Encodes the specified ImportIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse} message ImportIntentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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; + /** + * Decodes an ImportIntentsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @static + * @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.ImportIntentsResponse} ImportIntentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportIntentsResponse.decode = function decode(reader, length) { + 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.ImportIntentsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push(reader.string()); + break; } - } - 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]); + case 2: { + message.conflictingResources = $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.decode(reader, reader.uint32()); + break; } + default: + reader.skipType(tag & 7); + break; } - 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); - }; - - /** - * Gets the default type url for TrainingPhrase - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TrainingPhrase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase"; - }; - - 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; - }; - - /** - * 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()); - }; - - /** - * 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; - }; - - /** - * 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; - }; + } + 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 an ImportIntentsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse} ImportIntentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportIntentsResponse.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 an ImportIntentsResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImportIntentsResponse.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) + if (!$util.isString(message.intents[i])) + return "intents: string[] expected"; + } + if (message.conflictingResources != null && message.hasOwnProperty("conflictingResources")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.verify(message.conflictingResources); + if (error) + return "conflictingResources." + error; + } + return null; + }; - /** - * Gets the default type url for Part - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Part.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part"; - }; + /** + * Creates an ImportIntentsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse} ImportIntentsResponse + */ + ImportIntentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) + message.intents[i] = String(object.intents[i]); + } + if (object.conflictingResources != null) { + if (typeof object.conflictingResources !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.conflictingResources: object expected"); + message.conflictingResources = $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.fromObject(object.conflictingResources); + } + return message; + }; - return Part; - })(); + /** + * Creates a plain object from an ImportIntentsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse} message ImportIntentsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImportIntentsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.intents = []; + if (options.defaults) + object.conflictingResources = null; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = message.intents[j]; + } + if (message.conflictingResources != null && message.hasOwnProperty("conflictingResources")) + object.conflictingResources = $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.toObject(message.conflictingResources, options); + return object; + }; - return TrainingPhrase; - })(); + /** + * Converts this ImportIntentsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @instance + * @returns {Object.} JSON object + */ + ImportIntentsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - Intent.Parameter = (function() { + /** + * Gets the default type url for ImportIntentsResponse + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImportIntentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse"; + }; - /** - * 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 + ImportIntentsResponse.ConflictingResources = (function() { + + /** + * Properties of a ConflictingResources. + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @interface IConflictingResources + * @property {Array.|null} [intentDisplayNames] ConflictingResources intentDisplayNames + * @property {Array.|null} [entityDisplayNames] ConflictingResources entityDisplayNames */ /** - * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @classdesc Represents a Parameter. - * @implements IParameter + * Constructs a new ConflictingResources. + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse + * @classdesc Represents a ConflictingResources. + * @implements IConflictingResources * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources=} [properties] Properties to set */ - function Parameter(properties) { + function ConflictingResources(properties) { + this.intentDisplayNames = []; + this.entityDisplayNames = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124184,117 +129886,95 @@ } /** - * Parameter id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.id = ""; - - /** - * Parameter entityType. - * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.entityType = ""; - - /** - * Parameter isList. - * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * ConflictingResources intentDisplayNames. + * @member {Array.} intentDisplayNames + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @instance */ - Parameter.prototype.isList = false; + ConflictingResources.prototype.intentDisplayNames = $util.emptyArray; /** - * Parameter redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * ConflictingResources entityDisplayNames. + * @member {Array.} entityDisplayNames + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @instance */ - Parameter.prototype.redact = false; + ConflictingResources.prototype.entityDisplayNames = $util.emptyArray; /** - * Creates a new Parameter instance using the specified properties. + * Creates a new ConflictingResources instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter instance + * @param {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources} ConflictingResources instance */ - Parameter.create = function create(properties) { - return new Parameter(properties); + ConflictingResources.create = function create(properties) { + return new ConflictingResources(properties); }; /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * Encodes the specified ConflictingResources message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources} message ConflictingResources message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Parameter.encode = function encode(message, writer) { + ConflictingResources.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); + if (message.intentDisplayNames != null && message.intentDisplayNames.length) + for (var i = 0; i < message.intentDisplayNames.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intentDisplayNames[i]); + if (message.entityDisplayNames != null && message.entityDisplayNames.length) + for (var i = 0; i < message.entityDisplayNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityDisplayNames[i]); return writer; }; /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * Encodes the specified ConflictingResources message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.IConflictingResources} message ConflictingResources message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Parameter.encodeDelimited = function encodeDelimited(message, writer) { + ConflictingResources.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Parameter message from the specified reader or buffer. + * Decodes a ConflictingResources message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources} ConflictingResources * @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) { + ConflictingResources.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.string(); + if (!(message.intentDisplayNames && message.intentDisplayNames.length)) + message.intentDisplayNames = []; + message.intentDisplayNames.push(reader.string()); break; } case 2: { - message.entityType = reader.string(); - break; - } - case 3: { - message.isList = reader.bool(); - break; - } - case 4: { - message.redact = reader.bool(); + if (!(message.entityDisplayNames && message.entityDisplayNames.length)) + message.entityDisplayNames = []; + message.entityDisplayNames.push(reader.string()); break; } default: @@ -124306,154 +129986,157 @@ }; /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. + * Decodes a ConflictingResources message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources} ConflictingResources * @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) { + ConflictingResources.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Parameter message. + * Verifies a ConflictingResources message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @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) { + ConflictingResources.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"; + if (message.intentDisplayNames != null && message.hasOwnProperty("intentDisplayNames")) { + if (!Array.isArray(message.intentDisplayNames)) + return "intentDisplayNames: array expected"; + for (var i = 0; i < message.intentDisplayNames.length; ++i) + if (!$util.isString(message.intentDisplayNames[i])) + return "intentDisplayNames: string[] expected"; + } + if (message.entityDisplayNames != null && message.hasOwnProperty("entityDisplayNames")) { + if (!Array.isArray(message.entityDisplayNames)) + return "entityDisplayNames: array expected"; + for (var i = 0; i < message.entityDisplayNames.length; ++i) + if (!$util.isString(message.entityDisplayNames[i])) + return "entityDisplayNames: string[] expected"; + } return null; }; /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * Creates a ConflictingResources message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources} ConflictingResources */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter) + ConflictingResources.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources) 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); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources(); + if (object.intentDisplayNames) { + if (!Array.isArray(object.intentDisplayNames)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.intentDisplayNames: array expected"); + message.intentDisplayNames = []; + for (var i = 0; i < object.intentDisplayNames.length; ++i) + message.intentDisplayNames[i] = String(object.intentDisplayNames[i]); + } + if (object.entityDisplayNames) { + if (!Array.isArray(object.entityDisplayNames)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources.entityDisplayNames: array expected"); + message.entityDisplayNames = []; + for (var i = 0; i < object.entityDisplayNames.length; ++i) + message.entityDisplayNames[i] = String(object.entityDisplayNames[i]); + } return message; }; /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * Creates a plain object from a ConflictingResources message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} message Parameter + * @param {google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources} message ConflictingResources * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Parameter.toObject = function toObject(message, options) { + ConflictingResources.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.id = ""; - object.entityType = ""; - object.isList = false; - object.redact = false; + if (options.arrays || options.defaults) { + object.intentDisplayNames = []; + object.entityDisplayNames = []; + } + if (message.intentDisplayNames && message.intentDisplayNames.length) { + object.intentDisplayNames = []; + for (var j = 0; j < message.intentDisplayNames.length; ++j) + object.intentDisplayNames[j] = message.intentDisplayNames[j]; + } + if (message.entityDisplayNames && message.entityDisplayNames.length) { + object.entityDisplayNames = []; + for (var j = 0; j < message.entityDisplayNames.length; ++j) + object.entityDisplayNames[j] = message.entityDisplayNames[j]; } - 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; }; /** - * Converts this Parameter to JSON. + * Converts this ConflictingResources to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @instance * @returns {Object.} JSON object */ - Parameter.prototype.toJSON = function toJSON() { + ConflictingResources.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Parameter + * Gets the default type url for ConflictingResources * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConflictingResources.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Intent.Parameter"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse.ConflictingResources"; }; - return Parameter; + return ConflictingResources; })(); - return Intent; + return ImportIntentsResponse; })(); - v3beta1.ListIntentsRequest = (function() { + v3beta1.ImportIntentsMetadata = (function() { /** - * Properties of a ListIntentsRequest. + * Properties of an ImportIntentsMetadata. * @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 IImportIntentsMetadata */ /** - * Constructs a new ListIntentsRequest. + * Constructs a new ImportIntentsMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListIntentsRequest. - * @implements IListIntentsRequest + * @classdesc Represents an ImportIntentsMetadata. + * @implements IImportIntentsMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata=} [properties] Properties to set */ - function ListIntentsRequest(properties) { + function ImportIntentsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124461,133 +130144,63 @@ } /** - * ListIntentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.parent = ""; - - /** - * ListIntentsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.languageCode = ""; - - /** - * ListIntentsRequest intentView. - * @member {google.cloud.dialogflow.cx.v3beta1.IntentView} intentView - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.intentView = 0; - - /** - * ListIntentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.pageSize = 0; - - /** - * ListIntentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance - */ - ListIntentsRequest.prototype.pageToken = ""; - - /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new ImportIntentsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata * @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.IImportIntentsMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata} ImportIntentsMetadata instance */ - ListIntentsRequest.create = function create(properties) { - return new ListIntentsRequest(properties); + ImportIntentsMetadata.create = function create(properties) { + return new ImportIntentsMetadata(properties); }; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * Encodes the specified ImportIntentsMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata} message ImportIntentsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encode = function encode(message, writer) { + ImportIntentsMetadata.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 ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * Encodes the specified ImportIntentsMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata} message ImportIntentsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportIntentsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes an ImportIntentsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata * @static * @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.ImportIntentsMetadata} ImportIntentsMetadata * @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) { + ImportIntentsMetadata.decode = function decode(reader, length) { 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.ImportIntentsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - 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(); - break; - } default: reader.skipType(tag & 7); break; @@ -124597,180 +130210,113 @@ }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportIntentsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata * @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.ImportIntentsMetadata} ImportIntentsMetadata * @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) { + ImportIntentsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsRequest message. + * Verifies an ImportIntentsMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata * @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) { + ImportIntentsMetadata.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"; return null; }; /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportIntentsMetadata 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.ImportIntentsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata} ImportIntentsMetadata */ - ListIntentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest) + ImportIntentsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata) 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) { - default: - if (typeof object.intentView === "number") { - message.intentView = object.intentView; - break; - } - break; - 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; + return new $root.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata(); }; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportIntentsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} message ListIntentsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata} message ImportIntentsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsRequest.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; - } - 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] === undefined ? message.intentView : $root.google.cloud.dialogflow.cx.v3beta1.IntentView[message.intentView] : message.intentView; - return object; + ImportIntentsMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this ImportIntentsMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata * @instance * @returns {Object.} JSON object */ - ListIntentsRequest.prototype.toJSON = function toJSON() { + ImportIntentsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIntentsRequest + * Gets the default type url for ImportIntentsMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIntentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportIntentsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata"; }; - return ListIntentsRequest; + return ImportIntentsMetadata; })(); - v3beta1.ListIntentsResponse = (function() { + v3beta1.ExportIntentsRequest = (function() { /** - * Properties of a ListIntentsResponse. + * Properties of an ExportIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListIntentsResponse - * @property {Array.|null} [intents] ListIntentsResponse intents - * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken + * @interface IExportIntentsRequest + * @property {string|null} [parent] ExportIntentsRequest parent + * @property {Array.|null} [intents] ExportIntentsRequest intents + * @property {string|null} [intentsUri] ExportIntentsRequest intentsUri + * @property {boolean|null} [intentsContentInline] ExportIntentsRequest intentsContentInline + * @property {google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat|null} [dataFormat] ExportIntentsRequest dataFormat */ /** - * Constructs a new ListIntentsResponse. + * Constructs a new ExportIntentsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListIntentsResponse. - * @implements IListIntentsResponse + * @classdesc Represents an ExportIntentsRequest. + * @implements IExportIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest=} [properties] Properties to set */ - function ListIntentsResponse(properties) { + function ExportIntentsRequest(properties) { this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -124779,92 +130325,148 @@ } /** - * ListIntentsResponse intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * ExportIntentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @instance */ - ListIntentsResponse.prototype.intents = $util.emptyArray; + ExportIntentsRequest.prototype.parent = ""; /** - * ListIntentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * ExportIntentsRequest intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @instance */ - ListIntentsResponse.prototype.nextPageToken = ""; + ExportIntentsRequest.prototype.intents = $util.emptyArray; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * ExportIntentsRequest intentsUri. + * @member {string|null|undefined} intentsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest + * @instance + */ + ExportIntentsRequest.prototype.intentsUri = null; + + /** + * ExportIntentsRequest intentsContentInline. + * @member {boolean|null|undefined} intentsContentInline + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest + * @instance + */ + ExportIntentsRequest.prototype.intentsContentInline = null; + + /** + * ExportIntentsRequest dataFormat. + * @member {google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat} dataFormat + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest + * @instance + */ + ExportIntentsRequest.prototype.dataFormat = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExportIntentsRequest destination. + * @member {"intentsUri"|"intentsContentInline"|undefined} destination + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest + * @instance + */ + Object.defineProperty(ExportIntentsRequest.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["intentsUri", "intentsContentInline"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExportIntentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @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.IExportIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest} ExportIntentsRequest instance */ - ListIntentsResponse.create = function create(properties) { - return new ListIntentsResponse(properties); + ExportIntentsRequest.create = function create(properties) { + return new ExportIntentsRequest(properties); }; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * Encodes the specified ExportIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest} message ExportIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encode = function encode(message, writer) { + ExportIntentsRequest.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.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); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.intents[i]); + if (message.intentsUri != null && Object.hasOwnProperty.call(message, "intentsUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.intentsUri); + if (message.intentsContentInline != null && Object.hasOwnProperty.call(message, "intentsContentInline")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.intentsContentInline); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.dataFormat); 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 ExportIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest} message ExportIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes an ExportIntentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @static * @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.ExportIntentsRequest} ExportIntentsRequest * @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) { + ExportIntentsRequest.decode = function decode(reader, length) { 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.ExportIntentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { + message.parent = reader.string(); + break; + } + case 2: { if (!(message.intents && message.intents.length)) message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32())); + message.intents.push(reader.string()); break; } - case 2: { - message.nextPageToken = reader.string(); + case 3: { + message.intentsUri = reader.string(); + break; + } + case 4: { + message.intentsContentInline = reader.bool(); + break; + } + case 5: { + message.dataFormat = reader.int32(); break; } default: @@ -124876,149 +130478,227 @@ }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @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.ExportIntentsRequest} ExportIntentsRequest * @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) { + ExportIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsResponse message. + * Verifies an ExportIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @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) { + ExportIntentsRequest.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.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; - } + for (var i = 0; i < message.intents.length; ++i) + if (!$util.isString(message.intents[i])) + return "intents: string[] expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + properties.destination = 1; + if (!$util.isString(message.intentsUri)) + return "intentsUri: string expected"; + } + if (message.intentsContentInline != null && message.hasOwnProperty("intentsContentInline")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + if (typeof message.intentsContentInline !== "boolean") + return "intentsContentInline: boolean expected"; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { + default: + return "dataFormat: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return null; }; /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportIntentsRequest 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.ExportIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest} ExportIntentsRequest */ - ListIntentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) + ExportIntentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); if (object.intents) { if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.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]); + for (var i = 0; i < object.intents.length; ++i) + message.intents[i] = String(object.intents[i]); + } + if (object.intentsUri != null) + message.intentsUri = String(object.intentsUri); + if (object.intentsContentInline != null) + message.intentsContentInline = Boolean(object.intentsContentInline); + switch (object.dataFormat) { + default: + if (typeof object.dataFormat === "number") { + message.dataFormat = object.dataFormat; + break; } + break; + 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; + case "CSV": + case 3: + message.dataFormat = 3; + break; } - 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 ExportIntentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} message ListIntentsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest} message ExportIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsResponse.toObject = function toObject(message, options) { + ExportIntentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) object.intents = []; - if (options.defaults) - object.nextPageToken = ""; + if (options.defaults) { + object.parent = ""; + object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; 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); + object.intents[j] = message.intents[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + object.intentsUri = message.intentsUri; + if (options.oneofs) + object.destination = "intentsUri"; + } + if (message.intentsContentInline != null && message.hasOwnProperty("intentsContentInline")) { + object.intentsContentInline = message.intentsContentInline; + if (options.oneofs) + object.destination = "intentsContentInline"; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat[message.dataFormat] === undefined ? message.dataFormat : $root.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat[message.dataFormat] : message.dataFormat; return object; }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this ExportIntentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @instance * @returns {Object.} JSON object */ - ListIntentsResponse.prototype.toJSON = function toJSON() { + ExportIntentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIntentsResponse + * Gets the default type url for ExportIntentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIntentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportIntentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest"; }; - return ListIntentsResponse; + /** + * DataFormat enum. + * @name google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.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 + * @property {number} CSV=3 CSV value + */ + ExportIntentsRequest.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; + values[valuesById[3] = "CSV"] = 3; + return values; + })(); + + return ExportIntentsRequest; })(); - v3beta1.GetIntentRequest = (function() { + v3beta1.ExportIntentsResponse = (function() { /** - * Properties of a GetIntentRequest. + * Properties of an ExportIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetIntentRequest - * @property {string|null} [name] GetIntentRequest name - * @property {string|null} [languageCode] GetIntentRequest languageCode + * @interface IExportIntentsResponse + * @property {string|null} [intentsUri] ExportIntentsResponse intentsUri + * @property {google.cloud.dialogflow.cx.v3beta1.IInlineDestination|null} [intentsContent] ExportIntentsResponse intentsContent */ /** - * Constructs a new GetIntentRequest. + * Constructs a new ExportIntentsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetIntentRequest. - * @implements IGetIntentRequest + * @classdesc Represents an ExportIntentsResponse. + * @implements IExportIntentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse=} [properties] Properties to set */ - function GetIntentRequest(properties) { + function ExportIntentsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125026,89 +130706,103 @@ } /** - * GetIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * ExportIntentsResponse intentsUri. + * @member {string|null|undefined} intentsUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @instance */ - GetIntentRequest.prototype.name = ""; + ExportIntentsResponse.prototype.intentsUri = null; /** - * GetIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * ExportIntentsResponse intentsContent. + * @member {google.cloud.dialogflow.cx.v3beta1.IInlineDestination|null|undefined} intentsContent + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @instance */ - GetIntentRequest.prototype.languageCode = ""; + ExportIntentsResponse.prototype.intentsContent = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new GetIntentRequest instance using the specified properties. + * ExportIntentsResponse intents. + * @member {"intentsUri"|"intentsContent"|undefined} intents + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse + * @instance + */ + Object.defineProperty(ExportIntentsResponse.prototype, "intents", { + get: $util.oneOfGetter($oneOfFields = ["intentsUri", "intentsContent"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExportIntentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @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.IExportIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse} ExportIntentsResponse instance */ - GetIntentRequest.create = function create(properties) { - return new GetIntentRequest(properties); + ExportIntentsResponse.create = function create(properties) { + return new ExportIntentsResponse(properties); }; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * Encodes the specified ExportIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse} message ExportIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encode = function encode(message, writer) { + ExportIntentsResponse.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.intentsUri != null && Object.hasOwnProperty.call(message, "intentsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intentsUri); + if (message.intentsContent != null && Object.hasOwnProperty.call(message, "intentsContent")) + $root.google.cloud.dialogflow.cx.v3beta1.InlineDestination.encode(message.intentsContent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); 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 ExportIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse} message ExportIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes an ExportIntentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @static * @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.ExportIntentsResponse} ExportIntentsResponse * @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) { + ExportIntentsResponse.decode = function decode(reader, length) { 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.ExportIntentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.intentsUri = reader.string(); break; } case 2: { - message.languageCode = reader.string(); + message.intentsContent = $root.google.cloud.dialogflow.cx.v3beta1.InlineDestination.decode(reader, reader.uint32()); break; } default: @@ -125120,133 +130814,145 @@ }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @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.ExportIntentsResponse} ExportIntentsResponse * @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) { + ExportIntentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIntentRequest message. + * Verifies an ExportIntentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @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) { + ExportIntentsResponse.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"; + var properties = {}; + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + properties.intents = 1; + if (!$util.isString(message.intentsUri)) + return "intentsUri: string expected"; + } + if (message.intentsContent != null && message.hasOwnProperty("intentsContent")) { + if (properties.intents === 1) + return "intents: multiple values"; + properties.intents = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.InlineDestination.verify(message.intentsContent); + if (error) + return "intentsContent." + error; + } + } return null; }; /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportIntentsResponse 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.ExportIntentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse} ExportIntentsResponse */ - GetIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest) + ExportIntentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse) 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); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse(); + if (object.intentsUri != null) + message.intentsUri = String(object.intentsUri); + if (object.intentsContent != null) { + if (typeof object.intentsContent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse.intentsContent: object expected"); + message.intentsContent = $root.google.cloud.dialogflow.cx.v3beta1.InlineDestination.fromObject(object.intentsContent); + } return message; }; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportIntentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} message GetIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse} message ExportIntentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIntentRequest.toObject = function toObject(message, options) { + ExportIntentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.languageCode = ""; + if (message.intentsUri != null && message.hasOwnProperty("intentsUri")) { + object.intentsUri = message.intentsUri; + if (options.oneofs) + object.intents = "intentsUri"; + } + if (message.intentsContent != null && message.hasOwnProperty("intentsContent")) { + object.intentsContent = $root.google.cloud.dialogflow.cx.v3beta1.InlineDestination.toObject(message.intentsContent, options); + if (options.oneofs) + object.intents = "intentsContent"; } - 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 ExportIntentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @instance * @returns {Object.} JSON object */ - GetIntentRequest.prototype.toJSON = function toJSON() { + ExportIntentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIntentRequest + * Gets the default type url for ExportIntentsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportIntentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetIntentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse"; }; - return GetIntentRequest; + return ExportIntentsResponse; })(); - v3beta1.CreateIntentRequest = (function() { + v3beta1.ExportIntentsMetadata = (function() { /** - * Properties of a CreateIntentRequest. + * Properties of an ExportIntentsMetadata. * @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 IExportIntentsMetadata */ /** - * Constructs a new CreateIntentRequest. + * Constructs a new ExportIntentsMetadata. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateIntentRequest. - * @implements ICreateIntentRequest + * @classdesc Represents an ExportIntentsMetadata. + * @implements IExportIntentsMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata=} [properties] Properties to set */ - function CreateIntentRequest(properties) { + function ExportIntentsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125254,105 +130960,63 @@ } /** - * CreateIntentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest - * @instance - */ - CreateIntentRequest.prototype.parent = ""; - - /** - * CreateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest - * @instance - */ - CreateIntentRequest.prototype.intent = null; - - /** - * CreateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest - * @instance - */ - CreateIntentRequest.prototype.languageCode = ""; - - /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new ExportIntentsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata * @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.IExportIntentsMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata} ExportIntentsMetadata instance */ - CreateIntentRequest.create = function create(properties) { - return new CreateIntentRequest(properties); + ExportIntentsMetadata.create = function create(properties) { + return new ExportIntentsMetadata(properties); }; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * Encodes the specified ExportIntentsMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata} message ExportIntentsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encode = function encode(message, writer) { + ExportIntentsMetadata.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); 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 ExportIntentsMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata} message ExportIntentsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportIntentsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes an ExportIntentsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata * @static * @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.ExportIntentsMetadata} ExportIntentsMetadata * @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) { + ExportIntentsMetadata.decode = function decode(reader, length) { 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.ExportIntentsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - } - case 3: { - message.languageCode = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -125362,146 +131026,109 @@ }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportIntentsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata * @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.ExportIntentsMetadata} ExportIntentsMetadata * @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) { + ExportIntentsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIntentRequest message. + * Verifies an ExportIntentsMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata * @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) { + ExportIntentsMetadata.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.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 an ExportIntentsMetadata 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.ExportIntentsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata} ExportIntentsMetadata */ - CreateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest) + ExportIntentsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata) return object; - 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; + return new $root.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata(); }; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportIntentsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} message CreateIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata} message ExportIntentsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIntentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.intent = null; - object.languageCode = ""; - } - 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; + ExportIntentsMetadata.toObject = function toObject() { + return {}; }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this ExportIntentsMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata * @instance * @returns {Object.} JSON object */ - CreateIntentRequest.prototype.toJSON = function toJSON() { + ExportIntentsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateIntentRequest + * Gets the default type url for ExportIntentsMetadata * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportIntentsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata"; }; - return CreateIntentRequest; + return ExportIntentsMetadata; })(); - v3beta1.UpdateIntentRequest = (function() { + v3beta1.InlineDestination = (function() { /** - * Properties of an UpdateIntentRequest. + * Properties of an InlineDestination. * @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 IInlineDestination + * @property {Uint8Array|null} [content] InlineDestination content */ /** - * Constructs a new UpdateIntentRequest. + * Constructs a new InlineDestination. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateIntentRequest. - * @implements IUpdateIntentRequest + * @classdesc Represents an InlineDestination. + * @implements IInlineDestination * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IInlineDestination=} [properties] Properties to set */ - function UpdateIntentRequest(properties) { + function InlineDestination(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125509,103 +131136,75 @@ } /** - * 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 + * InlineDestination content. + * @member {Uint8Array} content + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @instance */ - UpdateIntentRequest.prototype.updateMask = null; + InlineDestination.prototype.content = $util.newBuffer([]); /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new InlineDestination instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @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.IInlineDestination=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.InlineDestination} InlineDestination instance */ - UpdateIntentRequest.create = function create(properties) { - return new UpdateIntentRequest(properties); + InlineDestination.create = function create(properties) { + return new InlineDestination(properties); }; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified InlineDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InlineDestination.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IInlineDestination} message InlineDestination message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encode = function encode(message, writer) { + InlineDestination.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.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.content); 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 InlineDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InlineDestination.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IInlineDestination} message InlineDestination message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + InlineDestination.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes an InlineDestination message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @static * @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.InlineDestination} InlineDestination * @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) { + InlineDestination.decode = function decode(reader, length) { 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.InlineDestination(); 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()); + message.content = reader.bytes(); break; } default: @@ -125617,149 +131216,131 @@ }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an InlineDestination message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @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.InlineDestination} InlineDestination * @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) { + InlineDestination.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIntentRequest message. + * Verifies an InlineDestination message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @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) { + InlineDestination.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.content != null && message.hasOwnProperty("content")) + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; return null; }; /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InlineDestination 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.InlineDestination * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.InlineDestination} InlineDestination */ - UpdateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest) + InlineDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.InlineDestination) 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.InlineDestination(); + 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 >= 0) + message.content = object.content; return message; }; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from an InlineDestination message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} message UpdateIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.InlineDestination} message InlineDestination * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIntentRequest.toObject = function toObject(message, options) { + InlineDestination.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.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); + if (options.defaults) + if (options.bytes === String) + object.content = ""; + else { + object.content = []; + if (options.bytes !== Array) + object.content = $util.newBuffer(object.content); + } + 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; return object; }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this InlineDestination to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @instance * @returns {Object.} JSON object */ - UpdateIntentRequest.prototype.toJSON = function toJSON() { + InlineDestination.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateIntentRequest + * Gets the default type url for InlineDestination * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineDestination * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InlineDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.InlineDestination"; }; - return UpdateIntentRequest; + return InlineDestination; })(); - v3beta1.DeleteIntentRequest = (function() { + v3beta1.InlineSource = (function() { /** - * Properties of a DeleteIntentRequest. + * Properties of an InlineSource. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteIntentRequest - * @property {string|null} [name] DeleteIntentRequest name + * @interface IInlineSource + * @property {Uint8Array|null} [content] InlineSource content */ /** - * Constructs a new DeleteIntentRequest. + * Constructs a new InlineSource. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteIntentRequest. - * @implements IDeleteIntentRequest + * @classdesc Represents an InlineSource. + * @implements IInlineSource * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IInlineSource=} [properties] Properties to set */ - function DeleteIntentRequest(properties) { + function InlineSource(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125767,75 +131348,75 @@ } /** - * DeleteIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * InlineSource content. + * @member {Uint8Array} content + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @instance */ - DeleteIntentRequest.prototype.name = ""; + InlineSource.prototype.content = $util.newBuffer([]); /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * Creates a new InlineSource instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @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.IInlineSource=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.InlineSource} InlineSource instance */ - DeleteIntentRequest.create = function create(properties) { - return new DeleteIntentRequest(properties); + InlineSource.create = function create(properties) { + return new InlineSource(properties); }; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * Encodes the specified InlineSource message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InlineSource.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IInlineSource} message InlineSource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encode = function encode(message, writer) { + InlineSource.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.content != null && Object.hasOwnProperty.call(message, "content")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.content); 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 InlineSource message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InlineSource.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IInlineSource} message InlineSource message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + InlineSource.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes an InlineSource message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @static * @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.InlineSource} InlineSource * @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) { + InlineSource.decode = function decode(reader, length) { 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.InlineSource(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.content = reader.bytes(); break; } default: @@ -125847,118 +131428,111 @@ }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes an InlineSource message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @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.InlineSource} InlineSource * @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) { + InlineSource.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIntentRequest message. + * Verifies an InlineSource message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @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) { + InlineSource.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.content != null && message.hasOwnProperty("content")) + if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) + return "content: buffer expected"; return null; }; /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates an InlineSource 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.InlineSource * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.InlineSource} InlineSource */ - DeleteIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest) + InlineSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.InlineSource) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.InlineSource(); + 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 >= 0) + message.content = object.content; return message; }; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from an InlineSource message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} message DeleteIntentRequest + * @param {google.cloud.dialogflow.cx.v3beta1.InlineSource} message InlineSource * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIntentRequest.toObject = function toObject(message, options) { + InlineSource.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.bytes === String) + object.content = ""; + else { + object.content = []; + if (options.bytes !== Array) + object.content = $util.newBuffer(object.content); + } + 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; return object; }; /** - * Converts this DeleteIntentRequest to JSON. + * Converts this InlineSource to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @instance * @returns {Object.} JSON object */ - DeleteIntentRequest.prototype.toJSON = function toJSON() { + InlineSource.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteIntentRequest + * Gets the default type url for InlineSource * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.InlineSource * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteIntentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InlineSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.InlineSource"; }; - 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; + return InlineSource; })(); v3beta1.Sessions = (function() { @@ -129532,6 +135106,7 @@ * @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 + * @property {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null} [advancedSettings] QueryResult advancedSettings */ /** @@ -129680,6 +135255,14 @@ */ QueryResult.prototype.sentimentAnalysisResult = null; + /** + * QueryResult advancedSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null|undefined} advancedSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @instance + */ + QueryResult.prototype.advancedSettings = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -129751,6 +135334,8 @@ $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.advancedSettings != null && Object.hasOwnProperty.call(message, "advancedSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.encode(message.dtmf, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); return writer; @@ -129857,6 +135442,10 @@ message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.decode(reader, reader.uint32()); break; } + case 21: { + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -129992,6 +135581,11 @@ if (error) return "sentimentAnalysisResult." + error; } + if (message.advancedSettings != null && message.hasOwnProperty("advancedSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.verify(message.advancedSettings); + if (error) + return "advancedSettings." + error; + } return null; }; @@ -130084,6 +135678,11 @@ throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.sentimentAnalysisResult: object expected"); message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); } + if (object.advancedSettings != null) { + if (typeof object.advancedSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.advancedSettings: object expected"); + message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.fromObject(object.advancedSettings); + } return message; }; @@ -130114,6 +135713,7 @@ object.diagnosticInfo = null; object.match = null; object.sentimentAnalysisResult = null; + object.advancedSettings = null; } if (message.text != null && message.hasOwnProperty("text")) { object.text = message.text; @@ -130166,6 +135766,8 @@ 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.advancedSettings != null && message.hasOwnProperty("advancedSettings")) + object.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.toObject(message.advancedSettings, options); if (message.dtmf != null && message.hasOwnProperty("dtmf")) { object.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.toObject(message.dtmf, options); if (options.oneofs) diff --git a/packages/google-cloud-dialogflow-cx/protos/protos.json b/packages/google-cloud-dialogflow-cx/protos/protos.json index 309c7c619c7..3debb6dfcce 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.json +++ b/packages/google-cloud-dialogflow-cx/protos/protos.json @@ -28,12 +28,32 @@ "type": "GcsDestination", "id": 2 }, + "dtmfSettings": { + "type": "DtmfSettings", + "id": 5 + }, "loggingSettings": { "type": "LoggingSettings", "id": 6 } }, "nested": { + "DtmfSettings": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + }, + "maxDigits": { + "type": "int32", + "id": 2 + }, + "finishDigit": { + "type": "string", + "id": 3 + } + } + }, "LoggingSettings": { "fields": { "enableStackdriverLogging": { @@ -1221,6 +1241,10 @@ "type": "NluSettings", "id": 11 }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 14 + }, "knowledgeConnectorSettings": { "type": "KnowledgeConnectorSettings", "id": 18, @@ -1677,6 +1701,10 @@ "type": "EventHandler", "id": 10 }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 13 + }, "knowledgeConnectorSettings": { "type": "KnowledgeConnectorSettings", "id": 18, @@ -1734,6 +1762,10 @@ "redact": { "type": "bool", "id": 11 + }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 12 } }, "nested": { @@ -2060,6 +2092,14 @@ "rule": "repeated", "type": "ConditionalCases", "id": 5 + }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 7 + }, + "enableGenerativeFallback": { + "type": "bool", + "id": 12 } }, "nested": { @@ -4825,6 +4865,54 @@ "(google.api.method_signature)": "name" } ] + }, + "ImportIntents": { + "requestType": "ImportIntentsRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/intents:import", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "ImportIntentsResponse", + "(google.longrunning.operation_info).metadata_type": "ImportIntentsMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{parent=projects/*/locations/*/agents/*}/intents:import", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ImportIntentsResponse", + "metadata_type": "ImportIntentsMetadata" + } + } + ] + }, + "ExportIntents": { + "requestType": "ExportIntentsRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/intents:export", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "ExportIntentsResponse", + "(google.longrunning.operation_info).metadata_type": "ExportIntentsMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{parent=projects/*/locations/*/agents/*}/intents:export", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ExportIntentsResponse", + "metadata_type": "ExportIntentsMetadata" + } + } + ] } } }, @@ -5058,6 +5146,192 @@ "INTENT_VIEW_FULL": 2 } }, + "ImportIntentsRequest": { + "oneofs": { + "intents": { + "oneof": [ + "intentsUri", + "intentsContent" + ] + } + }, + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Intent" + } + }, + "intentsUri": { + "type": "string", + "id": 2 + }, + "intentsContent": { + "type": "InlineSource", + "id": 3 + }, + "mergeOption": { + "type": "MergeOption", + "id": 4 + } + }, + "nested": { + "MergeOption": { + "valuesOptions": { + "REJECT": { + "deprecated": true + } + }, + "values": { + "MERGE_OPTION_UNSPECIFIED": 0, + "REJECT": 1, + "REPLACE": 2, + "MERGE": 3, + "RENAME": 4, + "REPORT_CONFLICT": 5, + "KEEP": 6 + } + } + } + }, + "ImportIntentsResponse": { + "fields": { + "intents": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + } + }, + "conflictingResources": { + "type": "ConflictingResources", + "id": 2 + } + }, + "nested": { + "ConflictingResources": { + "fields": { + "intentDisplayNames": { + "rule": "repeated", + "type": "string", + "id": 1 + }, + "entityDisplayNames": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + } + } + }, + "ImportIntentsMetadata": { + "fields": {} + }, + "ExportIntentsRequest": { + "oneofs": { + "destination": { + "oneof": [ + "intentsUri", + "intentsContentInline" + ] + } + }, + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Intent" + } + }, + "intents": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "intentsUri": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "intentsContentInline": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "dataFormat": { + "type": "DataFormat", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "DataFormat": { + "values": { + "DATA_FORMAT_UNSPECIFIED": 0, + "BLOB": 1, + "JSON": 2, + "CSV": 3 + } + } + } + }, + "ExportIntentsResponse": { + "oneofs": { + "intents": { + "oneof": [ + "intentsUri", + "intentsContent" + ] + } + }, + "fields": { + "intentsUri": { + "type": "string", + "id": 1 + }, + "intentsContent": { + "type": "InlineDestination", + "id": 2 + } + } + }, + "ExportIntentsMetadata": { + "fields": {} + }, + "InlineDestination": { + "fields": { + "content": { + "type": "bytes", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "InlineSource": { + "fields": { + "content": { + "type": "bytes", + "id": 1 + } + } + }, "Sessions": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", @@ -5580,6 +5854,10 @@ "sentimentAnalysisResult": { "type": "SentimentAnalysisResult", "id": 17 + }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 21 } } }, @@ -8236,12 +8514,32 @@ "type": "GcsDestination", "id": 2 }, + "dtmfSettings": { + "type": "DtmfSettings", + "id": 5 + }, "loggingSettings": { "type": "LoggingSettings", "id": 6 } }, "nested": { + "DtmfSettings": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + }, + "maxDigits": { + "type": "int32", + "id": 2 + }, + "finishDigit": { + "type": "string", + "id": 3 + } + } + }, "LoggingSettings": { "fields": { "enableStackdriverLogging": { @@ -9429,6 +9727,10 @@ "type": "NluSettings", "id": 11 }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 14 + }, "knowledgeConnectorSettings": { "type": "KnowledgeConnectorSettings", "id": 18, @@ -9885,6 +10187,10 @@ "type": "EventHandler", "id": 10 }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 13 + }, "knowledgeConnectorSettings": { "type": "KnowledgeConnectorSettings", "id": 18, @@ -9942,6 +10248,10 @@ "redact": { "type": "bool", "id": 11 + }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 12 } }, "nested": { @@ -10268,6 +10578,14 @@ "rule": "repeated", "type": "ConditionalCases", "id": 5 + }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 7 + }, + "enableGenerativeFallback": { + "type": "bool", + "id": 12 } }, "nested": { @@ -13021,6 +13339,54 @@ "(google.api.method_signature)": "name" } ] + }, + "ImportIntents": { + "requestType": "ImportIntentsRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents:import", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "ImportIntentsResponse", + "(google.longrunning.operation_info).metadata_type": "ImportIntentsMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents:import", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ImportIntentsResponse", + "metadata_type": "ImportIntentsMetadata" + } + } + ] + }, + "ExportIntents": { + "requestType": "ExportIntentsRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents:export", + "(google.api.http).body": "*", + "(google.longrunning.operation_info).response_type": "ExportIntentsResponse", + "(google.longrunning.operation_info).metadata_type": "ExportIntentsMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents:export", + "body": "*" + } + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ExportIntentsResponse", + "metadata_type": "ExportIntentsMetadata" + } + } + ] } } }, @@ -13254,6 +13620,192 @@ "INTENT_VIEW_FULL": 2 } }, + "ImportIntentsRequest": { + "oneofs": { + "intents": { + "oneof": [ + "intentsUri", + "intentsContent" + ] + } + }, + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Intent" + } + }, + "intentsUri": { + "type": "string", + "id": 2 + }, + "intentsContent": { + "type": "InlineSource", + "id": 3 + }, + "mergeOption": { + "type": "MergeOption", + "id": 4 + } + }, + "nested": { + "MergeOption": { + "valuesOptions": { + "REJECT": { + "deprecated": true + } + }, + "values": { + "MERGE_OPTION_UNSPECIFIED": 0, + "REJECT": 1, + "REPLACE": 2, + "MERGE": 3, + "RENAME": 4, + "REPORT_CONFLICT": 5, + "KEEP": 6 + } + } + } + }, + "ImportIntentsResponse": { + "fields": { + "intents": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + } + }, + "conflictingResources": { + "type": "ConflictingResources", + "id": 2 + } + }, + "nested": { + "ConflictingResources": { + "fields": { + "intentDisplayNames": { + "rule": "repeated", + "type": "string", + "id": 1 + }, + "entityDisplayNames": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + } + } + }, + "ImportIntentsMetadata": { + "fields": {} + }, + "ExportIntentsRequest": { + "oneofs": { + "destination": { + "oneof": [ + "intentsUri", + "intentsContentInline" + ] + } + }, + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Intent" + } + }, + "intents": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "intentsUri": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "intentsContentInline": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "dataFormat": { + "type": "DataFormat", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "DataFormat": { + "values": { + "DATA_FORMAT_UNSPECIFIED": 0, + "BLOB": 1, + "JSON": 2, + "CSV": 3 + } + } + } + }, + "ExportIntentsResponse": { + "oneofs": { + "intents": { + "oneof": [ + "intentsUri", + "intentsContent" + ] + } + }, + "fields": { + "intentsUri": { + "type": "string", + "id": 1 + }, + "intentsContent": { + "type": "InlineDestination", + "id": 2 + } + } + }, + "ExportIntentsMetadata": { + "fields": {} + }, + "InlineDestination": { + "fields": { + "content": { + "type": "bytes", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "InlineSource": { + "fields": { + "content": { + "type": "bytes", + "id": 1 + } + } + }, "Sessions": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", @@ -13776,6 +14328,10 @@ "sentimentAnalysisResult": { "type": "SentimentAnalysisResult", "id": 17 + }, + "advancedSettings": { + "type": "AdvancedSettings", + "id": 21 } } }, diff --git a/packages/google-cloud-dialogflow-cx/samples/README.md b/packages/google-cloud-dialogflow-cx/samples/README.md index c923258f500..5bd02282628 100644 --- a/packages/google-cloud-dialogflow-cx/samples/README.md +++ b/packages/google-cloud-dialogflow-cx/samples/README.md @@ -60,7 +60,9 @@ * [Flows.validate_flow](#flows.validate_flow) * [Intents.create_intent](#intents.create_intent) * [Intents.delete_intent](#intents.delete_intent) + * [Intents.export_intents](#intents.export_intents) * [Intents.get_intent](#intents.get_intent) + * [Intents.import_intents](#intents.import_intents) * [Intents.list_intents](#intents.list_intents) * [Intents.update_intent](#intents.update_intent) * [Pages.create_page](#pages.create_page) @@ -159,7 +161,9 @@ * [Flows.validate_flow](#flows.validate_flow) * [Intents.create_intent](#intents.create_intent) * [Intents.delete_intent](#intents.delete_intent) + * [Intents.export_intents](#intents.export_intents) * [Intents.get_intent](#intents.get_intent) + * [Intents.import_intents](#intents.import_intents) * [Intents.list_intents](#intents.list_intents) * [Intents.update_intent](#intents.update_intent) * [Pages.create_page](#pages.create_page) @@ -1043,6 +1047,23 @@ __Usage:__ +### Intents.export_intents + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.export_intents.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.export_intents.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.export_intents.js` + + +----- + + + + ### Intents.get_intent View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.get_intent.js). @@ -1060,6 +1081,23 @@ __Usage:__ +### Intents.import_intents + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.import_intents.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.import_intents.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.import_intents.js` + + +----- + + + + ### Intents.list_intents View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.list_intents.js). @@ -2726,6 +2764,23 @@ __Usage:__ +### Intents.export_intents + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.export_intents.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.export_intents.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.export_intents.js` + + +----- + + + + ### Intents.get_intent View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.get_intent.js). @@ -2743,6 +2798,23 @@ __Usage:__ +### Intents.import_intents + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.import_intents.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.import_intents.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.import_intents.js` + + +----- + + + + ### Intents.list_intents View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.list_intents.js). diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.export_intents.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.export_intents.js new file mode 100644 index 00000000000..6b02847e094 --- /dev/null +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.export_intents.js @@ -0,0 +1,92 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, intents) { + // [START dialogflow_v3_generated_Intents_ExportIntents_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent agent to export intents. + * Format: `projects//locations//agents/`. + */ + // const parent = 'abc123' + /** + * Required. The name of the intents to export. + * Format: `projects//locations//agents//intents/`. + */ + // const intents = ['abc','def'] + /** + * Optional. The Google Cloud + * Storage (https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs:///`. + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * Dialogflow access + * control (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + */ + // const intentsUri = 'abc123' + /** + * Optional. The option to return the serialized intents inline. + */ + // const intentsContentInline = true + /** + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + */ + // const dataFormat = {} + + // Imports the Cx library + const {IntentsClient} = require('@google-cloud/dialogflow-cx').v3; + + // Instantiates a client + const cxClient = new IntentsClient(); + + async function callExportIntents() { + // Construct request + const request = { + parent, + intents, + }; + + // Run request + const [operation] = await cxClient.exportIntents(request); + const [response] = await operation.promise(); + console.log(response); + } + + callExportIntents(); + // [END dialogflow_v3_generated_Intents_ExportIntents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.import_intents.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.import_intents.js new file mode 100644 index 00000000000..cb542b8545f --- /dev/null +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.import_intents.js @@ -0,0 +1,82 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START dialogflow_v3_generated_Intents_ImportIntents_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The agent to import the intents into. + * Format: `projects//locations//agents/`. + */ + // const parent = 'abc123' + /** + * The Google Cloud Storage (https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs:///`. + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * Dialogflow access + * control (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + */ + // const intentsUri = 'abc123' + /** + * Uncompressed byte content of intents. + */ + // const intentsContent = {} + /** + * Merge option for importing intents. If not specified, `REJECT` is assumed. + */ + // const mergeOption = {} + + // Imports the Cx library + const {IntentsClient} = require('@google-cloud/dialogflow-cx').v3; + + // Instantiates a client + const cxClient = new IntentsClient(); + + async function callImportIntents() { + // Construct request + const request = { + parent, + }; + + // Run request + const [operation] = await cxClient.importIntents(request); + const [response] = await operation.promise(); + console.log(response); + } + + callImportIntents(); + // [END dialogflow_v3_generated_Intents_ImportIntents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata_google.cloud.dialogflow.cx.v3.json b/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata_google.cloud.dialogflow.cx.v3.json index 2ecec154a4f..88be793447d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata_google.cloud.dialogflow.cx.v3.json +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata_google.cloud.dialogflow.cx.v3.json @@ -2331,6 +2331,114 @@ } } }, + { + "regionTag": "dialogflow_v3_generated_Intents_ImportIntents_async", + "title": "Agents importIntents Sample", + "origin": "API_DEFINITION", + "description": " Imports the specified intents into the agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3.ImportIntentsMetadata] - `response`: [ImportIntentsResponse][google.cloud.dialogflow.cx.v3.ImportIntentsResponse]", + "canonical": true, + "file": "intents.import_intents.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ImportIntents", + "fullName": "google.cloud.dialogflow.cx.v3.Intents.ImportIntents", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "intents_uri", + "type": "TYPE_STRING" + }, + { + "name": "intents_content", + "type": ".google.cloud.dialogflow.cx.v3.InlineSource" + }, + { + "name": "merge_option", + "type": ".google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "IntentsClient", + "fullName": "google.cloud.dialogflow.cx.v3.IntentsClient" + }, + "method": { + "shortName": "ImportIntents", + "fullName": "google.cloud.dialogflow.cx.v3.Intents.ImportIntents", + "service": { + "shortName": "Intents", + "fullName": "google.cloud.dialogflow.cx.v3.Intents" + } + } + } + }, + { + "regionTag": "dialogflow_v3_generated_Intents_ExportIntents_async", + "title": "Agents exportIntents Sample", + "origin": "API_DEFINITION", + "description": " Exports the selected intents. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3.ExportIntentsMetadata] - `response`: [ExportIntentsResponse][google.cloud.dialogflow.cx.v3.ExportIntentsResponse]", + "canonical": true, + "file": "intents.export_intents.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 84, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ExportIntents", + "fullName": "google.cloud.dialogflow.cx.v3.Intents.ExportIntents", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "intents", + "type": "TYPE_STRING[]" + }, + { + "name": "intents_uri", + "type": "TYPE_STRING" + }, + { + "name": "intents_content_inline", + "type": "TYPE_BOOL" + }, + { + "name": "data_format", + "type": ".google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "IntentsClient", + "fullName": "google.cloud.dialogflow.cx.v3.IntentsClient" + }, + "method": { + "shortName": "ExportIntents", + "fullName": "google.cloud.dialogflow.cx.v3.Intents.ExportIntents", + "service": { + "shortName": "Intents", + "fullName": "google.cloud.dialogflow.cx.v3.Intents" + } + } + } + }, { "regionTag": "dialogflow_v3_generated_Pages_ListPages_async", "title": "Agents listPages Sample", diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.export_intents.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.export_intents.js new file mode 100644 index 00000000000..967da4ac4a5 --- /dev/null +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.export_intents.js @@ -0,0 +1,92 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, intents) { + // [START dialogflow_v3beta1_generated_Intents_ExportIntents_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent agent to export intents. + * Format: `projects//locations//agents/`. + */ + // const parent = 'abc123' + /** + * Required. The name of the intents to export. + * Format: `projects//locations//agents//intents/`. + */ + // const intents = ['abc','def'] + /** + * Optional. The Google Cloud + * Storage (https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs:///`. + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * Dialogflow access + * control (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + */ + // const intentsUri = 'abc123' + /** + * Optional. The option to return the serialized intents inline. + */ + // const intentsContentInline = true + /** + * Optional. The data format of the exported intents. If not specified, `BLOB` + * is assumed. + */ + // const dataFormat = {} + + // Imports the Cx library + const {IntentsClient} = require('@google-cloud/dialogflow-cx').v3beta1; + + // Instantiates a client + const cxClient = new IntentsClient(); + + async function callExportIntents() { + // Construct request + const request = { + parent, + intents, + }; + + // Run request + const [operation] = await cxClient.exportIntents(request); + const [response] = await operation.promise(); + console.log(response); + } + + callExportIntents(); + // [END dialogflow_v3beta1_generated_Intents_ExportIntents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.import_intents.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.import_intents.js new file mode 100644 index 00000000000..fec74c7f8c9 --- /dev/null +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.import_intents.js @@ -0,0 +1,82 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START dialogflow_v3beta1_generated_Intents_ImportIntents_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The agent to import the intents into. + * Format: `projects//locations//agents/`. + */ + // const parent = 'abc123' + /** + * The Google Cloud Storage (https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs:///`. + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * Dialogflow access + * control (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + */ + // const intentsUri = 'abc123' + /** + * Uncompressed byte content of intents. + */ + // const intentsContent = {} + /** + * Merge option for importing intents. If not specified, `REJECT` is assumed. + */ + // const mergeOption = {} + + // Imports the Cx library + const {IntentsClient} = require('@google-cloud/dialogflow-cx').v3beta1; + + // Instantiates a client + const cxClient = new IntentsClient(); + + async function callImportIntents() { + // Construct request + const request = { + parent, + }; + + // Run request + const [operation] = await cxClient.importIntents(request); + const [response] = await operation.promise(); + console.log(response); + } + + callImportIntents(); + // [END dialogflow_v3beta1_generated_Intents_ImportIntents_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json index f1a28145d16..2cc5fa6d7ed 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json @@ -2331,6 +2331,114 @@ } } }, + { + "regionTag": "dialogflow_v3beta1_generated_Intents_ImportIntents_async", + "title": "Agents importIntents Sample", + "origin": "API_DEFINITION", + "description": " Imports the specified intents into the agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] - `response`: [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse]", + "canonical": true, + "file": "intents.import_intents.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 74, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ImportIntents", + "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "intents_uri", + "type": "TYPE_STRING" + }, + { + "name": "intents_content", + "type": ".google.cloud.dialogflow.cx.v3beta1.InlineSource" + }, + { + "name": "merge_option", + "type": ".google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "IntentsClient", + "fullName": "google.cloud.dialogflow.cx.v3beta1.IntentsClient" + }, + "method": { + "shortName": "ImportIntents", + "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents", + "service": { + "shortName": "Intents", + "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents" + } + } + } + }, + { + "regionTag": "dialogflow_v3beta1_generated_Intents_ExportIntents_async", + "title": "Agents exportIntents Sample", + "origin": "API_DEFINITION", + "description": " Exports the selected intents. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] - `response`: [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse]", + "canonical": true, + "file": "intents.export_intents.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 84, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ExportIntents", + "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "intents", + "type": "TYPE_STRING[]" + }, + { + "name": "intents_uri", + "type": "TYPE_STRING" + }, + { + "name": "intents_content_inline", + "type": "TYPE_BOOL" + }, + { + "name": "data_format", + "type": ".google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "IntentsClient", + "fullName": "google.cloud.dialogflow.cx.v3beta1.IntentsClient" + }, + "method": { + "shortName": "ExportIntents", + "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents", + "service": { + "shortName": "Intents", + "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents" + } + } + } + }, { "regionTag": "dialogflow_v3beta1_generated_Pages_ListPages_async", "title": "Agents listPages Sample", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/agents_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/agents_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/agents_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/agents_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/changelogs_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/changelogs_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/changelogs_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/changelogs_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/deployments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/deployments_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/deployments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/deployments_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/entity_types_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/entity_types_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/entity_types_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/entity_types_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/environments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/environments_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/environments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/environments_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/experiments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/experiments_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/experiments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/experiments_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/flows_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/flows_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/flows_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/flows_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/gapic_metadata.json b/packages/google-cloud-dialogflow-cx/src/v3/gapic_metadata.json index 6c16b09f77f..86f93e19725 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/gapic_metadata.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/gapic_metadata.json @@ -624,6 +624,16 @@ "deleteIntent" ] }, + "ImportIntents": { + "methods": [ + "importIntents" + ] + }, + "ExportIntents": { + "methods": [ + "exportIntents" + ] + }, "ListIntents": { "methods": [ "listIntents", @@ -656,6 +666,16 @@ "deleteIntent" ] }, + "ImportIntents": { + "methods": [ + "importIntents" + ] + }, + "ExportIntents": { + "methods": [ + "exportIntents" + ] + }, "ListIntents": { "methods": [ "listIntents", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/intents_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/intents_client.ts index 8f1a947222b..a1318089e1f 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/intents_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/intents_client.ts @@ -24,6 +24,7 @@ import type { Descriptors, ClientOptions, GrpcClientOptions, + LROperation, PaginationCallback, GaxCall, LocationsClient, @@ -320,8 +321,31 @@ export class IntentsClient { this.operationsClient = this._gaxModule .lro(lroOptions) .operationsClient(opts); - - this.descriptors.longrunning = {}; + const importIntentsResponse = protoFilesRoot.lookup( + '.google.cloud.dialogflow.cx.v3.ImportIntentsResponse' + ) as gax.protobuf.Type; + const importIntentsMetadata = protoFilesRoot.lookup( + '.google.cloud.dialogflow.cx.v3.ImportIntentsMetadata' + ) as gax.protobuf.Type; + const exportIntentsResponse = protoFilesRoot.lookup( + '.google.cloud.dialogflow.cx.v3.ExportIntentsResponse' + ) as gax.protobuf.Type; + const exportIntentsMetadata = protoFilesRoot.lookup( + '.google.cloud.dialogflow.cx.v3.ExportIntentsMetadata' + ) as gax.protobuf.Type; + + this.descriptors.longrunning = { + importIntents: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + importIntentsResponse.decode.bind(importIntentsResponse), + importIntentsMetadata.decode.bind(importIntentsMetadata) + ), + exportIntents: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + exportIntentsResponse.decode.bind(exportIntentsResponse), + exportIntentsMetadata.decode.bind(exportIntentsMetadata) + ), + }; // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( @@ -378,6 +402,8 @@ export class IntentsClient { 'createIntent', 'updateIntent', 'deleteIntent', + 'importIntents', + 'exportIntents', ]; for (const methodName of intentsStubMethods) { const callPromise = this.intentsStub.then( @@ -394,7 +420,10 @@ export class IntentsClient { } ); - const descriptor = this.descriptors.page[methodName] || undefined; + const descriptor = + this.descriptors.page[methodName] || + this.descriptors.longrunning[methodName] || + undefined; const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], @@ -872,6 +901,333 @@ export class IntentsClient { return this.innerApiCalls.deleteIntent(request, options, callback); } + /** + * Imports the specified intents into the agent. + * + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * + * - `metadata`: + * {@link protos.google.cloud.dialogflow.cx.v3.ImportIntentsMetadata|ImportIntentsMetadata} + * - `response`: + * {@link protos.google.cloud.dialogflow.cx.v3.ImportIntentsResponse|ImportIntentsResponse} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The agent to import the intents into. + * Format: `projects//locations//agents/`. + * @param {string} request.intentsUri + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs:///`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + * @param {google.cloud.dialogflow.cx.v3.InlineSource} request.intentsContent + * Uncompressed byte content of intents. + * @param {google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption} request.mergeOption + * Merge option for importing intents. If not specified, `REJECT` 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. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v3/intents.import_intents.js + * region_tag:dialogflow_v3_generated_Intents_ImportIntents_async + */ + importIntents( + request?: protos.google.cloud.dialogflow.cx.v3.IImportIntentsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.dialogflow.cx.v3.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + importIntents( + request: protos.google.cloud.dialogflow.cx.v3.IImportIntentsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + importIntents( + request: protos.google.cloud.dialogflow.cx.v3.IImportIntentsRequest, + callback: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + importIntents( + request?: protos.google.cloud.dialogflow.cx.v3.IImportIntentsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.dialogflow.cx.v3.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.importIntents(request, options, callback); + } + /** + * Check the status of the long running operation returned by `importIntents()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v3/intents.import_intents.js + * region_tag:dialogflow_v3_generated_Intents_ImportIntents_async + */ + async checkImportIntentsProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.dialogflow.cx.v3.ImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.ImportIntentsMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.importIntents, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.dialogflow.cx.v3.ImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.ImportIntentsMetadata + >; + } + /** + * Exports the selected intents. + * + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * + * - `metadata`: + * {@link protos.google.cloud.dialogflow.cx.v3.ExportIntentsMetadata|ExportIntentsMetadata} + * - `response`: + * {@link protos.google.cloud.dialogflow.cx.v3.ExportIntentsResponse|ExportIntentsResponse} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent agent to export intents. + * Format: `projects//locations//agents/`. + * @param {string[]} request.intents + * Required. The name of the intents to export. + * Format: `projects//locations//agents//intents/`. + * @param {string} [request.intentsUri] + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs:///`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + * @param {boolean} [request.intentsContentInline] + * Optional. The option to return the serialized intents inline. + * @param {google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat} [request.dataFormat] + * Optional. The data format of the exported intents. If not specified, `BLOB` + * 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. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v3/intents.export_intents.js + * region_tag:dialogflow_v3_generated_Intents_ExportIntents_async + */ + exportIntents( + request?: protos.google.cloud.dialogflow.cx.v3.IExportIntentsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.dialogflow.cx.v3.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + exportIntents( + request: protos.google.cloud.dialogflow.cx.v3.IExportIntentsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + exportIntents( + request: protos.google.cloud.dialogflow.cx.v3.IExportIntentsRequest, + callback: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + exportIntents( + request?: protos.google.cloud.dialogflow.cx.v3.IExportIntentsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.dialogflow.cx.v3.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.exportIntents(request, options, callback); + } + /** + * Check the status of the long running operation returned by `exportIntents()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v3/intents.export_intents.js + * region_tag:dialogflow_v3_generated_Intents_ExportIntents_async + */ + async checkExportIntentsProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.dialogflow.cx.v3.ExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.ExportIntentsMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.exportIntents, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.dialogflow.cx.v3.ExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.ExportIntentsMetadata + >; + } /** * Returns the list of all intents in the specified agent. * diff --git a/packages/google-cloud-dialogflow-cx/src/v3/intents_client_config.json b/packages/google-cloud-dialogflow-cx/src/v3/intents_client_config.json index ae0fc1787cb..ce1d7856023 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/intents_client_config.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/intents_client_config.json @@ -47,6 +47,16 @@ "timeout_millis": 60000, "retry_codes_name": "unavailable", "retry_params_name": "default" + }, + "ImportIntents": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "ExportIntents": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/intents_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/intents_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/intents_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/intents_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/pages_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/pages_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/pages_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/pages_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/sessions_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/sessions_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/sessions_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/sessions_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/test_cases_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/test_cases_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/test_cases_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/test_cases_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/versions_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/versions_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/versions_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/versions_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/webhooks_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/webhooks_proto_list.json index 1f08431d645..e12637306c9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/webhooks_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/webhooks_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/gapic_metadata.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/gapic_metadata.json index 44298cf5bd8..98be972ba14 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/gapic_metadata.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/gapic_metadata.json @@ -624,6 +624,16 @@ "deleteIntent" ] }, + "ImportIntents": { + "methods": [ + "importIntents" + ] + }, + "ExportIntents": { + "methods": [ + "exportIntents" + ] + }, "ListIntents": { "methods": [ "listIntents", @@ -656,6 +666,16 @@ "deleteIntent" ] }, + "ImportIntents": { + "methods": [ + "importIntents" + ] + }, + "ExportIntents": { + "methods": [ + "exportIntents" + ] + }, "ListIntents": { "methods": [ "listIntents", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client.ts index e17cd04254f..8504ae0c408 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client.ts @@ -23,6 +23,8 @@ import type { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, + LROperation, PaginationCallback, GaxCall, LocationsClient, @@ -63,6 +65,7 @@ export class IntentsClient { innerApiCalls: {[name: string]: Function}; locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; + operationsClient: gax.OperationsClient; intentsStub?: Promise<{[name: string]: Function}>; /** @@ -273,6 +276,79 @@ export class IntentsClient { ), }; + const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + // This API contains "long-running operations", which return a + // an Operation object that allows for tracking of the operation, + // rather than holding a request open. + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback) { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/v3beta1/{name=projects/*/locations/*}', + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/v3beta1/{name=projects/*}/locations', + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/v3beta1/{name=projects/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/v3beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/v3beta1/{name=projects/*/operations/*}', + additional_bindings: [ + {get: '/v3beta1/{name=projects/*/locations/*/operations/*}'}, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/v3beta1/{name=projects/*}/operations', + additional_bindings: [ + {get: '/v3beta1/{name=projects/*/locations/*}/operations'}, + ], + }, + ]; + } + this.operationsClient = this._gaxModule + .lro(lroOptions) + .operationsClient(opts); + const importIntentsResponse = protoFilesRoot.lookup( + '.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse' + ) as gax.protobuf.Type; + const importIntentsMetadata = protoFilesRoot.lookup( + '.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata' + ) as gax.protobuf.Type; + const exportIntentsResponse = protoFilesRoot.lookup( + '.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse' + ) as gax.protobuf.Type; + const exportIntentsMetadata = protoFilesRoot.lookup( + '.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata' + ) as gax.protobuf.Type; + + this.descriptors.longrunning = { + importIntents: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + importIntentsResponse.decode.bind(importIntentsResponse), + importIntentsMetadata.decode.bind(importIntentsMetadata) + ), + exportIntents: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + exportIntentsResponse.decode.bind(exportIntentsResponse), + exportIntentsMetadata.decode.bind(exportIntentsMetadata) + ), + }; + // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( 'google.cloud.dialogflow.cx.v3beta1.Intents', @@ -328,6 +404,8 @@ export class IntentsClient { 'createIntent', 'updateIntent', 'deleteIntent', + 'importIntents', + 'exportIntents', ]; for (const methodName of intentsStubMethods) { const callPromise = this.intentsStub.then( @@ -344,7 +422,10 @@ export class IntentsClient { } ); - const descriptor = this.descriptors.page[methodName] || undefined; + const descriptor = + this.descriptors.page[methodName] || + this.descriptors.longrunning[methodName] || + undefined; const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], @@ -846,6 +927,333 @@ export class IntentsClient { return this.innerApiCalls.deleteIntent(request, options, callback); } + /** + * Imports the specified intents into the agent. + * + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * + * - `metadata`: + * {@link protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata|ImportIntentsMetadata} + * - `response`: + * {@link protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse|ImportIntentsResponse} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The agent to import the intents into. + * Format: `projects//locations//agents/`. + * @param {string} request.intentsUri + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + * to import intents from. The format of this URI must be + * `gs:///`. + * + * Dialogflow performs a read operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have read permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + * @param {google.cloud.dialogflow.cx.v3beta1.InlineSource} request.intentsContent + * Uncompressed byte content of intents. + * @param {google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption} request.mergeOption + * Merge option for importing intents. If not specified, `REJECT` 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. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v3beta1/intents.import_intents.js + * region_tag:dialogflow_v3beta1_generated_Intents_ImportIntents_async + */ + importIntents( + request?: protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + importIntents( + request: protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + importIntents( + request: protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest, + callback: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + importIntents( + request?: protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.importIntents(request, options, callback); + } + /** + * Check the status of the long running operation returned by `importIntents()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v3beta1/intents.import_intents.js + * region_tag:dialogflow_v3beta1_generated_Intents_ImportIntents_async + */ + async checkImportIntentsProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.importIntents, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata + >; + } + /** + * Exports the selected intents. + * + * This method is a [long-running + * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). + * The returned `Operation` type has the following method-specific fields: + * + * - `metadata`: + * {@link protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata|ExportIntentsMetadata} + * - `response`: + * {@link protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse|ExportIntentsResponse} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent agent to export intents. + * Format: `projects//locations//agents/`. + * @param {string[]} request.intents + * Required. The name of the intents to export. + * Format: `projects//locations//agents//intents/`. + * @param {string} [request.intentsUri] + * Optional. The [Google Cloud + * Storage](https://cloud.google.com/storage/docs/) URI to export the + * intents to. The format of this URI must be + * `gs:///`. + * + * Dialogflow performs a write operation for the Cloud Storage object + * on the caller's behalf, so your request authentication must + * have write permissions for the object. For more information, see + * [Dialogflow access + * control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + * @param {boolean} [request.intentsContentInline] + * Optional. The option to return the serialized intents inline. + * @param {google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat} [request.dataFormat] + * Optional. The data format of the exported intents. If not specified, `BLOB` + * 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. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v3beta1/intents.export_intents.js + * region_tag:dialogflow_v3beta1_generated_Intents_ExportIntents_async + */ + exportIntents( + request?: protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + >; + exportIntents( + request: protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + exportIntents( + request: protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest, + callback: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + exportIntents( + request?: protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.exportIntents(request, options, callback); + } + /** + * Check the status of the long running operation returned by `exportIntents()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * @example include:samples/generated/v3beta1/intents.export_intents.js + * region_tag:dialogflow_v3beta1_generated_Intents_ExportIntents_async + */ + async checkExportIntentsProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata + > + > { + const request = + new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new this._gaxModule.Operation( + operation, + this.descriptors.longrunning.exportIntents, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata + >; + } /** * Returns the list of all intents in the specified agent. * @@ -1155,6 +1563,181 @@ export class IntentsClient { return this.locationsClient.listLocationsAsync(request, options); } + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} + * for the details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * {@link google.longrunning.Operation | google.longrunning.Operation}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * {@link google.longrunning.Operation | google.longrunning.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See {@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} + * for the details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2938,6 +3521,7 @@ export class IntentsClient { this._terminated = true; stub.close(); this.locationsClient.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client_config.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client_config.json index dd60bb05a0f..62d3d7364bc 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client_config.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client_config.json @@ -47,6 +47,16 @@ "timeout_millis": 60000, "retry_codes_name": "unavailable", "retry_params_name": "default" + }, + "ImportIntents": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "ExportIntents": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_proto_list.json index d9449284266..336e74c8521 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_proto_list.json @@ -13,6 +13,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/generative_settings.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/import_strategy.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/inline.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3.ts index 8d9b47c23c5..051df790e20 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3.ts @@ -25,7 +25,12 @@ import * as intentsModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + LocationProtos, +} from 'google-gax'; // Dynamically loaded proto JSON is needed to get the type information // to fill in default values for request objects @@ -66,6 +71,38 @@ function stubSimpleCallWithCallback( : sinon.stub().callsArgWith(2, null, response); } +function stubLongRunningCall( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().rejects(callError) + : sinon.stub().resolves([mockOperation]); +} + +function stubLongRunningCallWithCallback( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().callsArgWith(2, callError) + : sinon.stub().callsArgWith(2, null, mockOperation); +} + function stubPageStreamingCall( responses?: ResponseType[], error?: Error @@ -746,6 +783,394 @@ describe('v3.IntentsClient', () => { }); }); + describe('importIntents', () => { + it('invokes importIntents without error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ImportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3.ImportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.importIntents = + stubLongRunningCall(expectedResponse); + const [operation] = await client.importIntents(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes importIntents without error using callback', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ImportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3.ImportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.importIntents = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.importIntents( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.dialogflow.cx.v3.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IImportIntentsMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.dialogflow.cx.v3.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IImportIntentsMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes importIntents with call error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ImportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3.ImportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.importIntents = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.importIntents(request), expectedError); + const actualRequest = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes importIntents with LRO error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ImportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3.ImportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.importIntents = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.importIntents(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkImportIntentsProgress without error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkImportIntentsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkImportIntentsProgress with error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkImportIntentsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('exportIntents', () => { + it('invokes exportIntents without error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ExportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3.ExportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.exportIntents = + stubLongRunningCall(expectedResponse); + const [operation] = await client.exportIntents(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes exportIntents without error using callback', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ExportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3.ExportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.exportIntents = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.exportIntents( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.dialogflow.cx.v3.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IExportIntentsMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.dialogflow.cx.v3.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3.IExportIntentsMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes exportIntents with call error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ExportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3.ExportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.exportIntents = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.exportIntents(request), expectedError); + const actualRequest = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes exportIntents with LRO error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ExportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3.ExportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.exportIntents = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.exportIntents(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkExportIntentsProgress without error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkExportIntentsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkExportIntentsProgress with error', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkExportIntentsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listIntents', () => { it('invokes listIntents without error', async () => { const client = new intentsModule.v3.IntentsClient({ diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3beta1.ts index 139fd251389..c25bb2fd99d 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3beta1.ts @@ -25,7 +25,12 @@ import * as intentsModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LocationProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + LocationProtos, +} from 'google-gax'; // Dynamically loaded proto JSON is needed to get the type information // to fill in default values for request objects @@ -66,6 +71,38 @@ function stubSimpleCallWithCallback( : sinon.stub().callsArgWith(2, null, response); } +function stubLongRunningCall( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().rejects(callError) + : sinon.stub().resolves([mockOperation]); +} + +function stubLongRunningCallWithCallback( + response?: ResponseType, + callError?: Error, + lroError?: Error +) { + const innerStub = lroError + ? sinon.stub().rejects(lroError) + : sinon.stub().resolves([response]); + const mockOperation = { + promise: innerStub, + }; + return callError + ? sinon.stub().callsArgWith(2, callError) + : sinon.stub().callsArgWith(2, null, mockOperation); +} + function stubPageStreamingCall( responses?: ResponseType[], error?: Error @@ -746,6 +783,394 @@ describe('v3beta1.IntentsClient', () => { }); }); + describe('importIntents', () => { + it('invokes importIntents without error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.importIntents = + stubLongRunningCall(expectedResponse); + const [operation] = await client.importIntents(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes importIntents without error using callback', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.importIntents = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.importIntents( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IImportIntentsMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes importIntents with call error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.importIntents = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.importIntents(request), expectedError); + const actualRequest = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes importIntents with LRO error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.importIntents = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.importIntents(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.importIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkImportIntentsProgress without error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkImportIntentsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkImportIntentsProgress with error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkImportIntentsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('exportIntents', () => { + it('invokes exportIntents without error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.exportIntents = + stubLongRunningCall(expectedResponse); + const [operation] = await client.exportIntents(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes exportIntents without error using callback', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.exportIntents = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.exportIntents( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsResponse, + protos.google.cloud.dialogflow.cx.v3beta1.IExportIntentsMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes exportIntents with call error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.exportIntents = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.exportIntents(request), expectedError); + const actualRequest = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes exportIntents with LRO error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.exportIntents = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.exportIntents(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.exportIntents as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkExportIntentsProgress without error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkExportIntentsProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkExportIntentsProgress with error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.checkExportIntentsProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listIntents', () => { it('invokes listIntents without error', async () => { const client = new intentsModule.v3beta1.IntentsClient({ @@ -1275,6 +1700,311 @@ describe('v3beta1.IntentsClient', () => { ); }); }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('agent', () => {