From 17089defcd29ff87ecf4e6fcd9616233e4e26f7e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 18:28:16 +0000 Subject: [PATCH] feat: added support for `TelephonyTransferCall` (#206) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 414026488 Source-Link: https://github.com/googleapis/googleapis/commit/26ab5dd2398319e815f6d293a792d79ade3064f5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d4c1a646b4056e598eba01213af350bd8f6a6952 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDRjMWE2NDZiNDA1NmU1OThlYmEwMTIxM2FmMzUwYmQ4ZjZhNjk1MiJ9 docs: reformat comments --- .../cloud/dialogflow/cx/v3/audio_config.proto | 50 +- .../cloud/dialogflow/cx/v3/environment.proto | 1 + .../dialogflow/cx/v3/response_message.proto | 15 + .../cloud/dialogflow/cx/v3/version.proto | 111 +- .../cloud/dialogflow/cx/v3/webhook.proto | 196 +- protos/protos.d.ts | 7595 +++--- protos/protos.js | 19821 ++++++++-------- protos/protos.json | 2076 +- .../generated/v3/versions.compare_versions.js | 12 +- .../generated/v3/versions.create_version.js | 6 +- .../generated/v3/versions.delete_version.js | 6 +- samples/generated/v3/versions.get_version.js | 4 +- .../generated/v3/versions.list_versions.js | 6 +- samples/generated/v3/versions.load_version.js | 6 +- .../generated/v3/versions.update_version.js | 4 +- .../generated/v3/webhooks.delete_webhook.js | 7 +- src/v3/versions_client.ts | 65 +- src/v3/webhooks_client.ts | 7 +- 18 files changed, 15151 insertions(+), 14837 deletions(-) diff --git a/protos/google/cloud/dialogflow/cx/v3/audio_config.proto b/protos/google/cloud/dialogflow/cx/v3/audio_config.proto index ea532786..49e21d92 100644 --- a/protos/google/cloud/dialogflow/cx/v3/audio_config.proto +++ b/protos/google/cloud/dialogflow/cx/v3/audio_config.proto @@ -31,31 +31,6 @@ option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; -// Information for a word recognized by the speech recognizer. -message SpeechWordInfo { - // The word this info is for. - string word = 3; - - // Time offset relative to the beginning of the audio that corresponds to the - // start of the spoken word. This is an experimental feature and the accuracy - // of the time offset can vary. - google.protobuf.Duration start_offset = 1; - - // Time offset relative to the beginning of the audio that corresponds to the - // end of the spoken word. This is an experimental feature and the accuracy of - // the time offset can vary. - google.protobuf.Duration end_offset = 2; - - // The Speech confidence between 0.0 and 1.0 for this word. A higher number - // indicates an estimated greater likelihood that the recognized word is - // correct. The default of 0.0 is a sentinel value indicating that confidence - // was not set. - // - // This field is not guaranteed to be fully stable over time for the same - // audio input. Users should also not rely on it to always be provided. - float confidence = 4; -} - // Audio encoding of the audio content sent in the conversational query request. // Refer to the // [Cloud Speech API @@ -105,6 +80,31 @@ enum AudioEncoding { AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; } +// Information for a word recognized by the speech recognizer. +message SpeechWordInfo { + // The word this info is for. + string word = 3; + + // Time offset relative to the beginning of the audio that corresponds to the + // start of the spoken word. This is an experimental feature and the accuracy + // of the time offset can vary. + google.protobuf.Duration start_offset = 1; + + // Time offset relative to the beginning of the audio that corresponds to the + // end of the spoken word. This is an experimental feature and the accuracy of + // the time offset can vary. + google.protobuf.Duration end_offset = 2; + + // The Speech confidence between 0.0 and 1.0 for this word. A higher number + // indicates an estimated greater likelihood that the recognized word is + // correct. The default of 0.0 is a sentinel value indicating that confidence + // was not set. + // + // This field is not guaranteed to be fully stable over time for the same + // audio input. Users should also not rely on it to always be provided. + float confidence = 4; +} + // Instructs the speech recognizer on how to process the audio content. message InputAudioConfig { // Required. Audio encoding of the audio content to process. diff --git a/protos/google/cloud/dialogflow/cx/v3/environment.proto b/protos/google/cloud/dialogflow/cx/v3/environment.proto index 054ca8e1..31f947ff 100644 --- a/protos/google/cloud/dialogflow/cx/v3/environment.proto +++ b/protos/google/cloud/dialogflow/cx/v3/environment.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3/test_case.proto"; +import "google/cloud/dialogflow/cx/v3/webhook.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; diff --git a/protos/google/cloud/dialogflow/cx/v3/response_message.proto b/protos/google/cloud/dialogflow/cx/v3/response_message.proto index a9b8d7ee..e724208f 100644 --- a/protos/google/cloud/dialogflow/cx/v3/response_message.proto +++ b/protos/google/cloud/dialogflow/cx/v3/response_message.proto @@ -164,6 +164,17 @@ message ResponseMessage { repeated Segment segments = 1; } + // Represents the signal that telles the client to transfer the phone call + // connected to the agent to a third-party endpoint. + message TelephonyTransferCall { + // Endpoint to transfer the call to. + oneof endpoint { + // Transfer the call to a phone number + // in [E.164 format](https://en.wikipedia.org/wiki/E.164). + string phone_number = 1; + } + } + // Required. The rich response message. oneof message { // Returns a text response. @@ -202,5 +213,9 @@ message ResponseMessage { // This message is generated by Dialogflow only and not supposed to be // defined by the user. MixedAudio mixed_audio = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A signal that the client should transfer the phone call connected to + // this agent to a third-party endpoint. + TelephonyTransferCall telephony_transfer_call = 18; } } diff --git a/protos/google/cloud/dialogflow/cx/v3/version.proto b/protos/google/cloud/dialogflow/cx/v3/version.proto index 628d37db..326c4850 100644 --- a/protos/google/cloud/dialogflow/cx/v3/version.proto +++ b/protos/google/cloud/dialogflow/cx/v3/version.proto @@ -47,8 +47,7 @@ service Versions { "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/dialogflow"; - // Returns the list of all versions in the specified - // [Flow][google.cloud.dialogflow.cx.v3.Flow]. + // Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. rpc ListVersions(ListVersionsRequest) returns (ListVersionsResponse) { option (google.api.http) = { get: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" @@ -64,18 +63,15 @@ service Versions { option (google.api.method_signature) = "name"; } - // Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified - // [Flow][google.cloud.dialogflow.cx.v3.Flow]. + // Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. // // 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`: - // [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] + // - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] // - `response`: [Version][google.cloud.dialogflow.cx.v3.Version] - rpc CreateVersion(CreateVersionRequest) - returns (google.longrunning.Operation) { + rpc CreateVersion(CreateVersionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" body: "version" @@ -127,8 +123,7 @@ service Versions { } // Compares the specified base version with target version. - rpc CompareVersions(CompareVersionsRequest) - returns (CompareVersionsResponse) { + rpc CompareVersions(CompareVersionsRequest) returns (CompareVersionsResponse) { option (google.api.http) = { post: "/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions" body: "*" @@ -141,11 +136,11 @@ service Versions { // [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion]. message CreateVersionOperationMetadata { // Name of the created version. - // Format: - // `projects//locations//agents//flows//versions/`. + // Format: `projects//locations//agents//flows//versions/`. string version = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Version" - }]; + type: "dialogflow.googleapis.com/Version" + }]; } // Represents a version of a flow. @@ -170,10 +165,9 @@ message Version { FAILED = 3; } - // Format: - // `projects//locations//agents//flows//versions/`. - // Version ID is a self-increasing number generated by Dialogflow upon version - // creation. + // Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing + // number generated by Dialogflow upon version creation. string name = 1; // Required. The human-readable name of the version. Limit of 64 characters. @@ -187,20 +181,18 @@ message Version { NluSettings nlu_settings = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Create time of the version. - google.protobuf.Timestamp create_time = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The state of this version. This field is read-only and cannot - // be set by create and update methods. + // Output only. The state of this version. This field is read-only and cannot be set by + // create and update methods. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// The request message for -// [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. +// The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. message ListVersionsRequest { - // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all - // versions for. Format: - // `projects//locations//agents//flows/`. + // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for. + // Format: `projects//locations//agents//flows/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -216,8 +208,7 @@ message ListVersionsRequest { string page_token = 3; } -// The response message for -// [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. +// The response message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. message ListVersionsResponse { // A list of versions. There will be a maximum number of items returned based // on the page_size field in the request. The list may in some cases be empty @@ -229,12 +220,11 @@ message ListVersionsResponse { string next_page_token = 2; } -// The request message for -// [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion]. +// The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion]. message GetVersionRequest { // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. - // Format: - // `projects//locations//agents//flows//versions/`. + // Format: `projects//locations//agents//flows//versions/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -243,12 +233,11 @@ message GetVersionRequest { ]; } -// The request message for -// [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion]. +// The request message for [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion]. message CreateVersionRequest { - // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an - // [Version][google.cloud.dialogflow.cx.v3.Version] for. Format: - // `projects//locations//agents//flows/`. + // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for. + // Format: `projects//locations//agents//flows/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -260,24 +249,21 @@ message CreateVersionRequest { Version version = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for -// [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion]. +// The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion]. message UpdateVersionRequest { // Required. The version to update. Version version = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The mask to control which fields get updated. Currently only - // `description` and `display_name` can be updated. - google.protobuf.FieldMask update_mask = 2 - [(google.api.field_behavior) = REQUIRED]; + // Required. The mask to control which fields get updated. Currently only `description` + // and `display_name` can be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for -// [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion]. +// The request message for [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion]. message DeleteVersionRequest { - // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] - // to delete. Format: - // `projects//locations//agents//flows//versions/`. + // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. + // Format: `projects//locations//agents//flows//versions/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -286,12 +272,11 @@ message DeleteVersionRequest { ]; } -// The request message for -// [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion]. +// The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion]. message LoadVersionRequest { - // Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded - // to draft flow. Format: - // `projects//locations//agents//flows//versions/`. + // Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow. + // Format: `projects//locations//agents//flows//versions/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -306,14 +291,13 @@ message LoadVersionRequest { bool allow_override_agent_resources = 2; } -// The request message for -// [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. +// The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. message CompareVersionsRequest { - // Required. Name of the base flow version to compare with the target version. - // Use version ID `0` to indicate the draft version of the specified flow. + // Required. Name of the base flow version to compare with the target version. Use + // version ID `0` to indicate the draft version of the specified flow. // - // Format: - // `projects//locations//agents//flows//versions/`. + // Format: `projects//locations//agents/ + // /flows//versions/`. string base_version = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -323,8 +307,8 @@ message CompareVersionsRequest { // Required. Name of the target flow version to compare with the // base version. Use version ID `0` to indicate the draft version of the - // specified flow. Format: - // `projects//locations//agents//flows//versions/`. + // specified flow. Format: `projects//locations//agents//flows//versions/`. string target_version = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -342,8 +326,7 @@ message CompareVersionsRequest { string language_code = 3; } -// The response message for -// [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. +// The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. message CompareVersionsResponse { // JSON representation of the base version content. string base_version_content_json = 1; diff --git a/protos/google/cloud/dialogflow/cx/v3/webhook.proto b/protos/google/cloud/dialogflow/cx/v3/webhook.proto index 7f2a291f..9ab52a1e 100644 --- a/protos/google/cloud/dialogflow/cx/v3/webhook.proto +++ b/protos/google/cloud/dialogflow/cx/v3/webhook.proto @@ -101,8 +101,7 @@ message Webhook { // Represents configuration for a generic web service. message GenericWebService { - // Required. The webhook URI for receiving POST requests. It must use https - // protocol. + // Required. The webhook URI for receiving POST requests. It must use https protocol. string uri = 1 [(google.api.field_behavior) = REQUIRED]; // The user name for HTTP Basic authentication. @@ -115,19 +114,18 @@ message Webhook { // requests. map request_headers = 4; - // Optional. Specifies a list of allowed custom CA certificates (in DER - // format) for HTTPS verification. This overrides the default SSL trust - // store. If this is empty or unspecified, Dialogflow will use Google's - // default trust store to verify certificates. N.B. Make sure the HTTPS - // server certificates are signed with "subject alt name". For instance a - // certificate can be self-signed using the following command, - // - // openssl x509 -req -days 200 -in example.com.csr \ - // -signkey example.com.key \ - // -out example.com.crt \ - // -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") - repeated bytes allowed_ca_certs = 5 - [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies a list of allowed custom CA certificates (in DER format) for + // HTTPS verification. This overrides the default SSL trust store. If this + // is empty or unspecified, Dialogflow will use Google's default trust store + // to verify certificates. + // N.B. Make sure the HTTPS server certificates are signed with "subject alt + // name". For instance a certificate can be self-signed using the following + // command, + // openssl x509 -req -days 200 -in example.com.csr \ + // -signkey example.com.key \ + // -out example.com.crt \ + // -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + repeated bytes allowed_ca_certs = 5 [(google.api.field_behavior) = OPTIONAL]; } // Represents configuration for a [Service @@ -151,12 +149,10 @@ message Webhook { } // The unique identifier of the webhook. - // Required for the - // [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] - // method. - // [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] - // populates the name automatically. Format: `projects//locations//agents//webhooks/`. + // Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method. + // [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically. + // Format: `projects//locations//agents//webhooks/`. string name = 1; // Required. The human-readable name of the webhook, unique within the agent. @@ -181,8 +177,7 @@ message Webhook { bool disabled = 5; } -// The request message for -// [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. +// The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. message ListWebhooksRequest { // Required. The agent to list all webhooks for. // Format: `projects//locations//agents/`. @@ -201,8 +196,7 @@ message ListWebhooksRequest { string page_token = 3; } -// The response message for -// [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. +// The response message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. message ListWebhooksResponse { // The list of webhooks. There will be a maximum number of items returned // based on the page_size field in the request. @@ -213,8 +207,7 @@ message ListWebhooksResponse { string next_page_token = 2; } -// The request message for -// [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook]. +// The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook]. message GetWebhookRequest { // Required. The name of the webhook. // Format: `projects//locations//agents//locations//agents/`. @@ -243,8 +235,7 @@ message CreateWebhookRequest { Webhook webhook = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for -// [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]. +// The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]. message UpdateWebhookRequest { // Required. The webhook to update. Webhook webhook = 1 [(google.api.field_behavior) = REQUIRED]; @@ -254,8 +245,7 @@ message UpdateWebhookRequest { google.protobuf.FieldMask update_mask = 2; } -// The request message for -// [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook]. +// The request message for [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook]. message DeleteWebhookRequest { // Required. The name of the webhook to delete. // Format: `projects//locations//agents//locations//agents//intents/`. string last_matched_intent = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Intent" - }]; + type: "dialogflow.googleapis.com/Intent" + }]; - // Always present. The display name of the last matched - // [intent][google.cloud.dialogflow.cx.v3.Intent]. + // Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent]. string display_name = 3; // Parameters identified as a result of intent matching. This is a map of @@ -337,32 +325,30 @@ message WebhookRequest { float magnitude = 2; } - // Always present. The unique identifier of the - // [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] - // that will be returned to the API caller. + // Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that + // will be returned to the API caller. string detect_intent_response_id = 1; // The original conversational query. oneof query { - // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was - // provided as input, this field will contain a copy of the text. + // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field + // will contain a copy of the text. string text = 10; - // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as - // input, this field will contain a copy of the intent identifier. Format: - // `projects//locations//agents//locations//agents//intents/`. string trigger_intent = 11 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Intent" - }]; + type: "dialogflow.googleapis.com/Intent" + }]; - // If [natural language speech - // audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, + // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, // this field will contain the transcript for the audio. string transcript = 12; - // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as - // input, this field will contain the name of the event. + // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain + // the name of the event. string trigger_event = 14; } @@ -388,8 +374,7 @@ message WebhookRequest { // [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response]; repeated ResponseMessage messages = 7; - // Custom data set in - // [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload]. + // Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload]. google.protobuf.Struct payload = 8; // The sentiment analysis result of the current user request. The field is @@ -434,8 +419,7 @@ message WebhookResponse { // if it does not intend to modify session status. SessionInfo session_info = 3; - // Value to append directly to - // [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads]. + // Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads]. google.protobuf.Struct payload = 4; // The target to transition to. This can be set optionally to indicate an @@ -446,15 +430,15 @@ message WebhookResponse { // Format: `projects//locations//agents//flows//pages/`. string target_page = 5 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Page" - }]; + type: "dialogflow.googleapis.com/Page" + }]; // The target flow to transition to. // Format: `projects//locations//agents//flows/`. string target_flow = 6 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - }]; + type: "dialogflow.googleapis.com/Flow" + }]; } } @@ -481,95 +465,73 @@ message PageInfo { FILLED = 3; } - // Always present for - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. - // Required for + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // The human-readable name of the parameter, unique within the form. This // field cannot be modified by the webhook. string display_name = 1; - // Optional for both - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and - // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // Indicates whether the parameter is required. Optional parameters will // not trigger prompts; however, they are filled if the user specifies // them. Required parameters must be filled before form filling concludes. bool required = 2; - // Always present for - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. - // Required for - // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The - // state of the parameter. This field can be set to - // [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] - // by the webhook to invalidate the parameter; other values set by the + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set + // to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by + // the webhook to invalidate the parameter; other values set by the // webhook will be ignored. ParameterState state = 3; - // Optional for both - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and - // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The - // value of the parameter. This field can be set by the webhook to change - // the parameter value. + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The value of the parameter. This field can be set by the webhook to + // change the parameter value. google.protobuf.Value value = 4; - // Optional for - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored - // for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // Indicates if the parameter value was just collected on the last // conversation turn. bool just_collected = 5; } - // Optional for both - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and - // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The - // parameters contained in the form. Note that the webhook cannot add or - // remove any form parameter. + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The parameters contained in the form. Note that the webhook cannot add + // or remove any form parameter. repeated ParameterInfo parameter_info = 2; } - // Always present for - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for - // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The - // unique identifier of the current page. Format: `projects//locations//agents//flows//pages/`. - string current_page = 1 [ - (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Page" } - ]; + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The unique identifier of the current page. + // Format: `projects//locations//agents//flows//pages/`. + string current_page = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Page" + }]; - // Optional for both - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and - // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // Information about the form. FormInfo form_info = 3; } // Represents session information communicated to and from the webhook. message SessionInfo { - // Always present for - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for - // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The - // unique identifier of the - // [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This // field can be used by the webhook to identify a session. // Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/` // if environment is specified. string session = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Session" - }]; - - // Optional for - // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional - // for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All - // parameters collected from forms and intents during the session. Parameters - // can be created, updated, or removed by the webhook. To remove a parameter - // from the session, the webhook should explicitly set the parameter value to - // null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. - // The map is keyed by parameters' display names. + type: "dialogflow.googleapis.com/Session" + }]; + + // Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // All parameters collected from forms and intents during the session. + // Parameters can be created, updated, or removed by the webhook. To remove a + // parameter from the session, the webhook should explicitly set the parameter + // value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters' + // display names. map parameters = 2; } diff --git a/protos/protos.d.ts b/protos/protos.d.ts index c337a981..7ef08b74 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -5687,6 +5687,9 @@ export namespace google { /** ResponseMessage mixedAudio */ mixedAudio?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null); + + /** ResponseMessage telephonyTransferCall */ + telephonyTransferCall?: (google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall|null); } /** Represents a ResponseMessage. */ @@ -5722,8 +5725,11 @@ export namespace google { /** ResponseMessage mixedAudio. */ public mixedAudio?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null); + /** ResponseMessage telephonyTransferCall. */ + public telephonyTransferCall?: (google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall|null); + /** ResponseMessage message. */ - public message?: ("text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"); + public message?: ("text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"); /** * Creates a new ResponseMessage instance using the specified properties. @@ -6556,6 +6562,99 @@ export namespace google { public toJSON(): { [k: string]: any }; } } + + /** Properties of a TelephonyTransferCall. */ + interface ITelephonyTransferCall { + + /** TelephonyTransferCall phoneNumber */ + phoneNumber?: (string|null); + } + + /** Represents a TelephonyTransferCall. */ + class TelephonyTransferCall implements ITelephonyTransferCall { + + /** + * Constructs a new TelephonyTransferCall. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall); + + /** TelephonyTransferCall phoneNumber. */ + public phoneNumber?: (string|null); + + /** TelephonyTransferCall endpoint. */ + public endpoint?: "phoneNumber"; + + /** + * 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.v3.ResponseMessage.ITelephonyTransferCall): google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall; + + /** + * Encodes the specified TelephonyTransferCall message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.ITelephonyTransferCall, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TelephonyTransferCall message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.ITelephonyTransferCall, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.v3.ResponseMessage.TelephonyTransferCall; + + /** + * 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.v3.ResponseMessage.TelephonyTransferCall; + + /** + * 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 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.v3.ResponseMessage.TelephonyTransferCall; + + /** + * 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.v3.ResponseMessage.TelephonyTransferCall, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TelephonyTransferCall to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } /** Properties of a ValidationMessage. */ @@ -7748,6 +7847,18 @@ export namespace google { } } + /** 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 + } + /** Properties of a SpeechWordInfo. */ interface ISpeechWordInfo { @@ -7856,18 +7967,6 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** 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 - } - /** Properties of an InputAudioConfig. */ interface IInputAudioConfig { @@ -22052,11 +22151,11 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Represents an Experiments */ - class Experiments extends $protobuf.rpc.Service { + /** Represents a Webhooks */ + class Webhooks extends $protobuf.rpc.Service { /** - * Constructs a new Experiments service. + * Constructs a new Webhooks service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -22064,2252 +22163,2246 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new Experiments service using the specified rpc implementation. + * Creates new Webhooks service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Webhooks; /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse */ - public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback): void; + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void; /** - * Calls ListExperiments. - * @param request ListExperimentsRequest message or plain object + * Calls ListWebhooks. + * @param request ListWebhooksRequest message or plain object * @returns Promise */ - public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): Promise; + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): Promise; /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback): void; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void; /** - * Calls GetExperiment. - * @param request GetExperimentRequest message or plain object + * Calls GetWebhook. + * @param request GetWebhookRequest message or plain object * @returns Promise */ - public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): Promise; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): Promise; /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback): void; + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void; /** - * Calls CreateExperiment. - * @param request CreateExperimentRequest message or plain object + * Calls CreateWebhook. + * @param request CreateWebhookRequest message or plain object * @returns Promise */ - public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): Promise; + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): Promise; /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Webhook */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback): void; + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void; /** - * Calls UpdateExperiment. - * @param request UpdateExperimentRequest message or plain object + * Calls UpdateWebhook. + * @param request UpdateWebhookRequest message or plain object * @returns Promise */ - public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): Promise; + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): Promise; /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback): void; - - /** - * Calls DeleteExperiment. - * @param request DeleteExperimentRequest message or plain object - * @returns Promise - */ - public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): Promise; - - /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback): void; - - /** - * Calls StartExperiment. - * @param request StartExperimentRequest message or plain object - * @returns Promise - */ - public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): Promise; - - /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Experiment - */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback): void; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback): void; /** - * Calls StopExperiment. - * @param request StopExperimentRequest message or plain object + * Calls DeleteWebhook. + * @param request DeleteWebhookRequest message or plain object * @returns Promise */ - public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): Promise; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): Promise; } - namespace Experiments { + namespace Webhooks { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#listWebhooks}. * @param error Error, if any - * @param [response] ListExperimentsResponse + * @param [response] ListWebhooksResponse */ - type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListExperimentsResponse) => void; + type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListWebhooksResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#getWebhook}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Webhook */ - type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#createWebhook}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Webhook */ - type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#updateWebhook}. * @param error Error, if any - * @param [response] Experiment + * @param [response] Webhook */ - type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#deleteWebhook}. * @param error Error, if any * @param [response] Empty */ - type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. - * @param error Error, if any - * @param [response] Experiment - */ - type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. - * @param error Error, if any - * @param [response] Experiment - */ - type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; + type DeleteWebhookCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of an Experiment. */ - interface IExperiment { + /** Properties of a Webhook. */ + interface IWebhook { - /** Experiment name */ + /** Webhook name */ name?: (string|null); - /** Experiment displayName */ + /** Webhook displayName */ displayName?: (string|null); - /** Experiment description */ - description?: (string|null); + /** Webhook genericWebService */ + genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - /** Experiment state */ - state?: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State|null); + /** Webhook serviceDirectory */ + serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); - /** Experiment definition */ - definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); + /** Webhook timeout */ + timeout?: (google.protobuf.IDuration|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); - - /** Experiment createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Experiment startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** Experiment endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** Experiment lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Experiment experimentLength */ - experimentLength?: (google.protobuf.IDuration|null); - - /** Experiment variantsHistory */ - variantsHistory?: (google.cloud.dialogflow.cx.v3.IVariantsHistory[]|null); + /** Webhook disabled */ + disabled?: (boolean|null); } - /** Represents an Experiment. */ - class Experiment implements IExperiment { + /** Represents a Webhook. */ + class Webhook implements IWebhook { /** - * Constructs a new Experiment. + * Constructs a new Webhook. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExperiment); + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhook); - /** Experiment name. */ + /** Webhook name. */ public name: string; - /** Experiment displayName. */ + /** Webhook displayName. */ public displayName: string; - /** Experiment description. */ - public description: string; - - /** Experiment state. */ - public state: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State); - - /** Experiment definition. */ - public definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); - - /** Experiment rolloutConfig. */ - public rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); - - /** Experiment rolloutState. */ - public rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); - - /** Experiment rolloutFailureReason. */ - public rolloutFailureReason: string; - - /** Experiment result. */ - public result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); - - /** Experiment createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Experiment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** Webhook genericWebService. */ + public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - /** Experiment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** Webhook serviceDirectory. */ + public serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); - /** Experiment lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** Webhook timeout. */ + public timeout?: (google.protobuf.IDuration|null); - /** Experiment experimentLength. */ - public experimentLength?: (google.protobuf.IDuration|null); + /** Webhook disabled. */ + public disabled: boolean; - /** Experiment variantsHistory. */ - public variantsHistory: google.cloud.dialogflow.cx.v3.IVariantsHistory[]; + /** Webhook webhook. */ + public webhook?: ("genericWebService"|"serviceDirectory"); /** - * Creates a new Experiment instance using the specified properties. + * Creates a new Webhook instance using the specified properties. * @param [properties] Properties to set - * @returns Experiment instance + * @returns Webhook 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.IWebhook): google.cloud.dialogflow.cx.v3.Webhook; /** - * 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 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.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhook, 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 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.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Experiment message from the specified reader or buffer. + * Decodes a Webhook message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Experiment + * @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.Experiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook; /** - * Decodes an Experiment message from the specified reader or buffer, length delimited. + * Decodes a Webhook message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Experiment + * @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.Experiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook; /** - * Verifies an Experiment message. + * Verifies a Webhook message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Experiment message from a plain object. Also converts values to their respective internal types. + * Creates a Webhook message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Experiment + * @returns Webhook */ - 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.Webhook; /** - * 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 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.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Experiment to JSON. + * Converts this Webhook to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Experiment { + namespace Webhook { - /** Properties of a Definition. */ - interface IDefinition { + /** Properties of a GenericWebService. */ + interface IGenericWebService { - /** Definition condition */ - condition?: (string|null); + /** GenericWebService uri */ + uri?: (string|null); - /** Definition versionVariants */ - versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + /** GenericWebService username */ + username?: (string|null); + + /** GenericWebService password */ + password?: (string|null); + + /** GenericWebService requestHeaders */ + requestHeaders?: ({ [k: string]: string }|null); + + /** GenericWebService allowedCaCerts */ + allowedCaCerts?: (Uint8Array[]|null); } - /** Represents a Definition. */ - class Definition implements IDefinition { + /** Represents a GenericWebService. */ + class GenericWebService implements IGenericWebService { /** - * Constructs a new Definition. + * Constructs a new GenericWebService. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IDefinition); + constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService); - /** Definition condition. */ - public condition: string; + /** GenericWebService uri. */ + public uri: string; - /** Definition versionVariants. */ - public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + /** GenericWebService username. */ + public username: string; - /** Definition variants. */ - public variants?: "versionVariants"; + /** GenericWebService password. */ + public password: string; + + /** GenericWebService requestHeaders. */ + public requestHeaders: { [k: string]: string }; + + /** GenericWebService allowedCaCerts. */ + public allowedCaCerts: Uint8Array[]; /** - * Creates a new Definition instance using the specified properties. + * Creates a new GenericWebService instance using the specified properties. * @param [properties] Properties to set - * @returns Definition instance + * @returns GenericWebService 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.Webhook.IGenericWebService): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; /** - * 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 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.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, 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 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.Experiment.IDefinition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Definition 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 Definition + * @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.Experiment.Definition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; /** - * Decodes a Definition 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 Definition + * @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.Experiment.Definition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; /** - * Verifies a Definition 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 Definition 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 Definition + * @returns GenericWebService */ - 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.Webhook.GenericWebService; /** - * 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 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.Experiment.Definition, 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 Definition to JSON. + * Converts this GenericWebService to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Result. */ - interface IResult { + /** Properties of a ServiceDirectoryConfig. */ + interface IServiceDirectoryConfig { - /** Result versionMetrics */ - versionMetrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]|null); + /** ServiceDirectoryConfig service */ + service?: (string|null); - /** Result lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** ServiceDirectoryConfig genericWebService */ + genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); } - /** Represents a Result. */ - class Result implements IResult { + /** Represents a ServiceDirectoryConfig. */ + class ServiceDirectoryConfig implements IServiceDirectoryConfig { /** - * Constructs a new Result. + * Constructs a new ServiceDirectoryConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.IResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig); - /** Result versionMetrics. */ - public versionMetrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics[]; + /** ServiceDirectoryConfig service. */ + public service: string; - /** Result lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** ServiceDirectoryConfig genericWebService. */ + public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); /** - * Creates a new Result instance using the specified properties. + * Creates a new ServiceDirectoryConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Result instance + * @returns ServiceDirectoryConfig 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.Webhook.IServiceDirectoryConfig): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; /** - * 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 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.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, 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 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.Experiment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Result 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 Result + * @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.Experiment.Result; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; /** - * Decodes a Result 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 Result + * @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.Experiment.Result; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig; /** - * Verifies a Result 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 a Result 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 Result + * @returns ServiceDirectoryConfig */ - 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.Webhook.ServiceDirectoryConfig; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @param message Result + * Creates a plain object from a 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.Experiment.Result, 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 Result to JSON. + * Converts this ServiceDirectoryConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - namespace Result { + /** Properties of a ListWebhooksRequest. */ + interface IListWebhooksRequest { - /** Properties of a ConfidenceInterval. */ - interface IConfidenceInterval { + /** ListWebhooksRequest parent */ + parent?: (string|null); - /** ConfidenceInterval confidenceLevel */ - confidenceLevel?: (number|null); + /** ListWebhooksRequest pageSize */ + pageSize?: (number|null); - /** ConfidenceInterval ratio */ - ratio?: (number|null); + /** ListWebhooksRequest pageToken */ + pageToken?: (string|null); + } - /** ConfidenceInterval lowerBound */ - lowerBound?: (number|null); + /** Represents a ListWebhooksRequest. */ + class ListWebhooksRequest implements IListWebhooksRequest { - /** ConfidenceInterval upperBound */ - upperBound?: (number|null); - } + /** + * Constructs a new ListWebhooksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest); - /** Represents a ConfidenceInterval. */ - class ConfidenceInterval implements IConfidenceInterval { + /** ListWebhooksRequest parent. */ + public parent: string; - /** - * Constructs a new ConfidenceInterval. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval); + /** ListWebhooksRequest pageSize. */ + public pageSize: number; - /** ConfidenceInterval confidenceLevel. */ - public confidenceLevel: number; + /** ListWebhooksRequest pageToken. */ + public pageToken: string; - /** ConfidenceInterval ratio. */ - public ratio: number; + /** + * 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; - /** ConfidenceInterval lowerBound. */ - public lowerBound: number; + /** + * 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; - /** ConfidenceInterval upperBound. */ - public upperBound: number; + /** + * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.verify|verify} messages. + * @param message ListWebhooksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new 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; + /** + * Decodes a ListWebhooksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListWebhooksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; - /** - * Encodes the specified 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; + /** + * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListWebhooksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; - /** - * Encodes the specified 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; + /** + * Verifies a ListWebhooksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes 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; + /** + * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListWebhooksRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; - /** - * Decodes 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; + /** + * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. + * @param message ListWebhooksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies 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); + /** + * Converts this ListWebhooksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Properties of a ListWebhooksResponse. */ + interface IListWebhooksResponse { - /** - * 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 }; + /** ListWebhooksResponse webhooks */ + webhooks?: (google.cloud.dialogflow.cx.v3.IWebhook[]|null); - /** - * Converts this ConfidenceInterval to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ListWebhooksResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Properties of a Metric. */ - interface IMetric { + /** Represents a ListWebhooksResponse. */ + class ListWebhooksResponse implements IListWebhooksResponse { - /** Metric type */ - type?: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null); + /** + * Constructs a new ListWebhooksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse); - /** Metric countType */ - countType?: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null); + /** ListWebhooksResponse webhooks. */ + public webhooks: google.cloud.dialogflow.cx.v3.IWebhook[]; - /** Metric ratio */ - ratio?: (number|null); + /** ListWebhooksResponse nextPageToken. */ + public nextPageToken: string; - /** Metric count */ - count?: (number|null); + /** + * Creates a new ListWebhooksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListWebhooksResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; - /** Metric confidenceInterval */ - confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); - } - - /** Represents a Metric. */ - class Metric implements IMetric { + /** + * 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.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric); + /** + * 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.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Metric type. */ - public type: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType); + /** + * 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 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.ListWebhooksResponse; - /** Metric countType. */ - public countType: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType); + /** + * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ListWebhooksResponse; - /** Metric ratio. */ - public ratio?: (number|null); + /** + * 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); - /** Metric count. */ - public count?: (number|null); + /** + * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListWebhooksResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; - /** Metric confidenceInterval. */ - public confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); + /** + * 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.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Metric value. */ - public value?: ("ratio"|"count"); + /** + * Converts this ListWebhooksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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; + /** Properties of a GetWebhookRequest. */ + interface IGetWebhookRequest { - /** - * 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; + /** GetWebhookRequest name */ + name?: (string|null); + } - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a GetWebhookRequest. */ + class GetWebhookRequest implements IGetWebhookRequest { - /** - * 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; + /** + * Constructs a new GetWebhookRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest); - /** - * 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; + /** GetWebhookRequest name. */ + public name: string; - /** - * 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 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a VersionMetrics. */ - interface IVersionMetrics { + /** + * 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; - /** VersionMetrics version */ - version?: (string|null); + /** + * 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); - /** VersionMetrics metrics */ - metrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]|null); + /** + * 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; - /** VersionMetrics sessionCount */ - sessionCount?: (number|null); - } + /** + * 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 }; - /** Represents a VersionMetrics. */ - class VersionMetrics implements IVersionMetrics { + /** + * Converts this GetWebhookRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Constructs a new VersionMetrics. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics); + /** Properties of a CreateWebhookRequest. */ + interface ICreateWebhookRequest { - /** VersionMetrics version. */ - public version: string; + /** CreateWebhookRequest parent */ + parent?: (string|null); - /** VersionMetrics metrics. */ - public metrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]; + /** CreateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + } - /** VersionMetrics sessionCount. */ - public sessionCount: number; + /** Represents a CreateWebhookRequest. */ + class CreateWebhookRequest implements ICreateWebhookRequest { - /** - * 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; + /** + * Constructs a new CreateWebhookRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest); - /** - * 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; + /** CreateWebhookRequest parent. */ + public parent: string; - /** - * 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; + /** CreateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|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; + /** + * Creates a new CreateWebhookRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateWebhookRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; - /** - * 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; + /** + * 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.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a VersionMetrics message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * 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.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * 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 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.CreateWebhookRequest; - /** - * 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 }; + /** + * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.CreateWebhookRequest; - /** - * Converts this VersionMetrics to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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); - /** MetricType enum. */ - enum MetricType { - METRIC_UNSPECIFIED = 0, - CONTAINED_SESSION_NO_CALLBACK_RATE = 1, - LIVE_AGENT_HANDOFF_RATE = 2, - CALLBACK_SESSION_RATE = 3, - ABANDONED_SESSION_RATE = 4, - SESSION_END_RATE = 5 - } + /** + * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateWebhookRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; - /** CountType enum. */ - enum CountType { - COUNT_TYPE_UNSPECIFIED = 0, - TOTAL_NO_MATCH_COUNT = 1, - TOTAL_TURN_COUNT = 2, - AVERAGE_TURN_COUNT = 3 - } - } + /** + * 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.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DRAFT = 1, - RUNNING = 2, - DONE = 3, - ROLLOUT_FAILED = 4 - } + /** + * Converts this CreateWebhookRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a VersionVariants. */ - interface IVersionVariants { + /** Properties of an UpdateWebhookRequest. */ + interface IUpdateWebhookRequest { - /** VersionVariants variants */ - variants?: (google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]|null); + /** UpdateWebhookRequest webhook */ + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + + /** UpdateWebhookRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a VersionVariants. */ - class VersionVariants implements IVersionVariants { + /** Represents an UpdateWebhookRequest. */ + class UpdateWebhookRequest implements IUpdateWebhookRequest { /** - * Constructs a new VersionVariants. + * Constructs a new UpdateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest); - /** VersionVariants variants. */ - public variants: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]; + /** UpdateWebhookRequest webhook. */ + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + + /** UpdateWebhookRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new VersionVariants instance using the specified properties. + * Creates a new UpdateWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VersionVariants instance + * @returns UpdateWebhookRequest 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.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * 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 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.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, 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 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.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VersionVariants 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 VersionVariants + * @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.VersionVariants; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Decodes a VersionVariants 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 VersionVariants + * @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.VersionVariants; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Verifies a VersionVariants 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 VersionVariants 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 VersionVariants + * @returns UpdateWebhookRequest */ - 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.UpdateWebhookRequest; /** - * Creates a plain object from a VersionVariants message. Also converts values to other types if specified. - * @param message VersionVariants + * 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.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VersionVariants to JSON. + * Converts this UpdateWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace VersionVariants { - - /** Properties of a Variant. */ - interface IVariant { + /** Properties of a DeleteWebhookRequest. */ + interface IDeleteWebhookRequest { - /** Variant version */ - version?: (string|null); + /** DeleteWebhookRequest name */ + name?: (string|null); - /** Variant trafficAllocation */ - trafficAllocation?: (number|null); + /** DeleteWebhookRequest force */ + force?: (boolean|null); + } - /** Variant isControlGroup */ - isControlGroup?: (boolean|null); - } + /** Represents a DeleteWebhookRequest. */ + class DeleteWebhookRequest implements IDeleteWebhookRequest { - /** Represents a Variant. */ - class Variant implements IVariant { + /** + * Constructs a new DeleteWebhookRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest); - /** - * Constructs a new Variant. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant); + /** DeleteWebhookRequest name. */ + public name: string; - /** 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 }; - } - } - - /** 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"; + /** DeleteWebhookRequest force. */ + public force: boolean; /** - * Creates a new VariantsHistory instance using the specified properties. + * Creates a new DeleteWebhookRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VariantsHistory instance + * @returns DeleteWebhookRequest 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.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * 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 DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. + * @param message DeleteWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, 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 DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.verify|verify} messages. + * @param message DeleteWebhookRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VariantsHistory message from the specified reader or buffer. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VariantsHistory + * @returns DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VariantsHistory; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. + * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VariantsHistory + * @returns DeleteWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VariantsHistory; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Verifies a VariantsHistory message. + * Verifies a DeleteWebhookRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VariantsHistory + * @returns DeleteWebhookRequest */ - 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.DeleteWebhookRequest; /** - * 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 DeleteWebhookRequest message. Also converts values to other types if specified. + * @param message DeleteWebhookRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VariantsHistory to JSON. + * Converts this DeleteWebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a RolloutConfig. */ - interface IRolloutConfig { + /** Properties of a WebhookRequest. */ + interface IWebhookRequest { - /** RolloutConfig rolloutSteps */ - rolloutSteps?: (google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]|null); + /** WebhookRequest detectIntentResponseId */ + detectIntentResponseId?: (string|null); - /** RolloutConfig rolloutCondition */ - rolloutCondition?: (string|null); + /** WebhookRequest text */ + text?: (string|null); - /** RolloutConfig failureCondition */ - failureCondition?: (string|null); - } + /** WebhookRequest triggerIntent */ + triggerIntent?: (string|null); - /** Represents a RolloutConfig. */ - class RolloutConfig implements IRolloutConfig { + /** WebhookRequest transcript */ + transcript?: (string|null); - /** - * Constructs a new RolloutConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig); + /** WebhookRequest triggerEvent */ + triggerEvent?: (string|null); - /** RolloutConfig rolloutSteps. */ - public rolloutSteps: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]; + /** WebhookRequest languageCode */ + languageCode?: (string|null); - /** RolloutConfig rolloutCondition. */ - public rolloutCondition: string; + /** WebhookRequest fulfillmentInfo */ + fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); - /** RolloutConfig failureCondition. */ - public failureCondition: string; + /** WebhookRequest intentInfo */ + intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); - /** - * 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; + /** WebhookRequest pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - /** - * 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; + /** WebhookRequest sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - /** - * 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; + /** WebhookRequest messages */ + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - /** - * 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; + /** WebhookRequest payload */ + payload?: (google.protobuf.IStruct|null); - /** - * 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; + /** WebhookRequest sentimentAnalysisResult */ + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); + } - /** - * 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); + /** Represents a WebhookRequest. */ + class WebhookRequest implements IWebhookRequest { /** - * Creates a RolloutConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RolloutConfig + * Constructs a new WebhookRequest. + * @param [properties] Properties to set */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig; + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest); - /** - * Creates a plain object from a RolloutConfig message. Also converts values to other types if specified. - * @param message RolloutConfig + /** 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 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); + + /** WebhookRequest query. */ + public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + + /** + * Creates a new WebhookRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WebhookRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest): google.cloud.dialogflow.cx.v3.WebhookRequest; + + /** + * 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.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. + * @param message WebhookRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest; + + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest; + + /** + * Verifies a WebhookRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns WebhookRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest; + + /** + * 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.RolloutConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RolloutConfig to JSON. + * Converts this WebhookRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace RolloutConfig { - - /** Properties of a RolloutStep. */ - interface IRolloutStep { - - /** RolloutStep displayName */ - displayName?: (string|null); + namespace WebhookRequest { - /** RolloutStep trafficPercent */ - trafficPercent?: (number|null); + /** Properties of a FulfillmentInfo. */ + interface IFulfillmentInfo { - /** RolloutStep minDuration */ - minDuration?: (google.protobuf.IDuration|null); + /** FulfillmentInfo tag */ + tag?: (string|null); } - /** Represents a RolloutStep. */ - class RolloutStep implements IRolloutStep { + /** Represents a FulfillmentInfo. */ + class FulfillmentInfo implements IFulfillmentInfo { /** - * Constructs a new RolloutStep. + * Constructs a new FulfillmentInfo. * @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.WebhookRequest.IFulfillmentInfo); - /** RolloutStep minDuration. */ - public minDuration?: (google.protobuf.IDuration|null); + /** FulfillmentInfo tag. */ + public tag: string; /** - * Creates a new RolloutStep instance using the specified properties. + * Creates a new FulfillmentInfo instance using the specified properties. * @param [properties] Properties to set - * @returns RolloutStep instance + * @returns FulfillmentInfo 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.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * 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 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.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, 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 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.RolloutConfig.IRolloutStep, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RolloutStep 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 RolloutStep + * @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.RolloutConfig.RolloutStep; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * Decodes a RolloutStep 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 RolloutStep + * @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.RolloutConfig.RolloutStep; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * Verifies a RolloutStep 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 RolloutStep 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 RolloutStep + * @returns FulfillmentInfo */ - 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.WebhookRequest.FulfillmentInfo; /** - * 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 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.RolloutConfig.RolloutStep, 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 RolloutStep to JSON. + * Converts this FulfillmentInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - /** Properties of a RolloutState. */ - interface IRolloutState { + /** Properties of an IntentInfo. */ + interface IIntentInfo { - /** RolloutState step */ - step?: (string|null); + /** IntentInfo lastMatchedIntent */ + lastMatchedIntent?: (string|null); - /** RolloutState stepIndex */ - stepIndex?: (number|null); + /** IntentInfo displayName */ + displayName?: (string|null); - /** RolloutState startTime */ - startTime?: (google.protobuf.ITimestamp|null); - } + /** IntentInfo parameters */ + parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }|null); - /** Represents a RolloutState. */ - class RolloutState implements IRolloutState { + /** IntentInfo confidence */ + confidence?: (number|null); + } - /** - * Constructs a new RolloutState. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutState); + /** Represents an IntentInfo. */ + class IntentInfo implements IIntentInfo { - /** RolloutState step. */ - public step: string; + /** + * Constructs a new IntentInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo); - /** RolloutState stepIndex. */ - public stepIndex: number; + /** IntentInfo lastMatchedIntent. */ + public lastMatchedIntent: string; - /** RolloutState startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** IntentInfo displayName. */ + public displayName: string; - /** - * 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; + /** IntentInfo parameters. */ + public parameters: { [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }; - /** - * 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; + /** IntentInfo confidence. */ + public confidence: number; - /** - * 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 }; - } - - /** 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 new IntentInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns IntentInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - /** - * 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; + /** + * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * @param message IntentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 }; + /** + * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. + * @param message IntentInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ListExperimentsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes an IntentInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - /** Properties of a ListExperimentsResponse. */ - interface IListExperimentsResponse { + /** + * Decodes an IntentInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntentInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - /** ListExperimentsResponse experiments */ - experiments?: (google.cloud.dialogflow.cx.v3.IExperiment[]|null); + /** + * 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); - /** ListExperimentsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntentInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; - /** Represents a ListExperimentsResponse. */ - class ListExperimentsResponse implements IListExperimentsResponse { + /** + * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. + * @param message IntentInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ListExperimentsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse); + /** + * Converts this IntentInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ListExperimentsResponse experiments. */ - public experiments: google.cloud.dialogflow.cx.v3.IExperiment[]; + namespace IntentInfo { - /** ListExperimentsResponse nextPageToken. */ - public nextPageToken: string; + /** Properties of an IntentParameterValue. */ + interface IIntentParameterValue { - /** - * 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; + /** IntentParameterValue originalValue */ + originalValue?: (string|null); - /** - * 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; + /** IntentParameterValue resolvedValue */ + resolvedValue?: (google.protobuf.IValue|null); + } - /** - * 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; + /** Represents an IntentParameterValue. */ + class IntentParameterValue implements IIntentParameterValue { - /** - * 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; + /** + * Constructs a new IntentParameterValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue); - /** - * 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; + /** IntentParameterValue originalValue. */ + public originalValue: string; - /** - * 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); + /** IntentParameterValue resolvedValue. */ + public resolvedValue?: (google.protobuf.IValue|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 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this ListExperimentsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a GetExperimentRequest. */ - interface IGetExperimentRequest { + /** + * 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; - /** GetExperimentRequest name */ - name?: (string|null); - } + /** + * 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; - /** Represents a GetExperimentRequest. */ - class GetExperimentRequest implements IGetExperimentRequest { + /** + * 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); - /** - * Constructs a new GetExperimentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest); + /** + * 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; - /** GetExperimentRequest name. */ - public name: string; + /** + * 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 }; - /** - * 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; + /** + * Converts this IntentParameterValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** - * 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; + /** Properties of a SentimentAnalysisResult. */ + interface ISentimentAnalysisResult { - /** - * 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; + /** SentimentAnalysisResult score */ + score?: (number|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; + /** SentimentAnalysisResult magnitude */ + magnitude?: (number|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; + /** Represents a SentimentAnalysisResult. */ + class SentimentAnalysisResult implements ISentimentAnalysisResult { - /** - * 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); + /** + * Constructs a new SentimentAnalysisResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult); - /** - * 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; + /** SentimentAnalysisResult score. */ + public score: number; - /** - * 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 }; + /** SentimentAnalysisResult magnitude. */ + public magnitude: number; - /** - * Converts this GetExperimentRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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; - /** Properties of a CreateExperimentRequest. */ - interface ICreateExperimentRequest { + /** + * 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; - /** CreateExperimentRequest parent */ - parent?: (string|null); + /** + * 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; - /** CreateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|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; - /** Represents a CreateExperimentRequest. */ - class CreateExperimentRequest implements ICreateExperimentRequest { + /** + * 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; - /** - * Constructs a new CreateExperimentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest); + /** + * 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); - /** CreateExperimentRequest parent. */ - public parent: string; + /** + * 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; - /** CreateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** + * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. + * @param message SentimentAnalysisResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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; + /** + * Converts this SentimentAnalysisResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** - * 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; + /** Properties of a WebhookResponse. */ + interface IWebhookResponse { - /** - * 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; + /** WebhookResponse fulfillmentResponse */ + fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - /** - * 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; + /** WebhookResponse pageInfo */ + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - /** - * 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; + /** WebhookResponse sessionInfo */ + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - /** - * 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); + /** WebhookResponse payload */ + payload?: (google.protobuf.IStruct|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; + /** WebhookResponse targetPage */ + targetPage?: (string|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 }; + /** WebhookResponse targetFlow */ + targetFlow?: (string|null); + } + + /** Represents a WebhookResponse. */ + class WebhookResponse implements IWebhookResponse { /** - * Converts this CreateExperimentRequest to JSON. - * @returns JSON object + * Constructs a new WebhookResponse. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; - } + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse); - /** Properties of an UpdateExperimentRequest. */ - interface IUpdateExperimentRequest { + /** WebhookResponse fulfillmentResponse. */ + public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); - /** UpdateExperimentRequest experiment */ - experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** WebhookResponse pageInfo. */ + public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); - /** UpdateExperimentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** WebhookResponse sessionInfo. */ + public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); - /** Represents an UpdateExperimentRequest. */ - class UpdateExperimentRequest implements IUpdateExperimentRequest { + /** WebhookResponse payload. */ + public payload?: (google.protobuf.IStruct|null); - /** - * Constructs a new UpdateExperimentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest); + /** WebhookResponse targetPage. */ + public targetPage?: (string|null); - /** UpdateExperimentRequest experiment. */ - public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + /** WebhookResponse targetFlow. */ + public targetFlow?: (string|null); - /** UpdateExperimentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** WebhookResponse transition. */ + public transition?: ("targetPage"|"targetFlow"); /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new WebhookResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExperimentRequest instance + * @returns WebhookResponse 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.IWebhookResponse): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * 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 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.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, 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 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.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExperimentRequest 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 UpdateExperimentRequest + * @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.UpdateExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Decodes an UpdateExperimentRequest 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 UpdateExperimentRequest + * @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.UpdateExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Verifies an UpdateExperimentRequest 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 an UpdateExperimentRequest 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 UpdateExperimentRequest + * @returns WebhookResponse */ - 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.WebhookResponse; /** - * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. - * @param message UpdateExperimentRequest + * Creates a plain object from a 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.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this WebhookResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteExperimentRequest. */ - interface IDeleteExperimentRequest { + namespace WebhookResponse { - /** DeleteExperimentRequest name */ - name?: (string|null); - } + /** Properties of a FulfillmentResponse. */ + interface IFulfillmentResponse { - /** Represents a DeleteExperimentRequest. */ - class DeleteExperimentRequest implements IDeleteExperimentRequest { + /** FulfillmentResponse messages */ + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); - /** - * Constructs a new DeleteExperimentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest); + /** FulfillmentResponse mergeBehavior */ + mergeBehavior?: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null); + } - /** DeleteExperimentRequest name. */ - public name: string; + /** Represents a FulfillmentResponse. */ + class FulfillmentResponse implements IFulfillmentResponse { - /** - * 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; + /** + * Constructs a new FulfillmentResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse); - /** - * 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; + /** FulfillmentResponse messages. */ + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; - /** - * 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; + /** FulfillmentResponse mergeBehavior. */ + public mergeBehavior: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior); - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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 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; + /** + * 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this DeleteExperimentRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a FulfillmentResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; + + /** + * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. + * @param message FulfillmentResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FulfillmentResponse { + + /** MergeBehavior enum. */ + enum MergeBehavior { + MERGE_BEHAVIOR_UNSPECIFIED = 0, + APPEND = 1, + REPLACE = 2 + } + } } - /** Properties of a StartExperimentRequest. */ - interface IStartExperimentRequest { + /** Properties of a PageInfo. */ + interface IPageInfo { - /** StartExperimentRequest name */ - name?: (string|null); + /** PageInfo currentPage */ + currentPage?: (string|null); + + /** PageInfo formInfo */ + formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); } - /** Represents a StartExperimentRequest. */ - class StartExperimentRequest implements IStartExperimentRequest { + /** Represents a PageInfo. */ + class PageInfo implements IPageInfo { /** - * Constructs a new StartExperimentRequest. + * Constructs a new PageInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IPageInfo); - /** StartExperimentRequest name. */ - public name: string; + /** PageInfo currentPage. */ + public currentPage: string; + + /** PageInfo formInfo. */ + public formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); /** - * Creates a new StartExperimentRequest instance using the specified properties. + * Creates a new PageInfo instance using the specified properties. * @param [properties] Properties to set - * @returns StartExperimentRequest instance + * @returns PageInfo 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.IPageInfo): google.cloud.dialogflow.cx.v3.PageInfo; /** - * 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 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.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IPageInfo, 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 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.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartExperimentRequest 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 StartExperimentRequest + * @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.StartExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Decodes a StartExperimentRequest 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 StartExperimentRequest + * @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.StartExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Verifies a StartExperimentRequest 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 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 PageInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PageInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo; + + /** + * 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.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PageInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace PageInfo { + + /** Properties of a FormInfo. */ + interface IFormInfo { + + /** FormInfo parameterInfo */ + parameterInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]|null); + } + + /** Represents a FormInfo. */ + class FormInfo implements IFormInfo { + + /** + * Constructs a new FormInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo); + + /** FormInfo parameterInfo. */ + public parameterInfo: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]; + + /** + * Creates a new FormInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns FormInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Encodes the specified FormInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @param message FormInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FormInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify|verify} messages. + * @param message FormInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FormInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Decodes a FormInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FormInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Verifies a FormInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FormInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + + /** + * Creates a plain object from a FormInfo message. Also converts values to other types if specified. + * @param message FormInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FormInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FormInfo { + + /** Properties of a ParameterInfo. */ + interface IParameterInfo { + + /** ParameterInfo displayName */ + displayName?: (string|null); + + /** ParameterInfo required */ + required?: (boolean|null); + + /** ParameterInfo state */ + state?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null); + + /** ParameterInfo value */ + value?: (google.protobuf.IValue|null); + + /** ParameterInfo justCollected */ + justCollected?: (boolean|null); + } + + /** Represents a ParameterInfo. */ + class ParameterInfo implements IParameterInfo { + + /** + * Constructs a new ParameterInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo); + + /** ParameterInfo displayName. */ + public displayName: string; + + /** ParameterInfo required. */ + public required: boolean; + + /** ParameterInfo state. */ + public state: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState); + + /** ParameterInfo value. */ + public value?: (google.protobuf.IValue|null); + + /** ParameterInfo justCollected. */ + public justCollected: boolean; + + /** + * Creates a new ParameterInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @param message ParameterInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * @param message ParameterInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParameterInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Verifies a ParameterInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParameterInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; + + /** + * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. + * @param message ParameterInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ParameterInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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 }; + namespace ParameterInfo { - /** - * Converts this StartExperimentRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ParameterState enum. */ + enum ParameterState { + PARAMETER_STATE_UNSPECIFIED = 0, + EMPTY = 1, + INVALID = 2, + FILLED = 3 + } + } + } } - /** Properties of a StopExperimentRequest. */ - interface IStopExperimentRequest { + /** Properties of a SessionInfo. */ + interface ISessionInfo { - /** StopExperimentRequest name */ - name?: (string|null); + /** SessionInfo session */ + session?: (string|null); + + /** SessionInfo parameters */ + parameters?: ({ [k: string]: google.protobuf.IValue }|null); } - /** Represents a StopExperimentRequest. */ - class StopExperimentRequest implements IStopExperimentRequest { + /** Represents a SessionInfo. */ + class SessionInfo implements ISessionInfo { /** - * Constructs a new StopExperimentRequest. + * Constructs a new SessionInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo); - /** StopExperimentRequest name. */ - public name: string; + /** SessionInfo session. */ + public session: string; + + /** SessionInfo parameters. */ + public parameters: { [k: string]: google.protobuf.IValue }; /** - * Creates a new StopExperimentRequest instance using the specified properties. + * Creates a new SessionInfo instance using the specified properties. * @param [properties] Properties to set - * @returns StopExperimentRequest instance + * @returns SessionInfo 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.ISessionInfo): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * 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 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.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISessionInfo, 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 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.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopExperimentRequest 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 StopExperimentRequest + * @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.StopExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Decodes a StopExperimentRequest 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 StopExperimentRequest + * @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.StopExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Verifies a StopExperimentRequest 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 StopExperimentRequest 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 StopExperimentRequest + * @returns SessionInfo */ - 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.SessionInfo; /** - * 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 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.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this SessionInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Versions */ - class Versions extends $protobuf.rpc.Service { + /** Represents an Experiments */ + class Experiments extends $protobuf.rpc.Service { /** - * Constructs a new Versions service. + * Constructs a new Experiments service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -24317,3498 +24410,3504 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new Versions service using the specified rpc implementation. + * 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): Versions; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Experiments; /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListVersionsResponse + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExperimentsResponse */ - public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback): void; + public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback): void; /** - * Calls ListVersions. - * @param request ListVersionsRequest message or plain object + * Calls ListExperiments. + * @param request ListExperimentsRequest message or plain object * @returns Promise */ - public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest): Promise; + public listExperiments(request: google.cloud.dialogflow.cx.v3.IListExperimentsRequest): Promise; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback): void; + public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback): void; /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object + * Calls GetExperiment. + * @param request GetExperimentRequest message or plain object * @returns Promise */ - public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest): Promise; + public getExperiment(request: google.cloud.dialogflow.cx.v3.IGetExperimentRequest): Promise; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback): void; + public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback): void; /** - * Calls CreateVersion. - * @param request CreateVersionRequest message or plain object + * Calls CreateExperiment. + * @param request CreateExperimentRequest message or plain object * @returns Promise */ - public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): Promise; + public createExperiment(request: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest): Promise; /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Version + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback): void; + public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback): void; /** - * Calls UpdateVersion. - * @param request UpdateVersionRequest message or plain object + * Calls UpdateExperiment. + * @param request UpdateExperimentRequest message or plain object * @returns Promise */ - public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): Promise; + public updateExperiment(request: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest): Promise; /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback): void; - - /** - * Calls DeleteVersion. - * @param request DeleteVersionRequest message or plain object - * @returns Promise - */ - public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): Promise; - - /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback): void; - - /** - * Calls LoadVersion. - * @param request LoadVersionRequest message or plain object - * @returns Promise - */ - public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): Promise; - - /** - * Calls CompareVersions. - * @param request CompareVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CompareVersionsResponse - */ - public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback): void; - - /** - * Calls CompareVersions. - * @param request CompareVersionsRequest message or plain object - * @returns Promise - */ - public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): Promise; - } - - namespace Versions { - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#listVersions}. - * @param error Error, if any - * @param [response] ListVersionsResponse - */ - type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListVersionsResponse) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#getVersion}. - * @param error Error, if any - * @param [response] Version - */ - type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#createVersion}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#updateVersion}. - * @param error Error, if any - * @param [response] Version - */ - type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#deleteVersion}. - * @param error Error, if any - * @param [response] Empty - */ - type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#loadVersion}. - * @param error Error, if any - * @param [response] Operation - */ - type LoadVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback): void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#compareVersions}. - * @param error Error, if any - * @param [response] CompareVersionsResponse + * Calls DeleteExperiment. + * @param request DeleteExperimentRequest message or plain object + * @returns Promise */ - type CompareVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CompareVersionsResponse) => void; - } - - /** Properties of a CreateVersionOperationMetadata. */ - interface ICreateVersionOperationMetadata { - - /** CreateVersionOperationMetadata version */ - version?: (string|null); - } - - /** Represents a CreateVersionOperationMetadata. */ - class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { + public deleteExperiment(request: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest): Promise; /** - * Constructs a new CreateVersionOperationMetadata. - * @param [properties] Properties to set + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata); + public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StartExperimentCallback): void; - /** CreateVersionOperationMetadata version. */ - public version: string; + /** + * Calls StartExperiment. + * @param request StartExperimentRequest message or plain object + * @returns Promise + */ + public startExperiment(request: google.cloud.dialogflow.cx.v3.IStartExperimentRequest): Promise; /** - * Creates a new CreateVersionOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateVersionOperationMetadata instance + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Experiment */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, callback: google.cloud.dialogflow.cx.v3.Experiments.StopExperimentCallback): void; /** - * 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 + * Calls StopExperiment. + * @param request StopExperimentRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public stopExperiment(request: google.cloud.dialogflow.cx.v3.IStopExperimentRequest): Promise; + } + + namespace Experiments { /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. + * @param error Error, if any + * @param [response] ListExperimentsResponse */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + type ListExperimentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListExperimentsResponse) => void; /** - * 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 CreateVersionOperationMetadata - * @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 decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + type GetExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateVersionOperationMetadata - * @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#createExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + type CreateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Verifies a CreateVersionOperationMetadata 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#updateExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static verify(message: { [k: string]: any }): (string|null); + type UpdateExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateVersionOperationMetadata + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. + * @param error Error, if any + * @param [response] Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; + type DeleteExperimentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * 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 + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#startExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type StartExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; /** - * Converts this CreateVersionOperationMetadata to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#stopExperiment}. + * @param error Error, if any + * @param [response] Experiment */ - public toJSON(): { [k: string]: any }; + type StopExperimentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Experiment) => void; } - /** Properties of a Version. */ - interface IVersion { + /** Properties of an Experiment. */ + interface IExperiment { - /** Version name */ + /** Experiment name */ name?: (string|null); - /** Version displayName */ + /** Experiment displayName */ displayName?: (string|null); - /** Version description */ + /** Experiment 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); - } + /** Experiment state */ + state?: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State|null); - /** Represents a Version. */ - class Version implements IVersion { + /** Experiment definition */ + definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); - /** - * Constructs a new Version. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVersion); + /** Experiment rolloutConfig */ + rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); - /** Version name. */ - public name: string; + /** Experiment rolloutState */ + rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); - /** Version displayName. */ - public displayName: string; + /** Experiment rolloutFailureReason */ + rolloutFailureReason?: (string|null); - /** Version description. */ - public description: string; + /** Experiment result */ + result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); - /** Version nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + /** Experiment createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Version createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Experiment startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** Version state. */ - public state: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State); + /** Experiment endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new Version instance using the specified properties. - * @param [properties] Properties to set - * @returns Version instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IVersion): google.cloud.dialogflow.cx.v3.Version; + /** Experiment lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. - * @param message Version message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + /** Experiment experimentLength */ + experimentLength?: (google.protobuf.IDuration|null); - /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. - * @param message Version message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + /** Experiment variantsHistory */ + variantsHistory?: (google.cloud.dialogflow.cx.v3.IVariantsHistory[]|null); + } - /** - * Decodes a Version message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Version - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Version; + /** Represents an Experiment. */ + class Experiment implements IExperiment { /** - * Decodes a Version message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Version - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new Experiment. + * @param [properties] Properties to set */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Version; + constructor(properties?: google.cloud.dialogflow.cx.v3.IExperiment); - /** - * 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); + /** Experiment name. */ + public name: string; - /** - * Creates a Version message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Version - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Version; + /** Experiment displayName. */ + public displayName: string; - /** - * Creates a plain object from a Version message. Also converts values to other types if specified. - * @param message Version - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Experiment description. */ + public description: string; - /** - * Converts this Version to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Experiment state. */ + public state: (google.cloud.dialogflow.cx.v3.Experiment.State|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.State); - namespace Version { + /** Experiment definition. */ + public definition?: (google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null); - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - RUNNING = 1, - SUCCEEDED = 2, - FAILED = 3 - } - } + /** Experiment rolloutConfig. */ + public rolloutConfig?: (google.cloud.dialogflow.cx.v3.IRolloutConfig|null); - /** Properties of a ListVersionsRequest. */ - interface IListVersionsRequest { + /** Experiment rolloutState. */ + public rolloutState?: (google.cloud.dialogflow.cx.v3.IRolloutState|null); - /** ListVersionsRequest parent */ - parent?: (string|null); + /** Experiment rolloutFailureReason. */ + public rolloutFailureReason: string; - /** ListVersionsRequest pageSize */ - pageSize?: (number|null); + /** Experiment result. */ + public result?: (google.cloud.dialogflow.cx.v3.Experiment.IResult|null); - /** ListVersionsRequest pageToken */ - pageToken?: (string|null); - } + /** Experiment createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Represents a ListVersionsRequest. */ - class ListVersionsRequest implements IListVersionsRequest { + /** Experiment startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ListVersionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest); + /** Experiment endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** ListVersionsRequest parent. */ - public parent: string; + /** Experiment lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); - /** ListVersionsRequest pageSize. */ - public pageSize: number; + /** Experiment experimentLength. */ + public experimentLength?: (google.protobuf.IDuration|null); - /** ListVersionsRequest pageToken. */ - public pageToken: string; + /** Experiment variantsHistory. */ + public variantsHistory: google.cloud.dialogflow.cx.v3.IVariantsHistory[]; /** - * Creates a new ListVersionsRequest instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @param [properties] Properties to set - * @returns ListVersionsRequest instance + * @returns Experiment 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.IExperiment): google.cloud.dialogflow.cx.v3.Experiment; /** - * 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 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.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExperiment, 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 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.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExperiment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListVersionsRequest 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 ListVersionsRequest + * @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.ListVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment; /** - * Decodes a ListVersionsRequest 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 ListVersionsRequest + * @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.ListVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment; /** - * Verifies a ListVersionsRequest 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 a ListVersionsRequest 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 ListVersionsRequest + * @returns Experiment */ - 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.Experiment; /** - * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. - * @param message ListVersionsRequest + * 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.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListVersionsRequest to JSON. + * Converts this Experiment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListVersionsResponse. */ - interface IListVersionsResponse { + namespace Experiment { - /** ListVersionsResponse versions */ - versions?: (google.cloud.dialogflow.cx.v3.IVersion[]|null); + /** Properties of a Definition. */ + interface IDefinition { - /** ListVersionsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** Definition condition */ + condition?: (string|null); - /** Represents a ListVersionsResponse. */ - class ListVersionsResponse implements IListVersionsResponse { + /** Definition versionVariants */ + versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); + } - /** - * Constructs a new ListVersionsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse); + /** Represents a Definition. */ + class Definition implements IDefinition { - /** ListVersionsResponse versions. */ - public versions: google.cloud.dialogflow.cx.v3.IVersion[]; + /** + * Constructs a new Definition. + * @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); + + /** 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 }; + } + + /** 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; - /** ListVersionsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Decodes a Result message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result; - /** - * Creates a new ListVersionsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListVersionsResponse instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + /** + * 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; - /** - * 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.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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); - /** - * 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.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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; - /** - * 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 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.ListVersionsResponse; + /** + * 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 }; - /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.ListVersionsResponse; + /** + * Converts this Result to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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); + namespace Result { - /** - * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListVersionsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsResponse; + /** Properties of a ConfidenceInterval. */ + interface IConfidenceInterval { - /** - * 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.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ConfidenceInterval confidenceLevel */ + confidenceLevel?: (number|null); - /** - * Converts this ListVersionsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ConfidenceInterval ratio */ + ratio?: (number|null); - /** Properties of a GetVersionRequest. */ - interface IGetVersionRequest { + /** ConfidenceInterval lowerBound */ + lowerBound?: (number|null); - /** GetVersionRequest name */ - name?: (string|null); - } + /** ConfidenceInterval upperBound */ + upperBound?: (number|null); + } - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { + /** Represents a ConfidenceInterval. */ + class ConfidenceInterval implements IConfidenceInterval { - /** - * Constructs a new GetVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest); + /** + * Constructs a new ConfidenceInterval. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval); - /** GetVersionRequest name. */ - public name: string; + /** ConfidenceInterval confidenceLevel. */ + public confidenceLevel: number; - /** - * 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; + /** ConfidenceInterval ratio. */ + public ratio: number; - /** - * 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; + /** ConfidenceInterval lowerBound. */ + public lowerBound: number; - /** - * 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; + /** ConfidenceInterval upperBound. */ + public upperBound: number; - /** - * 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; + /** + * 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; - /** - * 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 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; - /** - * 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); + /** + * 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; - /** - * 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 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; - /** - * 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 }; + /** + * 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; - /** - * Converts this GetVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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); - /** Properties of a CreateVersionRequest. */ - interface ICreateVersionRequest { + /** + * 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; - /** CreateVersionRequest parent */ - parent?: (string|null); + /** + * Creates a plain object from a ConfidenceInterval message. Also converts values to other types if specified. + * @param message ConfidenceInterval + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CreateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - } + /** + * Converts this ConfidenceInterval to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a CreateVersionRequest. */ - class CreateVersionRequest implements ICreateVersionRequest { + /** Properties of a Metric. */ + interface IMetric { - /** - * Constructs a new CreateVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest); + /** Metric type */ + type?: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|null); - /** CreateVersionRequest parent. */ - public parent: string; + /** Metric countType */ + countType?: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|null); - /** CreateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** Metric ratio */ + ratio?: (number|null); - /** - * Creates a new CreateVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateVersionRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + /** Metric count */ + count?: (number|null); - /** - * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. - * @param message CreateVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Metric confidenceInterval */ + confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); + } - /** - * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. - * @param message CreateVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a Metric. */ + class Metric implements IMetric { - /** - * 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 static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + /** + * Constructs a new Metric. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric); - /** - * 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 static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + /** Metric type. */ + public type: (google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType); - /** - * Verifies a CreateVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Metric countType. */ + public countType: (google.cloud.dialogflow.cx.v3.Experiment.Result.CountType|keyof typeof google.cloud.dialogflow.cx.v3.Experiment.Result.CountType); - /** - * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionRequest; + /** Metric ratio. */ + public ratio?: (number|null); - /** - * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. - * @param message CreateVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Metric count. */ + public count?: (number|null); - /** - * Converts this CreateVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Metric confidenceInterval. */ + public confidenceInterval?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IConfidenceInterval|null); - /** Properties of an UpdateVersionRequest. */ - interface IUpdateVersionRequest { + /** Metric value. */ + public value?: ("ratio"|"count"); - /** UpdateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** + * 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; - /** UpdateVersionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** + * 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; - /** Represents an UpdateVersionRequest. */ - class UpdateVersionRequest implements IUpdateVersionRequest { + /** + * 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; - /** - * Constructs a new UpdateVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest); + /** + * 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; - /** UpdateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + /** + * 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; - /** UpdateVersionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * 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 new UpdateVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateVersionRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + /** + * 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; - /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. - * @param message UpdateVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * 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 }; - /** - * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. - * @param message UpdateVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this Metric to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + /** Properties of a VersionMetrics. */ + interface IVersionMetrics { - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + /** VersionMetrics version */ + version?: (string|null); - /** - * Verifies an UpdateVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** VersionMetrics metrics */ + metrics?: (google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]|null); - /** - * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; + /** VersionMetrics sessionCount */ + sessionCount?: (number|null); + } - /** - * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. - * @param message UpdateVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a VersionMetrics. */ + class VersionMetrics implements IVersionMetrics { - /** - * Converts this UpdateVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Constructs a new VersionMetrics. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics); - /** Properties of a DeleteVersionRequest. */ - interface IDeleteVersionRequest { + /** VersionMetrics version. */ + public version: string; - /** DeleteVersionRequest name */ - name?: (string|null); - } + /** VersionMetrics metrics. */ + public metrics: google.cloud.dialogflow.cx.v3.Experiment.Result.IMetric[]; - /** Represents a DeleteVersionRequest. */ - class DeleteVersionRequest implements IDeleteVersionRequest { + /** VersionMetrics sessionCount. */ + public sessionCount: number; - /** - * Constructs a new DeleteVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest); + /** + * 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; - /** DeleteVersionRequest name. */ - public name: string; + /** + * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new DeleteVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteVersionRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + /** + * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. + * @param message VersionMetrics message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified 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.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; - /** - * Encodes the specified 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.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; - /** - * Decodes a 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 - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + /** + * Verifies a VersionMetrics message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a 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 - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VersionMetrics + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics; - /** - * Verifies a 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 plain object from a VersionMetrics message. Also converts values to other types if specified. + * @param message VersionMetrics + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; + /** + * Converts this VersionMetrics to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MetricType enum. */ + enum MetricType { + METRIC_UNSPECIFIED = 0, + CONTAINED_SESSION_NO_CALLBACK_RATE = 1, + LIVE_AGENT_HANDOFF_RATE = 2, + CALLBACK_SESSION_RATE = 3, + ABANDONED_SESSION_RATE = 4, + SESSION_END_RATE = 5 + } - /** - * Converts this DeleteVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** CountType enum. */ + enum CountType { + COUNT_TYPE_UNSPECIFIED = 0, + TOTAL_NO_MATCH_COUNT = 1, + TOTAL_TURN_COUNT = 2, + AVERAGE_TURN_COUNT = 3 + } + } - /** Properties of a LoadVersionRequest. */ - interface ILoadVersionRequest { + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + DRAFT = 1, + RUNNING = 2, + DONE = 3, + ROLLOUT_FAILED = 4 + } + } - /** LoadVersionRequest name */ - name?: (string|null); + /** Properties of a VersionVariants. */ + interface IVersionVariants { - /** LoadVersionRequest allowOverrideAgentResources */ - allowOverrideAgentResources?: (boolean|null); + /** VersionVariants variants */ + variants?: (google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]|null); } - /** Represents a LoadVersionRequest. */ - class LoadVersionRequest implements ILoadVersionRequest { + /** Represents a VersionVariants. */ + class VersionVariants implements IVersionVariants { /** - * Constructs a new LoadVersionRequest. + * Constructs a new VersionVariants. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest); - - /** LoadVersionRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants); - /** LoadVersionRequest allowOverrideAgentResources. */ - public allowOverrideAgentResources: boolean; + /** VersionVariants variants. */ + public variants: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant[]; /** - * Creates a new LoadVersionRequest instance using the specified properties. + * Creates a new VersionVariants instance using the specified properties. * @param [properties] Properties to set - * @returns LoadVersionRequest instance + * @returns VersionVariants instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IVersionVariants): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. - * @param message LoadVersionRequest message or plain object to encode + * Encodes the specified 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.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. - * @param message LoadVersionRequest message or plain object to encode + * Encodes the specified 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.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersionVariants, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer. + * Decodes a VersionVariants message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LoadVersionRequest + * @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.LoadVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. + * Decodes a VersionVariants message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LoadVersionRequest + * @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.LoadVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Verifies a LoadVersionRequest message. + * Verifies a VersionVariants message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VersionVariants message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LoadVersionRequest + * @returns VersionVariants */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LoadVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants; /** - * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. - * @param message LoadVersionRequest + * Creates a plain object from a 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.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LoadVersionRequest to JSON. + * Converts this VersionVariants to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CompareVersionsRequest. */ - interface ICompareVersionsRequest { + namespace VersionVariants { - /** CompareVersionsRequest baseVersion */ - baseVersion?: (string|null); + /** Properties of a Variant. */ + interface IVariant { - /** CompareVersionsRequest targetVersion */ - targetVersion?: (string|null); + /** Variant version */ + version?: (string|null); - /** CompareVersionsRequest languageCode */ - languageCode?: (string|null); + /** Variant trafficAllocation */ + trafficAllocation?: (number|null); + + /** Variant isControlGroup */ + isControlGroup?: (boolean|null); + } + + /** Represents a Variant. */ + class Variant implements IVariant { + + /** + * Constructs a new Variant. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant); + + /** Variant version. */ + public version: string; + + /** Variant trafficAllocation. */ + public trafficAllocation: number; + + /** Variant isControlGroup. */ + public isControlGroup: boolean; + + /** + * Creates a new Variant instance using the specified properties. + * @param [properties] Properties to set + * @returns Variant instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @param message Variant message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.VersionVariants.IVariant, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Variant message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Decodes a Variant message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Verifies a Variant message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Variant + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VersionVariants.Variant; + + /** + * Creates a plain object from a Variant message. Also converts values to other types if specified. + * @param message Variant + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.VersionVariants.Variant, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Variant to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a CompareVersionsRequest. */ - class CompareVersionsRequest implements ICompareVersionsRequest { + /** 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 CompareVersionsRequest. + * Constructs a new VariantsHistory. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IVariantsHistory); - /** CompareVersionsRequest baseVersion. */ - public baseVersion: string; + /** VariantsHistory versionVariants. */ + public versionVariants?: (google.cloud.dialogflow.cx.v3.IVersionVariants|null); - /** CompareVersionsRequest targetVersion. */ - public targetVersion: string; + /** VariantsHistory updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** CompareVersionsRequest languageCode. */ - public languageCode: string; + /** VariantsHistory variants. */ + public variants?: "versionVariants"; /** - * Creates a new CompareVersionsRequest instance using the specified properties. + * Creates a new VariantsHistory instance using the specified properties. * @param [properties] Properties to set - * @returns CompareVersionsRequest instance + * @returns VariantsHistory 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.v3.IVariantsHistory): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * 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 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.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, 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 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.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVariantsHistory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer. + * Decodes a VariantsHistory message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CompareVersionsRequest + * @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.CompareVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompareVersionsRequest + * @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.CompareVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * Verifies a CompareVersionsRequest message. + * Verifies a VariantsHistory message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a VariantsHistory message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompareVersionsRequest + * @returns VariantsHistory */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VariantsHistory; /** - * 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 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.CompareVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.VariantsHistory, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompareVersionsRequest to JSON. + * Converts this VariantsHistory to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CompareVersionsResponse. */ - interface ICompareVersionsResponse { + /** Properties of a RolloutConfig. */ + interface IRolloutConfig { - /** CompareVersionsResponse baseVersionContentJson */ - baseVersionContentJson?: (string|null); + /** RolloutConfig rolloutSteps */ + rolloutSteps?: (google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]|null); - /** CompareVersionsResponse targetVersionContentJson */ - targetVersionContentJson?: (string|null); + /** RolloutConfig rolloutCondition */ + rolloutCondition?: (string|null); - /** CompareVersionsResponse compareTime */ - compareTime?: (google.protobuf.ITimestamp|null); + /** RolloutConfig failureCondition */ + failureCondition?: (string|null); } - /** Represents a CompareVersionsResponse. */ - class CompareVersionsResponse implements ICompareVersionsResponse { + /** Represents a RolloutConfig. */ + class RolloutConfig implements IRolloutConfig { /** - * Constructs a new CompareVersionsResponse. + * Constructs a new RolloutConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IRolloutConfig); - /** CompareVersionsResponse baseVersionContentJson. */ - public baseVersionContentJson: string; + /** RolloutConfig rolloutSteps. */ + public rolloutSteps: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep[]; - /** CompareVersionsResponse targetVersionContentJson. */ - public targetVersionContentJson: string; + /** RolloutConfig rolloutCondition. */ + public rolloutCondition: string; - /** CompareVersionsResponse compareTime. */ - public compareTime?: (google.protobuf.ITimestamp|null); + /** RolloutConfig failureCondition. */ + public failureCondition: string; /** - * Creates a new CompareVersionsResponse instance using the specified properties. + * Creates a new RolloutConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CompareVersionsResponse instance + * @returns RolloutConfig 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.v3.IRolloutConfig): google.cloud.dialogflow.cx.v3.RolloutConfig; /** - * 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 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.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, 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 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.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRolloutConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer. + * 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 CompareVersionsResponse + * @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.CompareVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RolloutConfig; /** - * Decodes a CompareVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a RolloutConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompareVersionsResponse + * @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.CompareVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RolloutConfig; /** - * Verifies a CompareVersionsResponse message. + * 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 CompareVersionsResponse 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. * @param object Plain object - * @returns CompareVersionsResponse + * @returns RolloutConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutConfig; /** - * Creates a plain object from a CompareVersionsResponse message. Also converts values to other types if specified. - * @param message CompareVersionsResponse + * 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.CompareVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompareVersionsResponse to JSON. + * Converts this RolloutConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a Webhooks */ - class Webhooks extends $protobuf.rpc.Service { + namespace RolloutConfig { - /** - * Constructs a new Webhooks service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Properties of a RolloutStep. */ + interface IRolloutStep { - /** - * 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; + /** RolloutStep displayName */ + displayName?: (string|null); - /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListWebhooksResponse - */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void; + /** RolloutStep trafficPercent */ + trafficPercent?: (number|null); - /** - * Calls ListWebhooks. - * @param request ListWebhooksRequest message or plain object - * @returns Promise - */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): Promise; + /** RolloutStep minDuration */ + minDuration?: (google.protobuf.IDuration|null); + } - /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook - */ - public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void; + /** Represents a RolloutStep. */ + class RolloutStep implements IRolloutStep { - /** - * Calls GetWebhook. - * @param request GetWebhookRequest message or plain object - * @returns Promise - */ - public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): Promise; + /** + * Constructs a new RolloutStep. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.RolloutConfig.IRolloutStep); - /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook - */ - public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void; + /** 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 }; + } + } + + /** 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 { /** - * Calls CreateWebhook. - * @param request CreateWebhookRequest message or plain object - * @returns Promise + * Constructs a new RolloutState. + * @param [properties] Properties to set */ - public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): Promise; + 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); /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Webhook + * Creates a new RolloutState instance using the specified properties. + * @param [properties] Properties to set + * @returns RolloutState instance */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IRolloutState): google.cloud.dialogflow.cx.v3.RolloutState; /** - * Calls UpdateWebhook. - * @param request UpdateWebhookRequest message or plain object - * @returns Promise + * 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 updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * 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 deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRolloutState, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteWebhook. - * @param request DeleteWebhookRequest message or plain object - * @returns Promise + * 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 deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): Promise; - } - - namespace Webhooks { + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RolloutState; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#listWebhooks}. - * @param error Error, if any - * @param [response] ListWebhooksResponse + * 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 */ - type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListWebhooksResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RolloutState; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#getWebhook}. - * @param error Error, if any - * @param [response] Webhook + * Verifies a RolloutState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#createWebhook}. - * @param error Error, if any - * @param [response] Webhook + * Creates a RolloutState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RolloutState */ - type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RolloutState; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#updateWebhook}. - * @param error Error, if any - * @param [response] Webhook + * 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 */ - type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.RolloutState, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#deleteWebhook}. - * @param error Error, if any - * @param [response] Empty + * Converts this RolloutState to JSON. + * @returns JSON object */ - type DeleteWebhookCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; } - /** 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); + /** Properties of a ListExperimentsRequest. */ + interface IListExperimentsRequest { - /** Webhook serviceDirectory */ - serviceDirectory?: (google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null); + /** ListExperimentsRequest parent */ + parent?: (string|null); - /** Webhook timeout */ - timeout?: (google.protobuf.IDuration|null); + /** ListExperimentsRequest pageSize */ + pageSize?: (number|null); - /** Webhook disabled */ - disabled?: (boolean|null); + /** ListExperimentsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a Webhook. */ - class Webhook implements IWebhook { + /** Represents a ListExperimentsRequest. */ + class ListExperimentsRequest implements IListExperimentsRequest { /** - * Constructs a new Webhook. + * Constructs a new ListExperimentsRequest. * @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); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsRequest); - /** Webhook timeout. */ - public timeout?: (google.protobuf.IDuration|null); + /** ListExperimentsRequest parent. */ + public parent: string; - /** Webhook disabled. */ - public disabled: boolean; + /** ListExperimentsRequest pageSize. */ + public pageSize: number; - /** Webhook webhook. */ - public webhook?: ("genericWebService"|"serviceDirectory"); + /** ListExperimentsRequest pageToken. */ + public pageToken: string; /** - * Creates a new Webhook instance using the specified properties. + * Creates a new ListExperimentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Webhook instance + * @returns ListExperimentsRequest 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.IListExperimentsRequest): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * 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 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.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, 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 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.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Webhook message from the specified reader or buffer. + * Decodes a ListExperimentsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Webhook + * @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.Webhook; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Decodes a Webhook message from the specified reader or buffer, length delimited. + * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Webhook + * @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.Webhook; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListExperimentsRequest; /** - * Verifies a Webhook message. + * Verifies a ListExperimentsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Webhook message from a plain object. Also converts values to their respective internal types. + * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Webhook + * @returns ListExperimentsRequest */ - 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.ListExperimentsRequest; /** - * 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 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.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Webhook to JSON. + * Converts this ListExperimentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Webhook { - - /** Properties of a GenericWebService. */ - interface IGenericWebService { - - /** GenericWebService uri */ - uri?: (string|null); - - /** GenericWebService username */ - username?: (string|null); - - /** GenericWebService password */ - password?: (string|null); - - /** GenericWebService requestHeaders */ - requestHeaders?: ({ [k: string]: string }|null); - - /** GenericWebService allowedCaCerts */ - allowedCaCerts?: (Uint8Array[]|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[]; - - /** - * 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 }; - } - - /** Properties of a ServiceDirectoryConfig. */ - interface IServiceDirectoryConfig { - - /** ServiceDirectoryConfig service */ - service?: (string|null); - - /** ServiceDirectoryConfig genericWebService */ - genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); - } + /** Properties of a ListExperimentsResponse. */ + interface IListExperimentsResponse { - /** Represents a ServiceDirectoryConfig. */ - class ServiceDirectoryConfig implements IServiceDirectoryConfig { + /** ListExperimentsResponse experiments */ + experiments?: (google.cloud.dialogflow.cx.v3.IExperiment[]|null); - /** - * Constructs a new ServiceDirectoryConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig); + /** ListExperimentsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** ServiceDirectoryConfig service. */ - public service: string; + /** Represents a ListExperimentsResponse. */ + class ListExperimentsResponse implements IListExperimentsResponse { - /** ServiceDirectoryConfig genericWebService. */ - public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); + /** + * Constructs a new ListExperimentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListExperimentsResponse); - /** - * 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; + /** ListExperimentsResponse experiments. */ + public experiments: google.cloud.dialogflow.cx.v3.IExperiment[]; - /** - * 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; + /** ListExperimentsResponse nextPageToken. */ + public nextPageToken: string; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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); + /** + * 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; - /** - * 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; + /** + * 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; - /** - * 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 }; + /** + * 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); - /** - * Converts this ServiceDirectoryConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** + * 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; - /** Properties of a ListWebhooksRequest. */ - interface IListWebhooksRequest { + /** + * 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 }; - /** ListWebhooksRequest parent */ - parent?: (string|null); + /** + * Converts this ListExperimentsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ListWebhooksRequest pageSize */ - pageSize?: (number|null); + /** Properties of a GetExperimentRequest. */ + interface IGetExperimentRequest { - /** ListWebhooksRequest pageToken */ - pageToken?: (string|null); + /** GetExperimentRequest name */ + name?: (string|null); } - /** Represents a ListWebhooksRequest. */ - class ListWebhooksRequest implements IListWebhooksRequest { + /** Represents a GetExperimentRequest. */ + class GetExperimentRequest implements IGetExperimentRequest { /** - * Constructs a new ListWebhooksRequest. + * Constructs a new GetExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest); - - /** ListWebhooksRequest parent. */ - public parent: string; - - /** ListWebhooksRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetExperimentRequest); - /** ListWebhooksRequest pageToken. */ - public pageToken: string; + /** GetExperimentRequest name. */ + public name: string; /** - * Creates a new ListWebhooksRequest instance using the specified properties. + * Creates a new GetExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListWebhooksRequest instance + * @returns GetExperimentRequest 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.IGetExperimentRequest): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * 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 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.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, 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 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.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer. + * Decodes a GetExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListWebhooksRequest + * @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.ListWebhooksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListWebhooksRequest + * @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.ListWebhooksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetExperimentRequest; /** - * Verifies a ListWebhooksRequest message. + * Verifies a GetExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListWebhooksRequest + * @returns GetExperimentRequest */ - 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.GetExperimentRequest; /** - * 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 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.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWebhooksRequest to JSON. + * Converts this GetExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListWebhooksResponse. */ - interface IListWebhooksResponse { + /** Properties of a CreateExperimentRequest. */ + interface ICreateExperimentRequest { - /** ListWebhooksResponse webhooks */ - webhooks?: (google.cloud.dialogflow.cx.v3.IWebhook[]|null); + /** CreateExperimentRequest parent */ + parent?: (string|null); - /** ListWebhooksResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); } - /** Represents a ListWebhooksResponse. */ - class ListWebhooksResponse implements IListWebhooksResponse { + /** Represents a CreateExperimentRequest. */ + class CreateExperimentRequest implements ICreateExperimentRequest { /** - * Constructs a new ListWebhooksResponse. + * Constructs a new CreateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest); - /** ListWebhooksResponse webhooks. */ - public webhooks: google.cloud.dialogflow.cx.v3.IWebhook[]; + /** CreateExperimentRequest parent. */ + public parent: string; - /** ListWebhooksResponse nextPageToken. */ - public nextPageToken: string; + /** CreateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); /** - * Creates a new ListWebhooksResponse instance using the specified properties. + * Creates a new CreateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListWebhooksResponse instance + * @returns CreateExperimentRequest 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.ICreateExperimentRequest): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * 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 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.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, 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 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.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer. + * Decodes a CreateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListWebhooksResponse + * @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.ListWebhooksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListWebhooksResponse + * @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.ListWebhooksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateExperimentRequest; /** - * Verifies a ListWebhooksResponse message. + * Verifies a CreateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListWebhooksResponse + * @returns CreateExperimentRequest */ - 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.CreateExperimentRequest; /** - * 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 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.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListWebhooksResponse to JSON. + * Converts this CreateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetWebhookRequest. */ - interface IGetWebhookRequest { + /** Properties of an UpdateExperimentRequest. */ + interface IUpdateExperimentRequest { - /** GetWebhookRequest name */ - name?: (string|null); + /** UpdateExperimentRequest experiment */ + experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + + /** UpdateExperimentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetWebhookRequest. */ - class GetWebhookRequest implements IGetWebhookRequest { + /** Represents an UpdateExperimentRequest. */ + class UpdateExperimentRequest implements IUpdateExperimentRequest { /** - * Constructs a new GetWebhookRequest. + * Constructs a new UpdateExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest); - /** GetWebhookRequest name. */ - public name: string; + /** UpdateExperimentRequest experiment. */ + public experiment?: (google.cloud.dialogflow.cx.v3.IExperiment|null); + + /** UpdateExperimentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetWebhookRequest instance using the specified properties. + * Creates a new UpdateExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetWebhookRequest instance + * @returns UpdateExperimentRequest 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.IUpdateExperimentRequest): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * 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 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.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, 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 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.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetWebhookRequest message from the specified reader or buffer. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetWebhookRequest + * @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.GetWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetWebhookRequest + * @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.GetWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateExperimentRequest; /** - * Verifies a GetWebhookRequest message. + * Verifies an UpdateExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetWebhookRequest + * @returns UpdateExperimentRequest */ - 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.UpdateExperimentRequest; /** - * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. - * @param message GetWebhookRequest + * 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.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetWebhookRequest to JSON. + * Converts this UpdateExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateWebhookRequest. */ - interface ICreateWebhookRequest { - - /** CreateWebhookRequest parent */ - parent?: (string|null); + /** Properties of a DeleteExperimentRequest. */ + interface IDeleteExperimentRequest { - /** CreateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** DeleteExperimentRequest name */ + name?: (string|null); } - /** Represents a CreateWebhookRequest. */ - class CreateWebhookRequest implements ICreateWebhookRequest { + /** Represents a DeleteExperimentRequest. */ + class DeleteExperimentRequest implements IDeleteExperimentRequest { /** - * Constructs a new CreateWebhookRequest. + * Constructs a new DeleteExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest); - - /** CreateWebhookRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest); - /** CreateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** DeleteExperimentRequest name. */ + public name: string; /** - * Creates a new CreateWebhookRequest instance using the specified properties. + * Creates a new DeleteExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateWebhookRequest instance + * @returns DeleteExperimentRequest 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.IDeleteExperimentRequest): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * 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 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.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, 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 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.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateWebhookRequest + * @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.CreateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateWebhookRequest + * @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.CreateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteExperimentRequest; /** - * Verifies a CreateWebhookRequest message. + * Verifies a DeleteExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateWebhookRequest + * @returns DeleteExperimentRequest */ - 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.DeleteExperimentRequest; /** - * 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 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.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateWebhookRequest to JSON. + * Converts this DeleteExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateWebhookRequest. */ - interface IUpdateWebhookRequest { - - /** UpdateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + /** Properties of a StartExperimentRequest. */ + interface IStartExperimentRequest { - /** UpdateWebhookRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** StartExperimentRequest name */ + name?: (string|null); } - /** Represents an UpdateWebhookRequest. */ - class UpdateWebhookRequest implements IUpdateWebhookRequest { + /** Represents a StartExperimentRequest. */ + class StartExperimentRequest implements IStartExperimentRequest { /** - * Constructs a new UpdateWebhookRequest. + * Constructs a new StartExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest); - - /** UpdateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStartExperimentRequest); - /** UpdateWebhookRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** StartExperimentRequest name. */ + public name: string; /** - * Creates a new UpdateWebhookRequest instance using the specified properties. + * Creates a new StartExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateWebhookRequest instance + * @returns StartExperimentRequest 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.IStartExperimentRequest): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * 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 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.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, 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 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.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStartExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer. + * Decodes a StartExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateWebhookRequest + * @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.UpdateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a StartExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateWebhookRequest + * @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.UpdateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StartExperimentRequest; /** - * Verifies an UpdateWebhookRequest message. + * Verifies a StartExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StartExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateWebhookRequest + * @returns StartExperimentRequest */ - 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.StartExperimentRequest; /** - * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. - * @param message UpdateWebhookRequest + * Creates a plain object from a 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.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StartExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateWebhookRequest to JSON. + * Converts this StartExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteWebhookRequest. */ - interface IDeleteWebhookRequest { + /** Properties of a StopExperimentRequest. */ + interface IStopExperimentRequest { - /** DeleteWebhookRequest name */ + /** StopExperimentRequest name */ name?: (string|null); - - /** DeleteWebhookRequest force */ - force?: (boolean|null); } - /** Represents a DeleteWebhookRequest. */ - class DeleteWebhookRequest implements IDeleteWebhookRequest { + /** Represents a StopExperimentRequest. */ + class StopExperimentRequest implements IStopExperimentRequest { /** - * Constructs a new DeleteWebhookRequest. + * Constructs a new StopExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStopExperimentRequest); - /** DeleteWebhookRequest name. */ + /** StopExperimentRequest name. */ public name: string; - /** DeleteWebhookRequest force. */ - public force: boolean; - /** - * Creates a new DeleteWebhookRequest instance using the specified properties. + * Creates a new StopExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteWebhookRequest instance + * @returns StopExperimentRequest 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.IStopExperimentRequest): google.cloud.dialogflow.cx.v3.StopExperimentRequest; /** - * 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 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.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, 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 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.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStopExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer. + * Decodes a StopExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteWebhookRequest + * @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.DeleteWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StopExperimentRequest; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. + * Decodes a StopExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteWebhookRequest + * @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.DeleteWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StopExperimentRequest; /** - * Verifies a DeleteWebhookRequest message. + * Verifies a StopExperimentRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StopExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteWebhookRequest + * @returns StopExperimentRequest */ - 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.StopExperimentRequest; /** - * 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 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.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StopExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteWebhookRequest to JSON. + * Converts this StopExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WebhookRequest. */ - interface IWebhookRequest { - - /** WebhookRequest detectIntentResponseId */ - detectIntentResponseId?: (string|null); + /** Represents a Versions */ + class Versions extends $protobuf.rpc.Service { - /** WebhookRequest text */ - text?: (string|null); + /** + * Constructs a new Versions service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** WebhookRequest triggerIntent */ - triggerIntent?: (string|null); + /** + * 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; - /** WebhookRequest transcript */ - transcript?: (string|null); + /** + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListVersionsResponse + */ + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback): void; - /** WebhookRequest triggerEvent */ - triggerEvent?: (string|null); + /** + * Calls ListVersions. + * @param request ListVersionsRequest message or plain object + * @returns Promise + */ + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest): Promise; - /** WebhookRequest languageCode */ - languageCode?: (string|null); + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version + */ + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback): void; - /** WebhookRequest fulfillmentInfo */ - fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @returns Promise + */ + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest): Promise; - /** WebhookRequest intentInfo */ - intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); + /** + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback): void; - /** WebhookRequest pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + /** + * Calls CreateVersion. + * @param request CreateVersionRequest message or plain object + * @returns Promise + */ + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): Promise; - /** WebhookRequest sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + /** + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Version + */ + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback): void; - /** WebhookRequest messages */ - messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); + /** + * Calls UpdateVersion. + * @param request UpdateVersionRequest message or plain object + * @returns Promise + */ + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): Promise; - /** WebhookRequest payload */ - payload?: (google.protobuf.IStruct|null); + /** + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback): void; - /** WebhookRequest sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); - } + /** + * Calls DeleteVersion. + * @param request DeleteVersionRequest message or plain object + * @returns Promise + */ + public deleteVersion(request: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): Promise; - /** Represents a WebhookRequest. */ - class WebhookRequest implements IWebhookRequest { + /** + * Calls LoadVersion. + * @param request LoadVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback): void; /** - * Constructs a new WebhookRequest. - * @param [properties] Properties to set + * Calls LoadVersion. + * @param request LoadVersionRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest); + public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): Promise; - /** WebhookRequest detectIntentResponseId. */ - public detectIntentResponseId: string; + /** + * Calls CompareVersions. + * @param request CompareVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CompareVersionsResponse + */ + public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CompareVersionsCallback): void; - /** WebhookRequest text. */ - public text?: (string|null); + /** + * Calls CompareVersions. + * @param request CompareVersionsRequest message or plain object + * @returns Promise + */ + public compareVersions(request: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): Promise; + } - /** WebhookRequest triggerIntent. */ - public triggerIntent?: (string|null); + namespace Versions { - /** WebhookRequest transcript. */ - public transcript?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#listVersions}. + * @param error Error, if any + * @param [response] ListVersionsResponse + */ + type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListVersionsResponse) => void; - /** WebhookRequest triggerEvent. */ - public triggerEvent?: (string|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#getVersion}. + * @param error Error, if any + * @param [response] Version + */ + type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; - /** WebhookRequest languageCode. */ - public languageCode: string; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#createVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** WebhookRequest fulfillmentInfo. */ - public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#updateVersion}. + * @param error Error, if any + * @param [response] Version + */ + type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; - /** WebhookRequest intentInfo. */ - public intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#deleteVersion}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteVersionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** WebhookRequest pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#loadVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type LoadVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** WebhookRequest sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#compareVersions}. + * @param error Error, if any + * @param [response] CompareVersionsResponse + */ + type CompareVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.CompareVersionsResponse) => void; + } - /** WebhookRequest messages. */ - public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; + /** Properties of a CreateVersionOperationMetadata. */ + interface ICreateVersionOperationMetadata { - /** WebhookRequest payload. */ - public payload?: (google.protobuf.IStruct|null); + /** CreateVersionOperationMetadata version */ + version?: (string|null); + } - /** WebhookRequest sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null); + /** Represents a CreateVersionOperationMetadata. */ + class CreateVersionOperationMetadata implements ICreateVersionOperationMetadata { - /** WebhookRequest query. */ - public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); + /** + * Constructs a new CreateVersionOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata); + + /** CreateVersionOperationMetadata version. */ + public version: string; /** - * Creates a new WebhookRequest instance using the specified properties. + * Creates a new CreateVersionOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns WebhookRequest instance + * @returns CreateVersionOperationMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. - * @param message WebhookRequest message or plain object to encode + * Encodes the specified 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.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.verify|verify} messages. - * @param message WebhookRequest message or plain object to encode + * Encodes the specified 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.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebhookRequest 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 WebhookRequest + * @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.WebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Decodes a WebhookRequest 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 WebhookRequest + * @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.WebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Verifies a WebhookRequest 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 WebhookRequest 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 WebhookRequest + * @returns CreateVersionOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. - * @param message WebhookRequest + * 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.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebhookRequest to JSON. + * Converts this CreateVersionOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace WebhookRequest { - - /** Properties of a FulfillmentInfo. */ - interface IFulfillmentInfo { - - /** FulfillmentInfo tag */ - tag?: (string|null); - } - - /** Represents a FulfillmentInfo. */ - class FulfillmentInfo implements IFulfillmentInfo { - - /** - * Constructs a new FulfillmentInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo); - - /** FulfillmentInfo tag. */ - public tag: string; - - /** - * Creates a new FulfillmentInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns FulfillmentInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + /** Properties of a Version. */ + interface IVersion { - /** - * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @param message FulfillmentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** Version name */ + name?: (string|null); - /** - * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. - * @param message FulfillmentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** Version displayName */ + displayName?: (string|null); - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + /** Version description */ + description?: (string|null); - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FulfillmentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + /** Version nluSettings */ + nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); - /** - * 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); + /** Version createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FulfillmentInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; + /** Version state */ + state?: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State|null); + } - /** - * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. - * @param message FulfillmentInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a Version. */ + class Version implements IVersion { - /** - * Converts this FulfillmentInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Constructs a new Version. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IVersion); - /** Properties of an IntentInfo. */ - interface IIntentInfo { + /** Version name. */ + public name: string; - /** IntentInfo lastMatchedIntent */ - lastMatchedIntent?: (string|null); + /** Version displayName. */ + public displayName: string; - /** IntentInfo displayName */ - displayName?: (string|null); + /** Version description. */ + public description: string; - /** IntentInfo parameters */ - parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }|null); + /** Version nluSettings. */ + public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); - /** IntentInfo confidence */ - confidence?: (number|null); - } + /** Version createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Represents an IntentInfo. */ - class IntentInfo implements IIntentInfo { + /** Version state. */ + public state: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State); - /** - * Constructs a new IntentInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo); + /** + * Creates a new Version instance using the specified properties. + * @param [properties] Properties to set + * @returns Version instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IVersion): google.cloud.dialogflow.cx.v3.Version; - /** IntentInfo lastMatchedIntent. */ - public lastMatchedIntent: string; + /** + * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * @param message Version message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** IntentInfo displayName. */ - public displayName: string; + /** + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. + * @param message Version message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** IntentInfo parameters. */ - public parameters: { [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }; + /** + * Decodes a Version message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Version; - /** IntentInfo confidence. */ - public confidence: number; + /** + * Decodes a Version message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Version; - /** - * Creates a new IntentInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + /** + * 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); - /** - * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. - * @param message IntentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a Version message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Version + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Version; - /** - * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. - * @param message IntentInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @param message Version + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an IntentInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + /** + * Converts this Version to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes an IntentInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntentInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + namespace Version { - /** - * 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); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + RUNNING = 1, + SUCCEEDED = 2, + FAILED = 3 + } + } - /** - * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntentInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; + /** Properties of a ListVersionsRequest. */ + interface IListVersionsRequest { - /** - * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. - * @param message IntentInfo - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListVersionsRequest parent */ + parent?: (string|null); - /** - * Converts this IntentInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ListVersionsRequest pageSize */ + pageSize?: (number|null); - namespace IntentInfo { + /** ListVersionsRequest pageToken */ + pageToken?: (string|null); + } - /** Properties of an IntentParameterValue. */ - interface IIntentParameterValue { + /** Represents a ListVersionsRequest. */ + class ListVersionsRequest implements IListVersionsRequest { - /** IntentParameterValue originalValue */ - originalValue?: (string|null); + /** + * Constructs a new ListVersionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest); - /** IntentParameterValue resolvedValue */ - resolvedValue?: (google.protobuf.IValue|null); - } + /** ListVersionsRequest parent. */ + public parent: string; - /** Represents an IntentParameterValue. */ - class IntentParameterValue implements IIntentParameterValue { + /** ListVersionsRequest pageSize. */ + public pageSize: number; - /** - * Constructs a new IntentParameterValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue); + /** ListVersionsRequest pageToken. */ + public pageToken: string; - /** IntentParameterValue originalValue. */ - public originalValue: string; + /** + * Creates a new ListVersionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVersionsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest): google.cloud.dialogflow.cx.v3.ListVersionsRequest; - /** IntentParameterValue resolvedValue. */ - public resolvedValue?: (google.protobuf.IValue|null); + /** + * 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.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new IntentParameterValue instance using the specified properties. - * @param [properties] Properties to set - * @returns IntentParameterValue instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; + /** + * Encodes the specified 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.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * Decodes a ListVersionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsRequest; - /** - * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. - * @param message IntentParameterValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsRequest; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListVersionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsRequest; - /** - * 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 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.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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; + /** + * Converts this ListVersionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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 }; + /** Properties of a ListVersionsResponse. */ + interface IListVersionsResponse { - /** - * Converts this IntentParameterValue to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** ListVersionsResponse versions */ + versions?: (google.cloud.dialogflow.cx.v3.IVersion[]|null); - /** Properties of a SentimentAnalysisResult. */ - interface ISentimentAnalysisResult { + /** ListVersionsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** SentimentAnalysisResult score */ - score?: (number|null); + /** Represents a ListVersionsResponse. */ + class ListVersionsResponse implements IListVersionsResponse { - /** SentimentAnalysisResult magnitude */ - magnitude?: (number|null); - } + /** + * Constructs a new ListVersionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse); - /** Represents a SentimentAnalysisResult. */ - class SentimentAnalysisResult implements ISentimentAnalysisResult { + /** ListVersionsResponse versions. */ + public versions: google.cloud.dialogflow.cx.v3.IVersion[]; - /** - * Constructs a new SentimentAnalysisResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult); + /** ListVersionsResponse nextPageToken. */ + public nextPageToken: string; - /** SentimentAnalysisResult score. */ - public score: number; + /** + * Creates a new ListVersionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListVersionsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse): google.cloud.dialogflow.cx.v3.ListVersionsResponse; - /** SentimentAnalysisResult magnitude. */ - public magnitude: number; + /** + * 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.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 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.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * 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 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.ListVersionsResponse; - /** - * 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 ListVersionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ListVersionsResponse; - /** - * 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; + /** + * 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); - /** - * 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; + /** + * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListVersionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsResponse; - /** - * 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 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.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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; + /** + * Converts this ListVersionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * 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 }; + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { - /** - * Converts this SentimentAnalysisResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** GetVersionRequest name */ + name?: (string|null); } - /** Properties of a WebhookResponse. */ - interface IWebhookResponse { + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { - /** WebhookResponse fulfillmentResponse */ - fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); + /** + * Constructs a new GetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest); - /** WebhookResponse pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + /** GetVersionRequest name. */ + public name: string; - /** WebhookResponse sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + /** + * 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; - /** WebhookResponse payload */ - payload?: (google.protobuf.IStruct|null); + /** + * 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; - /** WebhookResponse targetPage */ - targetPage?: (string|null); + /** + * 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; - /** WebhookResponse targetFlow */ - targetFlow?: (string|null); - } + /** + * 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; + + /** + * 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; + + /** + * Verifies a GetVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a 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; - /** Represents a WebhookResponse. */ - class WebhookResponse implements IWebhookResponse { + /** + * 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 }; /** - * Constructs a new WebhookResponse. - * @param [properties] Properties to set + * Converts this GetVersionRequest to JSON. + * @returns JSON object */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse); + public toJSON(): { [k: string]: any }; + } - /** WebhookResponse fulfillmentResponse. */ - public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); + /** Properties of a CreateVersionRequest. */ + interface ICreateVersionRequest { - /** WebhookResponse pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); + /** CreateVersionRequest parent */ + parent?: (string|null); - /** WebhookResponse sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); + /** CreateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); + } - /** WebhookResponse payload. */ - public payload?: (google.protobuf.IStruct|null); + /** Represents a CreateVersionRequest. */ + class CreateVersionRequest implements ICreateVersionRequest { - /** WebhookResponse targetPage. */ - public targetPage?: (string|null); + /** + * Constructs a new CreateVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest); - /** WebhookResponse targetFlow. */ - public targetFlow?: (string|null); + /** CreateVersionRequest parent. */ + public parent: string; - /** WebhookResponse transition. */ - public transition?: ("targetPage"|"targetFlow"); + /** CreateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); /** - * Creates a new WebhookResponse instance using the specified properties. + * Creates a new CreateVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WebhookResponse instance + * @returns CreateVersionRequest 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.ICreateVersionRequest): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * 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 CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. + * @param message CreateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, 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 CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. + * @param message CreateVersionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WebhookResponse message from the specified reader or buffer. + * Decodes a CreateVersionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WebhookResponse + * @returns CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WebhookResponse + * @returns CreateVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Verifies a WebhookResponse message. + * Verifies a CreateVersionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WebhookResponse + * @returns CreateVersionRequest */ - 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.CreateVersionRequest; /** - * 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 CreateVersionRequest message. Also converts values to other types if specified. + * @param message CreateVersionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WebhookResponse to JSON. + * Converts this CreateVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - 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 { + /** Properties of an UpdateVersionRequest. */ + interface IUpdateVersionRequest { - /** - * Constructs a new FulfillmentResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse); + /** UpdateVersionRequest version */ + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - /** FulfillmentResponse messages. */ - public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; + /** UpdateVersionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** FulfillmentResponse mergeBehavior. */ - public mergeBehavior: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior); + /** Represents an UpdateVersionRequest. */ + class UpdateVersionRequest implements IUpdateVersionRequest { - /** - * 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 UpdateVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest); - /** - * 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; + /** UpdateVersionRequest version. */ + public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); - /** - * 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; + /** UpdateVersionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * 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; + /** + * Creates a new UpdateVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateVersionRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; - /** - * 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 UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. + * @param message UpdateVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. + * @param message UpdateVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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 an UpdateVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; - /** - * 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 }; + /** + * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; - /** - * Converts this FulfillmentResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Verifies an UpdateVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - namespace FulfillmentResponse { + /** + * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; - /** MergeBehavior enum. */ - enum MergeBehavior { - MERGE_BEHAVIOR_UNSPECIFIED = 0, - APPEND = 1, - REPLACE = 2 - } - } - } + /** + * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. + * @param message UpdateVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a PageInfo. */ - interface IPageInfo { + /** + * Converts this UpdateVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** PageInfo currentPage */ - currentPage?: (string|null); + /** Properties of a DeleteVersionRequest. */ + interface IDeleteVersionRequest { - /** PageInfo formInfo */ - formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); + /** DeleteVersionRequest name */ + name?: (string|null); } - /** Represents a PageInfo. */ - class PageInfo implements IPageInfo { + /** Represents a DeleteVersionRequest. */ + class DeleteVersionRequest implements IDeleteVersionRequest { /** - * Constructs a new PageInfo. + * Constructs a new DeleteVersionRequest. * @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.IDeleteVersionRequest); - /** PageInfo formInfo. */ - public formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); + /** DeleteVersionRequest name. */ + public name: string; /** - * Creates a new PageInfo instance using the specified properties. + * Creates a new DeleteVersionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PageInfo instance + * @returns DeleteVersionRequest 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.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * 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 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.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, 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 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.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PageInfo 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 PageInfo + * @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.PageInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Decodes a PageInfo 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 PageInfo + * @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.PageInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Verifies a PageInfo 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 PageInfo 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 PageInfo + * @returns DeleteVersionRequest */ - 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.DeleteVersionRequest; /** - * 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 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.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PageInfo to JSON. + * Converts this DeleteVersionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace PageInfo { - - /** Properties of a FormInfo. */ - interface IFormInfo { - - /** FormInfo parameterInfo */ - parameterInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]|null); - } - - /** Represents a FormInfo. */ - class FormInfo implements IFormInfo { - - /** - * Constructs a new FormInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo); - - /** FormInfo parameterInfo. */ - public parameterInfo: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]; - - /** - * Creates a new FormInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns FormInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; + /** Properties of a LoadVersionRequest. */ + interface ILoadVersionRequest { - /** - * 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; + /** LoadVersionRequest name */ + name?: (string|null); - /** - * 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; + /** LoadVersionRequest allowOverrideAgentResources */ + allowOverrideAgentResources?: (boolean|null); + } - /** - * 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; + /** Represents a LoadVersionRequest. */ + class LoadVersionRequest implements ILoadVersionRequest { - /** - * 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; + /** + * Constructs a new LoadVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest); - /** - * 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); + /** LoadVersionRequest name. */ + public name: string; - /** - * 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; + /** LoadVersionRequest allowOverrideAgentResources. */ + public allowOverrideAgentResources: boolean; - /** - * 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 }; + /** + * Creates a new LoadVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LoadVersionRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): google.cloud.dialogflow.cx.v3.LoadVersionRequest; - /** - * Converts this FormInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * 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.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - namespace FormInfo { + /** + * 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.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ParameterInfo. */ - interface IParameterInfo { + /** + * 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 + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LoadVersionRequest; - /** ParameterInfo displayName */ - displayName?: (string|null); + /** + * 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 + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LoadVersionRequest; - /** ParameterInfo required */ - required?: (boolean|null); + /** + * 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); - /** ParameterInfo state */ - state?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|null); + /** + * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LoadVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LoadVersionRequest; - /** ParameterInfo value */ - value?: (google.protobuf.IValue|null); + /** + * 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.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ParameterInfo justCollected */ - justCollected?: (boolean|null); - } + /** + * Converts this LoadVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a ParameterInfo. */ - class ParameterInfo implements IParameterInfo { + /** Properties of a CompareVersionsRequest. */ + interface ICompareVersionsRequest { - /** - * Constructs a new ParameterInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo); + /** CompareVersionsRequest baseVersion */ + baseVersion?: (string|null); - /** ParameterInfo displayName. */ - public displayName: string; + /** CompareVersionsRequest targetVersion */ + targetVersion?: (string|null); - /** ParameterInfo required. */ - public required: boolean; + /** CompareVersionsRequest languageCode */ + languageCode?: (string|null); + } - /** ParameterInfo state. */ - public state: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState); + /** Represents a CompareVersionsRequest. */ + class CompareVersionsRequest implements ICompareVersionsRequest { - /** ParameterInfo value. */ - public value?: (google.protobuf.IValue|null); + /** + * Constructs a new CompareVersionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest); - /** ParameterInfo justCollected. */ - public justCollected: boolean; + /** CompareVersionsRequest baseVersion. */ + public baseVersion: string; - /** - * 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; + /** CompareVersionsRequest targetVersion. */ + public targetVersion: string; - /** - * 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; + /** CompareVersionsRequest languageCode. */ + public languageCode: string; - /** - * 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; + /** + * Creates a new CompareVersionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CompareVersionsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsRequest): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; - /** - * 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; + /** + * 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.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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; + /** + * 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.ICompareVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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); + /** + * 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 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.CompareVersionsRequest; - /** - * 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; + /** + * Decodes a CompareVersionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.CompareVersionsRequest; - /** - * 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 }; + /** + * 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); - /** - * Converts this ParameterInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a CompareVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompareVersionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CompareVersionsRequest; - namespace ParameterInfo { + /** + * 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.CompareVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ParameterState enum. */ - enum ParameterState { - PARAMETER_STATE_UNSPECIFIED = 0, - EMPTY = 1, - INVALID = 2, - FILLED = 3 - } - } - } + /** + * Converts this CompareVersionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a SessionInfo. */ - interface ISessionInfo { + /** Properties of a CompareVersionsResponse. */ + interface ICompareVersionsResponse { - /** SessionInfo session */ - session?: (string|null); + /** CompareVersionsResponse baseVersionContentJson */ + baseVersionContentJson?: (string|null); - /** SessionInfo parameters */ - parameters?: ({ [k: string]: google.protobuf.IValue }|null); + /** CompareVersionsResponse targetVersionContentJson */ + targetVersionContentJson?: (string|null); + + /** CompareVersionsResponse compareTime */ + compareTime?: (google.protobuf.ITimestamp|null); } - /** Represents a SessionInfo. */ - class SessionInfo implements ISessionInfo { + /** Represents a CompareVersionsResponse. */ + class CompareVersionsResponse implements ICompareVersionsResponse { /** - * Constructs a new SessionInfo. + * Constructs a new CompareVersionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse); - /** SessionInfo session. */ - public session: string; + /** CompareVersionsResponse baseVersionContentJson. */ + public baseVersionContentJson: string; - /** SessionInfo parameters. */ - public parameters: { [k: string]: google.protobuf.IValue }; + /** CompareVersionsResponse targetVersionContentJson. */ + public targetVersionContentJson: string; + + /** CompareVersionsResponse compareTime. */ + public compareTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new SessionInfo instance using the specified properties. + * Creates a new CompareVersionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SessionInfo instance + * @returns CompareVersionsResponse 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.ICompareVersionsResponse): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; /** - * 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 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.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse, 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 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.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICompareVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SessionInfo 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 SessionInfo + * @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.SessionInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; /** - * Decodes a SessionInfo 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 SessionInfo + * @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.SessionInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CompareVersionsResponse; /** - * Verifies a SessionInfo 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 SessionInfo 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 SessionInfo + * @returns CompareVersionsResponse */ - 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.CompareVersionsResponse; /** - * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. - * @param message SessionInfo + * 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.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CompareVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SessionInfo to JSON. + * Converts this CompareVersionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; diff --git a/protos/protos.js b/protos/protos.js index 1ea3f2e8..6acbf7ef 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -13111,6 +13111,7 @@ * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction|null} [endInteraction] ResponseMessage endInteraction * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio|null} [playAudio] ResponseMessage playAudio * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null} [mixedAudio] ResponseMessage mixedAudio + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall|null} [telephonyTransferCall] ResponseMessage telephonyTransferCall */ /** @@ -13192,17 +13193,25 @@ */ ResponseMessage.prototype.mixedAudio = null; + /** + * ResponseMessage telephonyTransferCall. + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall|null|undefined} telephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.telephonyTransferCall = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * ResponseMessage message. - * @member {"text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|undefined} message + * @member {"text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"|undefined} message * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ Object.defineProperty(ResponseMessage.prototype, "message", { - get: $util.oneOfGetter($oneOfFields = ["text", "payload", "conversationSuccess", "outputAudioText", "liveAgentHandoff", "endInteraction", "playAudio", "mixedAudio"]), + get: $util.oneOfGetter($oneOfFields = ["text", "payload", "conversationSuccess", "outputAudioText", "liveAgentHandoff", "endInteraction", "playAudio", "mixedAudio", "telephonyTransferCall"]), set: $util.oneOfSetter($oneOfFields) }); @@ -13246,6 +13255,8 @@ $root.google.cloud.dialogflow.cx.v3.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.v3.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.v3.ResponseMessage.TelephonyTransferCall.encode(message.telephonyTransferCall, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); return writer; }; @@ -13304,6 +13315,9 @@ case 13: message.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.decode(reader, reader.uint32()); break; + case 18: + message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -13418,6 +13432,16 @@ 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.v3.ResponseMessage.TelephonyTransferCall.verify(message.telephonyTransferCall); + if (error) + return "telephonyTransferCall." + error; + } + } return null; }; @@ -13473,6 +13497,11 @@ throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.mixedAudio: object expected"); message.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.fromObject(object.mixedAudio); } + if (object.telephonyTransferCall != null) { + if (typeof object.telephonyTransferCall !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.telephonyTransferCall: object expected"); + message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.fromObject(object.telephonyTransferCall); + } return message; }; @@ -13529,6 +13558,11 @@ if (options.oneofs) object.message = "mixedAudio"; } + if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { + object.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.toObject(message.telephonyTransferCall, options); + if (options.oneofs) + object.message = "telephonyTransferCall"; + } return object; }; @@ -15246,6 +15280,211 @@ return MixedAudio; })(); + ResponseMessage.TelephonyTransferCall = (function() { + + /** + * Properties of a TelephonyTransferCall. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @interface ITelephonyTransferCall + * @property {string|null} [phoneNumber] TelephonyTransferCall phoneNumber + */ + + /** + * Constructs a new TelephonyTransferCall. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @classdesc Represents a TelephonyTransferCall. + * @implements ITelephonyTransferCall + * @constructor + * @param {google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.TelephonyTransferCall.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.ResponseMessage.TelephonyTransferCall + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.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.v3.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.v3.ResponseMessage.TelephonyTransferCall + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall} TelephonyTransferCall + */ + TelephonyTransferCall.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.TelephonyTransferCall + * @static + * @param {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.TelephonyTransferCall + * @instance + * @returns {Object.} JSON object + */ + TelephonyTransferCall.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TelephonyTransferCall; + })(); + return ResponseMessage; })(); @@ -18081,270 +18320,6 @@ return SecuritySettings; })(); - v3.SpeechWordInfo = (function() { - - /** - * Properties of a SpeechWordInfo. - * @memberof google.cloud.dialogflow.cx.v3 - * @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 SpeechWordInfo. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SpeechWordInfo. - * @implements ISpeechWordInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set - */ - function SpeechWordInfo(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]]; - } - - /** - * SpeechWordInfo word. - * @member {string} word - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.word = ""; - - /** - * SpeechWordInfo startOffset. - * @member {google.protobuf.IDuration|null|undefined} startOffset - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.startOffset = null; - - /** - * SpeechWordInfo endOffset. - * @member {google.protobuf.IDuration|null|undefined} endOffset - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.endOffset = null; - - /** - * SpeechWordInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.confidence = 0; - - /** - * Creates a new SpeechWordInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo instance - */ - SpeechWordInfo.create = function create(properties) { - return new SpeechWordInfo(properties); - }; - - /** - * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpeechWordInfo.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); - return writer; - }; - - /** - * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpeechWordInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.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.v3.SpeechWordInfo} SpeechWordInfo - * @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) { - 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.SpeechWordInfo(); - 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()); - break; - case 2: - message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 4: - message.confidence = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpeechWordInfo message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @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) { - 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"; - return null; - }; - - /** - * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo - */ - SpeechWordInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.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.v3.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.v3.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 SpeechWordInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.SpeechWordInfo} message SpeechWordInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpeechWordInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.startOffset = null; - object.endOffset = null; - object.word = ""; - object.confidence = 0; - } - 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 SpeechWordInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @instance - * @returns {Object.} JSON object - */ - SpeechWordInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SpeechWordInfo; - })(); - /** * AudioEncoding enum. * @name google.cloud.dialogflow.cx.v3.AudioEncoding @@ -18371,6 +18346,270 @@ return values; })(); + v3.SpeechWordInfo = (function() { + + /** + * Properties of a SpeechWordInfo. + * @memberof google.cloud.dialogflow.cx.v3 + * @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 SpeechWordInfo. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a SpeechWordInfo. + * @implements ISpeechWordInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set + */ + function SpeechWordInfo(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]]; + } + + /** + * SpeechWordInfo word. + * @member {string} word + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.word = ""; + + /** + * SpeechWordInfo startOffset. + * @member {google.protobuf.IDuration|null|undefined} startOffset + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.startOffset = null; + + /** + * SpeechWordInfo endOffset. + * @member {google.protobuf.IDuration|null|undefined} endOffset + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.endOffset = null; + + /** + * SpeechWordInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.confidence = 0; + + /** + * Creates a new SpeechWordInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo instance + */ + SpeechWordInfo.create = function create(properties) { + return new SpeechWordInfo(properties); + }; + + /** + * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpeechWordInfo.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); + return writer; + }; + + /** + * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SpeechWordInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.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.v3.SpeechWordInfo} SpeechWordInfo + * @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) { + 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.SpeechWordInfo(); + 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()); + break; + case 2: + message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 4: + message.confidence = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SpeechWordInfo message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @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) { + 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"; + return null; + }; + + /** + * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo + */ + SpeechWordInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.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.v3.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.v3.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 SpeechWordInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.SpeechWordInfo} message SpeechWordInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SpeechWordInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.startOffset = null; + object.endOffset = null; + object.word = ""; + object.confidence = 0; + } + 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 SpeechWordInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + * @returns {Object.} JSON object + */ + SpeechWordInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SpeechWordInfo; + })(); + v3.InputAudioConfig = (function() { /** @@ -51768,305 +52007,229 @@ return DeleteTransitionRouteGroupRequest; })(); - v3.Experiments = (function() { + v3.Webhooks = (function() { /** - * Constructs a new Experiments service. + * Constructs a new Webhooks service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Experiments + * @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 Experiments(rpcImpl, requestDelimited, responseDelimited) { + function Webhooks(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; + (Webhooks.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Webhooks; /** - * Creates new Experiments service using the specified rpc implementation. + * Creates new Webhooks service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * @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 {Experiments} RPC service. Useful where requests and/or responses are streamed. + * @returns {Webhooks} RPC service. Useful where requests and/or responses are streamed. */ - Experiments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + Webhooks.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#listExperiments}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef ListExperimentsCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.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.ListExperimentsResponse} [response] ListExperimentsResponse + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} [response] ListWebhooksResponse */ /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls ListWebhooks. + * @function listWebhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.ListExperimentsCallback} callback Node-style callback called with the error, if any, and ListExperimentsResponse + * @param {google.cloud.dialogflow.cx.v3.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 */ - Object.defineProperty(Experiments.prototype.listExperiments = function listExperiments(request, callback) { - return this.rpcCall(listExperiments, $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest, $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse, request, callback); - }, "name", { value: "ListExperiments" }); + Object.defineProperty(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" }); /** - * Calls ListExperiments. - * @function listExperiments - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls ListWebhooks. + * @function listWebhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} request ListExperimentsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} request ListWebhooksRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#getExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef GetExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.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.Experiment} [response] Experiment + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook */ /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls GetWebhook. + * @function getWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.GetExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @param {google.cloud.dialogflow.cx.v3.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 */ - Object.defineProperty(Experiments.prototype.getExperiment = function getExperiment(request, callback) { - return this.rpcCall(getExperiment, $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "GetExperiment" }); + Object.defineProperty(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" }); /** - * Calls GetExperiment. - * @function getExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls GetWebhook. + * @function getWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} request GetExperimentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} request GetWebhookRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#createExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef CreateExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.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.Experiment} [response] Experiment + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook */ /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls CreateWebhook. + * @function createWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.CreateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @param {google.cloud.dialogflow.cx.v3.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 */ - Object.defineProperty(Experiments.prototype.createExperiment = function createExperiment(request, callback) { - return this.rpcCall(createExperiment, $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "CreateExperiment" }); + Object.defineProperty(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" }); /** - * Calls CreateExperiment. - * @function createExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls CreateWebhook. + * @function createWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} request CreateExperimentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} request CreateWebhookRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#updateExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef UpdateExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.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.Experiment} [response] Experiment + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook */ /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls UpdateWebhook. + * @function updateWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.UpdateExperimentCallback} callback Node-style callback called with the error, if any, and Experiment + * @param {google.cloud.dialogflow.cx.v3.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 */ - Object.defineProperty(Experiments.prototype.updateExperiment = function updateExperiment(request, callback) { - return this.rpcCall(updateExperiment, $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest, $root.google.cloud.dialogflow.cx.v3.Experiment, request, callback); - }, "name", { value: "UpdateExperiment" }); + Object.defineProperty(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" }); /** - * Calls UpdateExperiment. - * @function updateExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls UpdateWebhook. + * @function updateWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} request UpdateExperimentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Experiments#deleteExperiment}. - * @memberof google.cloud.dialogflow.cx.v3.Experiments - * @typedef DeleteExperimentCallback + * Callback as used by {@link google.cloud.dialogflow.cx.v3.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 DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls DeleteWebhook. + * @function deleteWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Experiments.DeleteExperimentCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.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 */ - Object.defineProperty(Experiments.prototype.deleteExperiment = function deleteExperiment(request, callback) { - return this.rpcCall(deleteExperiment, $root.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteExperiment" }); + Object.defineProperty(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" }); /** - * Calls DeleteExperiment. - * @function deleteExperiment - * @memberof google.cloud.dialogflow.cx.v3.Experiments + * Calls DeleteWebhook. + * @function deleteWebhook + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteExperimentRequest} request DeleteExperimentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest 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 Webhooks; })(); - v3.Experiment = (function() { + v3.Webhook = (function() { /** - * Properties of an Experiment. + * Properties of a Webhook. * @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 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 Experiment. + * Constructs a new Webhook. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an Experiment. - * @implements IExperiment + * @classdesc Represents a Webhook. + * @implements IWebhook * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set */ - function Experiment(properties) { - this.variantsHistory = []; + function Webhook(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52074,211 +52237,134 @@ } /** - * Experiment name. + * Webhook name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - Experiment.prototype.name = ""; + Webhook.prototype.name = ""; /** - * Experiment displayName. + * Webhook displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.displayName = ""; - - /** - * Experiment description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.description = ""; - - /** - * Experiment state. - * @member {google.cloud.dialogflow.cx.v3.Experiment.State} state - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.state = 0; - - /** - * Experiment definition. - * @member {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null|undefined} definition - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.definition = null; - - /** - * Experiment rolloutConfig. - * @member {google.cloud.dialogflow.cx.v3.IRolloutConfig|null|undefined} rolloutConfig - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.rolloutConfig = null; - - /** - * Experiment rolloutState. - * @member {google.cloud.dialogflow.cx.v3.IRolloutState|null|undefined} rolloutState - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.rolloutState = null; - - /** - * Experiment rolloutFailureReason. - * @member {string} rolloutFailureReason - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.rolloutFailureReason = ""; - - /** - * Experiment result. - * @member {google.cloud.dialogflow.cx.v3.Experiment.IResult|null|undefined} result - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - Experiment.prototype.result = null; + Webhook.prototype.displayName = ""; /** - * Experiment createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Webhook genericWebService. + * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - Experiment.prototype.createTime = null; + Webhook.prototype.genericWebService = null; /** - * Experiment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Webhook serviceDirectory. + * @member {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig|null|undefined} serviceDirectory + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - Experiment.prototype.startTime = null; + Webhook.prototype.serviceDirectory = null; /** - * Experiment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Webhook timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - Experiment.prototype.endTime = null; + Webhook.prototype.timeout = null; /** - * Experiment lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Webhook disabled. + * @member {boolean} disabled + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - Experiment.prototype.lastUpdateTime = null; + Webhook.prototype.disabled = false; - /** - * Experiment experimentLength. - * @member {google.protobuf.IDuration|null|undefined} experimentLength - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @instance - */ - Experiment.prototype.experimentLength = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Experiment variantsHistory. - * @member {Array.} variantsHistory - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * Webhook webhook. + * @member {"genericWebService"|"serviceDirectory"|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ - Experiment.prototype.variantsHistory = $util.emptyArray; + Object.defineProperty(Webhook.prototype, "webhook", { + get: $util.oneOfGetter($oneOfFields = ["genericWebService", "serviceDirectory"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Experiment instance using the specified properties. + * Creates a new Webhook instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @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.IWebhook=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook instance */ - Experiment.create = function create(properties) { - return new Experiment(properties); + Webhook.create = function create(properties) { + return new Webhook(properties); }; /** - * Encodes the specified Experiment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.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.Experiment + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment 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 */ - Experiment.encode = function encode(message, writer) { + Webhook.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.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 Experiment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.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.Experiment + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.IExperiment} message Experiment 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 */ - Experiment.encodeDelimited = function encodeDelimited(message, writer) { + Webhook.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Experiment 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.Experiment + * @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.Experiment} Experiment + * @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 */ - Experiment.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.Experiment(); + 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) { @@ -52288,49 +52374,20 @@ case 2: message.displayName = reader.string(); break; - case 3: - message.description = reader.string(); - break; case 4: - message.state = reader.int32(); - break; - case 5: - message.definition = $root.google.cloud.dialogflow.cx.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()); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); break; - case 16: - message.rolloutFailureReason = reader.string(); + case 7: + message.serviceDirectory = $root.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig.decode(reader, reader.uint32()); break; case 6: - message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.decode(reader, reader.uint32()); + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 5: + message.disabled = reader.bool(); break; - case 8: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 10: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 11: - message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 12: - if (!(message.variantsHistory && message.variantsHistory.length)) - message.variantsHistory = []; - message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3.VariantsHistory.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); + default: + reader.skipType(tag & 7); break; } } @@ -52338,309 +52395,179 @@ }; /** - * Decodes an Experiment 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.Experiment + * @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.Experiment} Experiment + * @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 */ - Experiment.decodeDelimited = function decodeDelimited(reader) { + Webhook.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Experiment message. + * Verifies a Webhook message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @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 */ - Experiment.verify = function verify(message) { + Webhook.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.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.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.definition != null && message.hasOwnProperty("definition")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.verify(message.definition); - if (error) - return "definition." + error; - } - if (message.rolloutConfig != null && message.hasOwnProperty("rolloutConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.RolloutConfig.verify(message.rolloutConfig); - if (error) - return "rolloutConfig." + error; - } - 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.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.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; - } - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { - var error = $root.google.protobuf.Duration.verify(message.experimentLength); - if (error) - return "experimentLength." + error; - } - if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { - if (!Array.isArray(message.variantsHistory)) - return "variantsHistory: array expected"; - for (var i = 0; i < message.variantsHistory.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.verify(message.variantsHistory[i]); + if (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 "variantsHistory." + error; + return "serviceDirectory." + 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 an Experiment 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.Experiment + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook */ - Experiment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment) + 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.Experiment(); + 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.description != null) - message.description = String(object.description); - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "DRAFT": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "DONE": - case 3: - message.state = 3; - break; - 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); - } - 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.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.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.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.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.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 an Experiment 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.Experiment + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment} message Experiment + * @param {google.cloud.dialogflow.cx.v3.Webhook} message Webhook * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Experiment.toObject = function toObject(message, options) { + Webhook.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.variantsHistory = []; if (options.defaults) { object.name = ""; object.displayName = ""; - object.description = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.definition = null; - object.result = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.lastUpdateTime = null; - object.experimentLength = null; - object.rolloutConfig = null; - object.rolloutState = null; - object.rolloutFailureReason = ""; + 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.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.State[message.state] : message.state; - if (message.definition != null && message.hasOwnProperty("definition")) - object.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.toObject(message.definition, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.toObject(message.result, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); - if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) - object.experimentLength = $root.google.protobuf.Duration.toObject(message.experimentLength, options); - if (message.variantsHistory && message.variantsHistory.length) { - object.variantsHistory = []; - for (var j = 0; j < message.variantsHistory.length; ++j) - object.variantsHistory[j] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.toObject(message.variantsHistory[j], options); + if (message.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.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 Webhook to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance * @returns {Object.} JSON object */ - Experiment.prototype.toJSON = function toJSON() { + Webhook.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Experiment.Definition = (function() { + Webhook.GenericWebService = (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 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 */ /** - * Constructs a new Definition. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @classdesc Represents a Definition. - * @implements IDefinition + * Constructs a new GenericWebService. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @classdesc Represents a GenericWebService. + * @implements IGenericWebService * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set */ - function Definition(properties) { + function GenericWebService(properties) { + this.requestHeaders = {}; + this.allowedCaCerts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52648,102 +52575,150 @@ } /** - * Definition condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * GenericWebService uri. + * @member {string} uri + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance */ - Definition.prototype.condition = ""; + GenericWebService.prototype.uri = ""; /** - * Definition versionVariants. - * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * GenericWebService username. + * @member {string} username + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance */ - Definition.prototype.versionVariants = null; + GenericWebService.prototype.username = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * GenericWebService password. + * @member {string} password + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.password = ""; /** - * Definition variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * GenericWebService requestHeaders. + * @member {Object.} requestHeaders + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance */ - Object.defineProperty(Definition.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); + GenericWebService.prototype.requestHeaders = $util.emptyObject; /** - * Creates a new Definition instance using the specified properties. + * GenericWebService allowedCaCerts. + * @member {Array.} allowedCaCerts + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService + * @instance + */ + GenericWebService.prototype.allowedCaCerts = $util.emptyArray; + + /** + * Creates a new GenericWebService instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @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.Webhook.IGenericWebService=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService instance */ - Definition.create = function create(properties) { - return new Definition(properties); + GenericWebService.create = function create(properties) { + return new GenericWebService(properties); }; /** - * Encodes the specified Definition message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Definition.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.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition 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 */ - Definition.encode = function encode(message, writer) { + GenericWebService.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.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]); 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 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.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IDefinition} message Definition 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 */ - Definition.encodeDelimited = function encodeDelimited(message, writer) { + GenericWebService.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Definition 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.Experiment.Definition + * @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.Experiment.Definition} Definition + * @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 */ - Definition.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.Experiment.Definition(); + 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.condition = reader.string(); + message.uri = reader.string(); break; case 2: - message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); + 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; default: reader.skipType(tag & 7); @@ -52754,128 +52729,172 @@ }; /** - * Decodes a Definition 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.Experiment.Definition + * @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.Experiment.Definition} Definition + * @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 */ - Definition.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 Definition message. + * Verifies a GenericWebService message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @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 */ - Definition.verify = function verify(message) { + GenericWebService.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.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"; } return null; }; /** - * Creates a Definition 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.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService */ - Definition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Definition) + 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.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.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) + message.allowedCaCerts[i] = object.allowedCaCerts[i]; } return message; }; /** - * Creates a plain object from a Definition 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.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Definition} message Definition + * @param {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} message GenericWebService * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Definition.toObject = function toObject(message, options) { + GenericWebService.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"; + if (options.arrays || options.defaults) + object.allowedCaCerts = []; + if (options.objects || options.defaults) + object.requestHeaders = {}; + if (options.defaults) { + object.uri = ""; + object.username = ""; + object.password = ""; + } + 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]; } return object; }; /** - * Converts this Definition to JSON. + * Converts this GenericWebService to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance * @returns {Object.} JSON object */ - Definition.prototype.toJSON = function toJSON() { + GenericWebService.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Definition; + return GenericWebService; })(); - Experiment.Result = (function() { + Webhook.ServiceDirectoryConfig = (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 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 Result. - * @memberof google.cloud.dialogflow.cx.v3.Experiment - * @classdesc Represents a Result. - * @implements IResult + * Constructs a new ServiceDirectoryConfig. + * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @classdesc Represents a ServiceDirectoryConfig. + * @implements IServiceDirectoryConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Webhook.IServiceDirectoryConfig=} [properties] Properties to set */ - function Result(properties) { - this.versionMetrics = []; + function ServiceDirectoryConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -52883,91 +52902,88 @@ } /** - * Result versionMetrics. - * @member {Array.} versionMetrics - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * ServiceDirectoryConfig service. + * @member {string} service + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @instance */ - Result.prototype.versionMetrics = $util.emptyArray; + ServiceDirectoryConfig.prototype.service = ""; /** - * Result lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * ServiceDirectoryConfig genericWebService. + * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @instance */ - Result.prototype.lastUpdateTime = null; + ServiceDirectoryConfig.prototype.genericWebService = null; /** - * Creates a new Result instance using the specified properties. + * Creates a new ServiceDirectoryConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @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.Webhook.IServiceDirectoryConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig instance */ - Result.create = function create(properties) { - return new Result(properties); + ServiceDirectoryConfig.create = function create(properties) { + return new ServiceDirectoryConfig(properties); }; /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.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.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result 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 */ - Result.encode = function encode(message, writer) { + ServiceDirectoryConfig.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.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 Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.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.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.IResult} message Result 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 */ - Result.encodeDelimited = function encodeDelimited(message, writer) { + ServiceDirectoryConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Result 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.Experiment.Result + * @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.Experiment.Result} Result + * @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 */ - Result.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.Experiment.Result(); + 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: - 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.service = reader.string(); break; case 2: - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -52978,1072 +52994,775 @@ }; /** - * Decodes a Result 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.Experiment.Result + * @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.Experiment.Result} Result + * @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 */ - Result.decodeDelimited = function decodeDelimited(reader) { + ServiceDirectoryConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Result message. + * Verifies a ServiceDirectoryConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @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 */ - Result.verify = function verify(message) { + ServiceDirectoryConfig.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 (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 "lastUpdateTime." + error; + return "genericWebService." + error; } return null; }; /** - * Creates a Result 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.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} ServiceDirectoryConfig */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result) + 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.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); + 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 Result 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.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result} message Result + * @param {google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig} message ServiceDirectoryConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Result.toObject = function toObject(message, options) { + ServiceDirectoryConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionMetrics = []; - if (options.defaults) - object.lastUpdateTime = null; - if (message.versionMetrics && message.versionMetrics.length) { - object.versionMetrics = []; - for (var j = 0; j < message.versionMetrics.length; ++j) - object.versionMetrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.toObject(message.versionMetrics[j], options); + if (options.defaults) { + object.service = ""; + object.genericWebService = null; } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + 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 Result to JSON. + * Converts this ServiceDirectoryConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig * @instance * @returns {Object.} JSON object */ - Result.prototype.toJSON = function toJSON() { + ServiceDirectoryConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Result.ConfidenceInterval = (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 - */ + return ServiceDirectoryConfig; + })(); - /** - * 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]]; - } + return Webhook; + })(); - /** - * ConfidenceInterval confidenceLevel. - * @member {number} confidenceLevel - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.confidenceLevel = 0; + v3.ListWebhooksRequest = (function() { - /** - * ConfidenceInterval ratio. - * @member {number} ratio - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.ratio = 0; + /** + * 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 + */ - /** - * ConfidenceInterval lowerBound. - * @member {number} lowerBound - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.lowerBound = 0; + /** + * 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]]; + } - /** - * ConfidenceInterval upperBound. - * @member {number} upperBound - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval - * @instance - */ - ConfidenceInterval.prototype.upperBound = 0; + /** + * ListWebhooksRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @instance + */ + ListWebhooksRequest.prototype.parent = ""; - /** - * 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); - }; + /** + * ListWebhooksRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @instance + */ + ListWebhooksRequest.prototype.pageSize = 0; - /** - * 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; - }; + /** + * ListWebhooksRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @instance + */ + ListWebhooksRequest.prototype.pageToken = ""; - /** - * 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 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); + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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()); - }; + /** + * 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(); + }; - /** - * 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; - }; + /** + * 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; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a ConfidenceInterval message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.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; - }; + /** + * 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 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; - }; + /** + * 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; + }; - /** - * 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); - }; + /** + * 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; + }; - return ConfidenceInterval; - })(); + /** + * 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; + }; - Result.Metric = (function() { + /** + * 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); + }; - /** - * 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 - */ + return ListWebhooksRequest; + })(); - /** - * 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]]; - } + v3.ListWebhooksResponse = (function() { - /** - * 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; + /** + * Properties of a ListWebhooksResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListWebhooksResponse + * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks + * @property {string|null} [nextPageToken] ListWebhooksResponse nextPageToken + */ - /** - * 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; + /** + * Constructs a new ListWebhooksResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListWebhooksResponse. + * @implements IListWebhooksResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set + */ + function ListWebhooksResponse(properties) { + this.webhooks = []; + if (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 ratio. - * @member {number|null|undefined} ratio - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.ratio = null; + /** + * ListWebhooksResponse webhooks. + * @member {Array.} webhooks + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @instance + */ + ListWebhooksResponse.prototype.webhooks = $util.emptyArray; - /** - * Metric count. - * @member {number|null|undefined} count - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @instance - */ - Metric.prototype.count = null; + /** + * ListWebhooksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @instance + */ + ListWebhooksResponse.prototype.nextPageToken = ""; - /** - * 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; + /** + * Creates a new ListWebhooksResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse instance + */ + ListWebhooksResponse.create = function create(properties) { + return new ListWebhooksResponse(properties); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * 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.ListWebhooksResponse + * @static + * @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 + */ + ListWebhooksResponse.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); + return writer; + }; - /** - * 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) - }); + /** + * 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.ListWebhooksResponse + * @static + * @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 + */ + ListWebhooksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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); - }; + /** + * Decodes a ListWebhooksResponse message from the specified reader or buffer. + * @function decode + * @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.ListWebhooksResponse} ListWebhooksResponse + * @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) { + 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(); + 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())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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; - }; + /** + * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.ListWebhooksResponse} ListWebhooksResponse + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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(); - }; + /** + * Verifies a ListWebhooksResponse message. + * @function verify + * @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 + */ + ListWebhooksResponse.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"; + return null; + }; - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 5: - message.countType = reader.int32(); - break; - case 2: - message.ratio = reader.double(); - break; - case 4: - message.count = reader.double(); - break; - case 3: - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse + */ + 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.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); + return message; + }; - /** - * 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()); - }; + /** + * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} message ListWebhooksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListWebhooksResponse.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 (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - /** - * 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; - }; + /** + * Converts this ListWebhooksResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @instance + * @returns {Object.} JSON object + */ + ListWebhooksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); - switch (object.type) { - case "METRIC_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "CONTAINED_SESSION_NO_CALLBACK_RATE": - case 1: - message.type = 1; - break; - case "LIVE_AGENT_HANDOFF_RATE": - case 2: - message.type = 2; - break; - case "CALLBACK_SESSION_RATE": - case 3: - message.type = 3; - break; - case "ABANDONED_SESSION_RATE": - case 4: - message.type = 4; - break; - case "SESSION_END_RATE": - case 5: - message.type = 5; - break; - } - switch (object.countType) { - case "COUNT_TYPE_UNSPECIFIED": - case 0: - message.countType = 0; - break; - case "TOTAL_NO_MATCH_COUNT": - case 1: - message.countType = 1; - break; - case "TOTAL_TURN_COUNT": - case 2: - message.countType = 2; - break; - case "AVERAGE_TURN_COUNT": - case 3: - message.countType = 3; - break; - } - if (object.ratio != null) - message.ratio = Number(object.ratio); - if (object.count != null) - message.count = Number(object.count); - if (object.confidenceInterval != null) { - if (typeof object.confidenceInterval !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.confidenceInterval: object expected"); - message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); - } - return message; - }; + return ListWebhooksResponse; + })(); - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; - object.confidenceInterval = null; - object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType[message.type] : message.type; - if (message.ratio != null && message.hasOwnProperty("ratio")) { - object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; - if (options.oneofs) - object.value = "ratio"; - } - if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) - object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); - if (message.count != null && message.hasOwnProperty("count")) { - object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; - if (options.oneofs) - object.value = "count"; - } - if (message.countType != null && message.hasOwnProperty("countType")) - object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType[message.countType] : message.countType; - return object; - }; + v3.GetWebhookRequest = (function() { - /** - * 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); - }; + /** + * Properties of a GetWebhookRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetWebhookRequest + * @property {string|null} [name] GetWebhookRequest name + */ - return Metric; - })(); + /** + * 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]]; + } - Result.VersionMetrics = (function() { + /** + * GetWebhookRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @instance + */ + GetWebhookRequest.prototype.name = ""; - /** - * 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 - */ + /** + * 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); + }; - /** - * 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]]; - } + /** + * 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; + }; - /** - * VersionMetrics version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.version = ""; + /** + * 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(); + }; - /** - * VersionMetrics metrics. - * @member {Array.} metrics - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.metrics = $util.emptyArray; + /** + * 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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * VersionMetrics sessionCount. - * @member {number} sessionCount - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - */ - VersionMetrics.prototype.sessionCount = 0; + /** + * 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()); + }; - /** - * 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); - }; + /** + * 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; + }; - /** - * Encodes the specified VersionMetrics message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.encode(message.metrics[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sessionCount != null && Object.hasOwnProperty.call(message, "sessionCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.sessionCount); - return writer; - }; + /** + * Creates a 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; + }; - /** - * Encodes the specified VersionMetrics message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics} message VersionMetrics message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VersionMetrics.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VersionMetrics message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.decode(reader, reader.uint32())); - break; - case 3: - message.sessionCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VersionMetrics message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VersionMetrics.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VersionMetrics message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VersionMetrics.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - if (!$util.isInteger(message.sessionCount)) - return "sessionCount: integer expected"; - return null; - }; - - /** - * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics - */ - VersionMetrics.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); - if (object.version != null) - message.version = String(object.version); - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.metrics: object expected"); - message.metrics[i] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.fromObject(object.metrics[i]); - } - } - if (object.sessionCount != null) - message.sessionCount = object.sessionCount | 0; - return message; - }; - - /** - * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @static - * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} message VersionMetrics - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VersionMetrics.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metrics = []; - if (options.defaults) { - object.version = ""; - object.sessionCount = 0; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.toObject(message.metrics[j], options); - } - if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) - object.sessionCount = message.sessionCount; - return object; - }; - - /** - * Converts this VersionMetrics to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics - * @instance - * @returns {Object.} JSON object - */ - VersionMetrics.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return VersionMetrics; - })(); - - /** - * MetricType enum. - * @name google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType - * @enum {number} - * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value - * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value - * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value - * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value - * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value - * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value - */ - Result.MetricType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; - values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; - values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; - values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; - values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; - values[valuesById[5] = "SESSION_END_RATE"] = 5; - return values; - })(); - - /** - * CountType enum. - * @name google.cloud.dialogflow.cx.v3.Experiment.Result.CountType - * @enum {number} - * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value - * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value - * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value - * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value - */ - Result.CountType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; - values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; - values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; - return values; - })(); - - return Result; - })(); + /** + * 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; + }; /** - * 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 + * Converts this GetWebhookRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @instance + * @returns {Object.} JSON object */ - 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; - })(); + GetWebhookRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Experiment; + return GetWebhookRequest; })(); - v3.VersionVariants = (function() { + v3.CreateWebhookRequest = (function() { /** - * Properties of a VersionVariants. + * Properties of a CreateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IVersionVariants - * @property {Array.|null} [variants] VersionVariants variants + * @interface ICreateWebhookRequest + * @property {string|null} [parent] CreateWebhookRequest parent + * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] CreateWebhookRequest webhook */ /** - * Constructs a new VersionVariants. + * Constructs a new CreateWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a VersionVariants. - * @implements IVersionVariants + * @classdesc Represents a CreateWebhookRequest. + * @implements ICreateWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set */ - function VersionVariants(properties) { - this.variants = []; + function CreateWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54051,78 +53770,88 @@ } /** - * VersionVariants variants. - * @member {Array.} variants - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * CreateWebhookRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance */ - VersionVariants.prototype.variants = $util.emptyArray; + CreateWebhookRequest.prototype.parent = ""; /** - * Creates a new VersionVariants instance using the specified properties. + * CreateWebhookRequest webhook. + * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @instance + */ + CreateWebhookRequest.prototype.webhook = null; + + /** + * Creates a new CreateWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @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.ICreateWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest instance */ - VersionVariants.create = function create(properties) { - return new VersionVariants(properties); + CreateWebhookRequest.create = function create(properties) { + return new CreateWebhookRequest(properties); }; /** - * Encodes the specified VersionVariants message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.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.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants 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 */ - VersionVariants.encode = function encode(message, writer) { + CreateWebhookRequest.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.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 VersionVariants message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.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.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVersionVariants} message VersionVariants 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 */ - VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { + CreateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VersionVariants 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.VersionVariants + * @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.VersionVariants} VersionVariants + * @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 */ - VersionVariants.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.VersionVariants(); + 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: - if (!(message.variants && message.variants.length)) - message.variants = []; - message.variants.push($root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.decode(reader, reader.uint32())); + message.parent = reader.string(); + break; + case 2: + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -54133,460 +53862,211 @@ }; /** - * Decodes a VersionVariants 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.VersionVariants + * @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.VersionVariants} VersionVariants + * @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 */ - VersionVariants.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 VersionVariants message. + * Verifies a CreateWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @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 */ - VersionVariants.verify = function verify(message) { + CreateWebhookRequest.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; - } + 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 "webhook." + error; } return null; }; /** - * Creates a VersionVariants 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.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest */ - VersionVariants.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants) + 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.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.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 VersionVariants 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.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants} message VersionVariants + * @param {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} message CreateWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VersionVariants.toObject = function toObject(message, options) { + CreateWebhookRequest.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.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 VersionVariants to JSON. + * Converts this CreateWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance * @returns {Object.} JSON object */ - VersionVariants.prototype.toJSON = function toJSON() { + CreateWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - VersionVariants.Variant = (function() { + return CreateWebhookRequest; + })(); - /** - * 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 - */ + v3.UpdateWebhookRequest = (function() { - /** - * 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]]; - } + /** + * 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 + */ - /** - * Variant version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - */ - Variant.prototype.version = ""; + /** + * 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]]; + } - /** - * Variant trafficAllocation. - * @member {number} trafficAllocation - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - */ - Variant.prototype.trafficAllocation = 0; + /** + * UpdateWebhookRequest webhook. + * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @instance + */ + UpdateWebhookRequest.prototype.webhook = null; - /** - * Variant isControlGroup. - * @member {boolean} isControlGroup - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - */ - Variant.prototype.isControlGroup = false; + /** + * UpdateWebhookRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * @instance + */ + UpdateWebhookRequest.prototype.updateMask = null; - /** - * Creates a new Variant instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant instance - */ - Variant.create = function create(properties) { - return new Variant(properties); - }; - - /** - * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variant.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); - if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); - return writer; - }; - - /** - * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variant.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Variant message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variant.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.trafficAllocation = reader.float(); - break; - case 3: - message.isControlGroup = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Variant message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variant.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Variant message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Variant.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - if (typeof message.trafficAllocation !== "number") - return "trafficAllocation: number expected"; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - if (typeof message.isControlGroup !== "boolean") - return "isControlGroup: boolean expected"; - return null; - }; - - /** - * Creates a Variant message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant - */ - Variant.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); - if (object.version != null) - message.version = String(object.version); - if (object.trafficAllocation != null) - message.trafficAllocation = Number(object.trafficAllocation); - if (object.isControlGroup != null) - message.isControlGroup = Boolean(object.isControlGroup); - return message; - }; - - /** - * Creates a plain object from a Variant message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @static - * @param {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} message Variant - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Variant.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = ""; - object.trafficAllocation = 0; - object.isControlGroup = false; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) - object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; - if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) - object.isControlGroup = message.isControlGroup; - return object; - }; - - /** - * Converts this Variant to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant - * @instance - * @returns {Object.} JSON object - */ - Variant.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Variant; - })(); - - return VersionVariants; - })(); - - v3.VariantsHistory = (function() { - - /** - * Properties of a VariantsHistory. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IVariantsHistory - * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants - * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime - */ - - /** - * Constructs a new VariantsHistory. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a VariantsHistory. - * @implements IVariantsHistory - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set - */ - function VariantsHistory(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VariantsHistory versionVariants. - * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @instance - */ - VariantsHistory.prototype.versionVariants = null; - - /** - * VariantsHistory updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @instance - */ - VariantsHistory.prototype.updateTime = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * VariantsHistory variants. - * @member {"versionVariants"|undefined} variants - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @instance - */ - Object.defineProperty(VariantsHistory.prototype, "variants", { - get: $util.oneOfGetter($oneOfFields = ["versionVariants"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new VariantsHistory instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory - * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory instance - */ - VariantsHistory.create = function create(properties) { - return new VariantsHistory(properties); - }; + /** + * 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 VariantsHistory message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * 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.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode + * @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 */ - VariantsHistory.encode = function encode(message, writer) { + UpdateWebhookRequest.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.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 VariantsHistory message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VariantsHistory.verify|verify} messages. + * 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.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory} message VariantsHistory message or plain object to encode + * @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 */ - VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { + UpdateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VariantsHistory message from the specified reader or buffer. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @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.VariantsHistory} VariantsHistory + * @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 */ - VariantsHistory.decode = function decode(reader, length) { + 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.VariantsHistory(); + 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.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); break; case 2: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -54597,134 +54077,127 @@ }; /** - * Decodes a VariantsHistory message from the specified reader or buffer, length delimited. + * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @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.VariantsHistory} VariantsHistory + * @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 */ - VariantsHistory.decodeDelimited = function decodeDelimited(reader) { + UpdateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VariantsHistory message. + * Verifies an UpdateWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @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 */ - VariantsHistory.verify = function verify(message) { + UpdateWebhookRequest.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.webhook != null && message.hasOwnProperty("webhook")) { + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); + if (error) + return "webhook." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "updateTime." + error; + return "updateMask." + error; } return null; }; /** - * Creates a VariantsHistory 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. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest */ - VariantsHistory.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VariantsHistory) + 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.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); + 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.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); + 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; }; /** - * Creates a plain object from a VariantsHistory message. Also converts values to other types if specified. + * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.VariantsHistory} message VariantsHistory + * @param {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} message UpdateWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VariantsHistory.toObject = function toObject(message, options) { + UpdateWebhookRequest.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.webhook = null; + object.updateMask = null; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + 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; }; /** - * Converts this VariantsHistory to JSON. + * Converts this UpdateWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @instance * @returns {Object.} JSON object */ - VariantsHistory.prototype.toJSON = function toJSON() { + UpdateWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VariantsHistory; + return UpdateWebhookRequest; })(); - v3.RolloutConfig = (function() { + v3.DeleteWebhookRequest = (function() { /** - * Properties of a RolloutConfig. + * Properties of a DeleteWebhookRequest. * @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 + * @interface IDeleteWebhookRequest + * @property {string|null} [name] DeleteWebhookRequest name + * @property {boolean|null} [force] DeleteWebhookRequest force */ /** - * Constructs a new RolloutConfig. + * Constructs a new DeleteWebhookRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RolloutConfig. - * @implements IRolloutConfig + * @classdesc Represents a DeleteWebhookRequest. + * @implements IDeleteWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set */ - function RolloutConfig(properties) { - this.rolloutSteps = []; + function DeleteWebhookRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -54732,104 +54205,88 @@ } /** - * RolloutConfig rolloutSteps. - * @member {Array.} rolloutSteps - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig - * @instance - */ - RolloutConfig.prototype.rolloutSteps = $util.emptyArray; - - /** - * RolloutConfig rolloutCondition. - * @member {string} rolloutCondition - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * DeleteWebhookRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance */ - RolloutConfig.prototype.rolloutCondition = ""; + DeleteWebhookRequest.prototype.name = ""; /** - * RolloutConfig failureCondition. - * @member {string} failureCondition - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * DeleteWebhookRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance */ - RolloutConfig.prototype.failureCondition = ""; + DeleteWebhookRequest.prototype.force = false; /** - * Creates a new RolloutConfig instance using the specified properties. + * Creates a new DeleteWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest instance */ - RolloutConfig.create = function create(properties) { - return new RolloutConfig(properties); + DeleteWebhookRequest.create = function create(properties) { + return new DeleteWebhookRequest(properties); }; /** - * Encodes the specified RolloutConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.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.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig 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 */ - RolloutConfig.encode = function encode(message, writer) { + DeleteWebhookRequest.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); + 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 RolloutConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutConfig.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.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig} message RolloutConfig 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 */ - RolloutConfig.encodeDelimited = function encodeDelimited(message, writer) { + DeleteWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RolloutConfig 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.RolloutConfig + * @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.RolloutConfig} RolloutConfig + * @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 */ - RolloutConfig.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.RolloutConfig(); + 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: - if (!(message.rolloutSteps && message.rolloutSteps.length)) - message.rolloutSteps = []; - message.rolloutSteps.push($root.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.rolloutCondition = reader.string(); - break; - case 3: - message.failureCondition = reader.string(); + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -54840,483 +54297,378 @@ }; /** - * Decodes a RolloutConfig 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.RolloutConfig + * @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.RolloutConfig} RolloutConfig + * @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 */ - RolloutConfig.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 RolloutConfig message. + * Verifies a DeleteWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @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 */ - RolloutConfig.verify = function verify(message) { + DeleteWebhookRequest.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"; + 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 RolloutConfig 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.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest */ - RolloutConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutConfig) + 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.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); + 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 RolloutConfig 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.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutConfig} message RolloutConfig + * @param {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} message DeleteWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolloutConfig.toObject = function toObject(message, options) { + DeleteWebhookRequest.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); + object.name = ""; + object.force = false; } - if (message.rolloutCondition != null && message.hasOwnProperty("rolloutCondition")) - object.rolloutCondition = message.rolloutCondition; - if (message.failureCondition != null && message.hasOwnProperty("failureCondition")) - object.failureCondition = message.failureCondition; + 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 RolloutConfig to JSON. + * Converts this DeleteWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance * @returns {Object.} JSON object */ - RolloutConfig.prototype.toJSON = function toJSON() { + DeleteWebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - 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; + return DeleteWebhookRequest; + })(); - /** - * 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); - }; + v3.WebhookRequest = (function() { - /** - * 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; - }; + /** + * Properties of a WebhookRequest. + * @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} [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 + */ - /** - * 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(); - }; + /** + * 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 + */ + 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]]; + } - /** - * 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; - }; + /** + * WebhookRequest detectIntentResponseId. + * @member {string} detectIntentResponseId + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.detectIntentResponseId = ""; - /** - * 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()); - }; + /** + * WebhookRequest text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.text = null; - /** - * 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; - }; + /** + * WebhookRequest triggerIntent. + * @member {string|null|undefined} triggerIntent + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.triggerIntent = 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; - }; + /** + * WebhookRequest transcript. + * @member {string|null|undefined} transcript + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.transcript = null; - /** - * 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; - }; + /** + * WebhookRequest triggerEvent. + * @member {string|null|undefined} triggerEvent + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.triggerEvent = null; - /** - * 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); - }; + /** + * WebhookRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.languageCode = ""; - return RolloutStep; - })(); + /** + * WebhookRequest fulfillmentInfo. + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.fulfillmentInfo = null; - return RolloutConfig; - })(); + /** + * WebhookRequest intentInfo. + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null|undefined} intentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.intentInfo = null; - v3.RolloutState = (function() { + /** + * WebhookRequest pageInfo. + * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance + */ + WebhookRequest.prototype.pageInfo = null; /** - * Properties of a RolloutState. - * @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 + * WebhookRequest sessionInfo. + * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance */ + WebhookRequest.prototype.sessionInfo = null; /** - * Constructs a new RolloutState. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a RolloutState. - * @implements IRolloutState - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IRolloutState=} [properties] Properties to set + * WebhookRequest messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @instance */ - function RolloutState(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]]; - } + WebhookRequest.prototype.messages = $util.emptyArray; /** - * RolloutState step. - * @member {string} step - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * WebhookRequest payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - RolloutState.prototype.step = ""; + WebhookRequest.prototype.payload = null; /** - * RolloutState stepIndex. - * @member {number} stepIndex - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * WebhookRequest sentimentAnalysisResult. + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - RolloutState.prototype.stepIndex = 0; + WebhookRequest.prototype.sentimentAnalysisResult = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * RolloutState startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * WebhookRequest query. + * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ - RolloutState.prototype.startTime = null; + Object.defineProperty(WebhookRequest.prototype, "query", { + get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new RolloutState instance using the specified properties. + * Creates a new WebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @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.IWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest instance */ - RolloutState.create = function create(properties) { - return new RolloutState(properties); + WebhookRequest.create = function create(properties) { + return new WebhookRequest(properties); }; /** - * Encodes the specified RolloutState message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RolloutState.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.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState 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 */ - RolloutState.encode = function encode(message, writer) { + WebhookRequest.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.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); 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 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.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IRolloutState} message RolloutState 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 */ - RolloutState.encodeDelimited = function encodeDelimited(message, writer) { + WebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RolloutState 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.RolloutState + * @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.RolloutState} RolloutState + * @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 */ - RolloutState.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.RolloutState(); + 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.step = reader.string(); - break; - case 3: - message.stepIndex = reader.int32(); + message.detectIntentResponseId = reader.string(); break; - case 2: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + 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 15: + message.languageCode = reader.string(); + break; + case 6: + message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); + break; + case 3: + message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); + 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()); + 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())); + break; + case 8: + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 9: + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -55327,780 +54679,1189 @@ }; /** - * Decodes a RolloutState 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.RolloutState + * @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.RolloutState} RolloutState + * @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 */ - RolloutState.decodeDelimited = function decodeDelimited(reader) { + WebhookRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RolloutState message. + * Verifies a WebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @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 */ - RolloutState.verify = function verify(message) { + WebhookRequest.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); + 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.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.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 (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 a RolloutState 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.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest */ - RolloutState.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.RolloutState) + 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.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.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.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); + } + 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.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); } return message; }; /** - * Creates a plain object from a RolloutState 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.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3.RolloutState} message RolloutState + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest} message WebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RolloutState.toObject = function toObject(message, options) { + WebhookRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.messages = []; if (options.defaults) { - object.step = ""; - object.startTime = null; - object.stepIndex = 0; + object.detectIntentResponseId = ""; + object.intentInfo = null; + object.pageInfo = null; + object.sessionInfo = null; + object.fulfillmentInfo = null; + object.payload = null; + object.sentimentAnalysisResult = null; + object.languageCode = ""; } - 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; + 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; return object; }; /** - * Converts this RolloutState to JSON. + * Converts this WebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.RolloutState + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance * @returns {Object.} JSON object */ - RolloutState.prototype.toJSON = function toJSON() { + WebhookRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RolloutState; - })(); + WebhookRequest.FulfillmentInfo = (function() { - v3.ListExperimentsRequest = (function() { + /** + * Properties of a FulfillmentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @interface IFulfillmentInfo + * @property {string|null} [tag] FulfillmentInfo tag + */ - /** - * Properties of a ListExperimentsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListExperimentsRequest - * @property {string|null} [parent] ListExperimentsRequest parent - * @property {number|null} [pageSize] ListExperimentsRequest pageSize - * @property {string|null} [pageToken] ListExperimentsRequest pageToken - */ + /** + * Constructs a new FulfillmentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @classdesc Represents a FulfillmentInfo. + * @implements IFulfillmentInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set + */ + function FulfillmentInfo(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 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]]; - } + /** + * FulfillmentInfo tag. + * @member {string} tag + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @instance + */ + FulfillmentInfo.prototype.tag = ""; - /** - * ListExperimentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @instance - */ - ListExperimentsRequest.prototype.parent = ""; + /** + * Creates a new FulfillmentInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo instance + */ + FulfillmentInfo.create = function create(properties) { + return new FulfillmentInfo(properties); + }; - /** - * ListExperimentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @instance - */ - ListExperimentsRequest.prototype.pageSize = 0; + /** + * 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.WebhookRequest.FulfillmentInfo + * @static + * @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 + */ + FulfillmentInfo.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); + return writer; + }; - /** - * ListExperimentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @instance - */ - ListExperimentsRequest.prototype.pageToken = ""; + /** + * 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.WebhookRequest.FulfillmentInfo + * @static + * @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 + */ + FulfillmentInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a new ListExperimentsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest instance - */ - ListExperimentsRequest.create = function create(properties) { - return new ListExperimentsRequest(properties); - }; + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer. + * @function decode + * @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.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tag = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified ListExperimentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - return writer; - }; + /** + * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified ListExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest} message ListExperimentsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a FulfillmentInfo message. + * @function verify + * @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 + */ + FulfillmentInfo.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"; + return null; + }; - /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListExperimentsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ListExperimentsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListExperimentsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ListExperimentsRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListExperimentsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - return null; - }; + /** + * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo + */ + 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.WebhookRequest.FulfillmentInfo(); + if (object.tag != null) + message.tag = String(object.tag); + return message; + }; - /** - * Creates a ListExperimentsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest - */ - ListExperimentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest) + /** + * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} message FulfillmentInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillmentInfo.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; return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - return message; - }; + }; - /** - * Creates a plain object from a ListExperimentsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} message ListExperimentsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListExperimentsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - return object; - }; + /** + * Converts this FulfillmentInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + * @instance + * @returns {Object.} JSON object + */ + FulfillmentInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListExperimentsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest - * @instance - * @returns {Object.} JSON object - */ - ListExperimentsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return FulfillmentInfo; + })(); - return ListExperimentsRequest; - })(); + WebhookRequest.IntentInfo = (function() { - v3.ListExperimentsResponse = (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 ListExperimentsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListExperimentsResponse - * @property {Array.|null} [experiments] ListExperimentsResponse experiments - * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken - */ + /** + * Constructs a new IntentInfo. + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @classdesc Represents an IntentInfo. + * @implements IIntentInfo + * @constructor + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set + */ + function IntentInfo(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]]; + } - /** - * Constructs a new ListExperimentsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListExperimentsResponse. - * @implements IListExperimentsResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set - */ - function ListExperimentsResponse(properties) { - this.experiments = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * IntentInfo lastMatchedIntent. + * @member {string} lastMatchedIntent + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.lastMatchedIntent = ""; - /** - * ListExperimentsResponse experiments. - * @member {Array.} experiments - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @instance - */ - ListExperimentsResponse.prototype.experiments = $util.emptyArray; + /** + * IntentInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.displayName = ""; - /** - * ListExperimentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @instance - */ - ListExperimentsResponse.prototype.nextPageToken = ""; + /** + * IntentInfo parameters. + * @member {Object.} parameters + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.parameters = $util.emptyObject; - /** - * 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); - }; + /** + * IntentInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + */ + IntentInfo.prototype.confidence = 0; - /** - * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.experiments != null && message.experiments.length) - for (var i = 0; i < message.experiments.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Creates a new IntentInfo instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo instance + */ + IntentInfo.create = function create(properties) { + return new IntentInfo(properties); + }; - /** - * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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.WebhookRequest.IntentInfo + * @static + * @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 + */ + IntentInfo.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); + return writer; + }; - /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListExperimentsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.experiments && message.experiments.length)) - message.experiments = []; - message.experiments.push($root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * 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.WebhookRequest.IntentInfo + * @static + * @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 + */ + IntentInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IntentInfo message from the specified reader or buffer. + * @function decode + * @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.WebhookRequest.IntentInfo} IntentInfo + * @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) { + 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; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.lastMatchedIntent = reader.string(); + break; + case 3: + message.displayName = 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(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ListExperimentsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.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 - */ - ListExperimentsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an IntentInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.WebhookRequest.IntentInfo} IntentInfo + * @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) { + 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 - */ - 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; + /** + * Verifies an IntentInfo message. + * @function verify + * @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 + */ + IntentInfo.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + if (message.confidence != null && message.hasOwnProperty("confidence")) + if (typeof message.confidence !== "number") + return "confidence: number expected"; + return null; + }; - /** - * Creates a ListExperimentsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse - */ - 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]); + /** + * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo + */ + 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.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.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + if (object.confidence != null) + message.confidence = Number(object.confidence); + 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 - */ - 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; - }; + /** + * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @static + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} message IntentInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntentInfo.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); + } + 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 ListExperimentsResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse - * @instance - * @returns {Object.} JSON object - */ - ListExperimentsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this IntentInfo to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + * @instance + * @returns {Object.} JSON object + */ + IntentInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ListExperimentsResponse; - })(); + IntentInfo.IntentParameterValue = (function() { - v3.GetExperimentRequest = (function() { + /** + * 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 + */ - /** - * Properties of a GetExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetExperimentRequest - * @property {string|null} [name] GetExperimentRequest name - */ + /** + * 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]]; + } - /** - * 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]]; - } + /** + * IntentParameterValue originalValue. + * @member {string} originalValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @instance + */ + IntentParameterValue.prototype.originalValue = ""; - /** - * GetExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @instance - */ - GetExperimentRequest.prototype.name = ""; + /** + * IntentParameterValue resolvedValue. + * @member {google.protobuf.IValue|null|undefined} resolvedValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + * @instance + */ + IntentParameterValue.prototype.resolvedValue = null; - /** - * Creates a new GetExperimentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest instance - */ - GetExperimentRequest.create = function create(properties) { - return new GetExperimentRequest(properties); - }; + /** + * 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); + }; - /** - * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetExperimentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + /** + * Encodes the specified 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; + }; - /** - * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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(); + }; - /** - * Decodes a GetExperimentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetExperimentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes 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 a GetExperimentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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()); + }; - /** - * Verifies a GetExperimentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetExperimentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * 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; + }; - /** - * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest - */ - GetExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * Creates 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; + }; - /** - * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetExperimentRequest} message GetExperimentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetExperimentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * 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; + } + 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 GetExperimentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest - * @instance - * @returns {Object.} JSON object - */ - GetExperimentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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); + }; - return GetExperimentRequest; - })(); + return IntentParameterValue; + })(); - v3.CreateExperimentRequest = (function() { + return IntentInfo; + })(); - /** - * 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 - */ + 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); + 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()); + }; + + /** + * 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; + }; + + /** + * 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; + }; + + /** + * 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 SentimentAnalysisResult; + })(); + + return WebhookRequest; + })(); + + v3.WebhookResponse = (function() { /** - * Constructs a new CreateExperimentRequest. + * Properties of a WebhookResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateExperimentRequest. - * @implements ICreateExperimentRequest + * @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 + */ + + /** + * Constructs a new WebhookResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a WebhookResponse. + * @implements IWebhookResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set */ - function CreateExperimentRequest(properties) { + function WebhookResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56108,88 +55869,154 @@ } /** - * CreateExperimentRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * WebhookResponse fulfillmentResponse. + * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ - CreateExperimentRequest.prototype.parent = ""; + WebhookResponse.prototype.fulfillmentResponse = null; /** - * CreateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * WebhookResponse pageInfo. + * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ - CreateExperimentRequest.prototype.experiment = null; + WebhookResponse.prototype.pageInfo = null; /** - * Creates a new CreateExperimentRequest instance using the specified properties. + * 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 + * @instance + */ + WebhookResponse.prototype.targetFlow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * WebhookResponse transition. + * @member {"targetPage"|"targetFlow"|undefined} transition + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @instance + */ + Object.defineProperty(WebhookResponse.prototype, "transition", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WebhookResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @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.IWebhookResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse instance */ - CreateExperimentRequest.create = function create(properties) { - return new CreateExperimentRequest(properties); + WebhookResponse.create = function create(properties) { + return new WebhookResponse(properties); }; /** - * Encodes the specified CreateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.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.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest 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 */ - CreateExperimentRequest.encode = function encode(message, writer) { + WebhookResponse.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.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 CreateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateExperimentRequest.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.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest} message CreateExperimentRequest 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 */ - CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + WebhookResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateExperimentRequest 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.CreateExperimentRequest + * @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.CreateExperimentRequest} CreateExperimentRequest + * @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 */ - CreateExperimentRequest.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.CreateExperimentRequest(); + 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: - message.parent = reader.string(); + message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); break; case 2: - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); + 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: reader.skipType(tag & 7); @@ -56200,122 +56027,445 @@ }; /** - * Decodes a CreateExperimentRequest 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.CreateExperimentRequest + * @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.CreateExperimentRequest} CreateExperimentRequest + * @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 */ - CreateExperimentRequest.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 CreateExperimentRequest message. + * Verifies a WebhookResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @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 */ - CreateExperimentRequest.verify = function verify(message) { + WebhookResponse.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); + 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 "experiment." + 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 CreateExperimentRequest 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.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse */ - CreateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest) + 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.CreateExperimentRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); + var message = new $root.google.cloud.dialogflow.cx.v3.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 CreateExperimentRequest 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.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} message CreateExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse} message WebhookResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateExperimentRequest.toObject = function toObject(message, options) { + WebhookResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.experiment = null; + 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 (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. + * Converts this WebhookResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance * @returns {Object.} JSON object */ - CreateExperimentRequest.prototype.toJSON = function toJSON() { + WebhookResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateExperimentRequest; - })(); - - v3.UpdateExperimentRequest = (function() { + WebhookResponse.FulfillmentResponse = (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 + /** + * 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 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]]; + } + + /** + * FulfillmentResponse messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + * @instance + */ + FulfillmentResponse.prototype.messages = $util.emptyArray; + + /** + * 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; + + /** + * 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); + }; + + /** + * 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 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(); + }; + + /** + * 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: + 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) { + 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 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] : message.mergeBehavior; + return object; + }; + + /** + * 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); + }; + + /** + * 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 WebhookResponse; + })(); + + v3.PageInfo = (function() { + + /** + * Properties of a PageInfo. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IPageInfo + * @property {string|null} [currentPage] PageInfo currentPage + * @property {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo */ /** - * Constructs a new UpdateExperimentRequest. + * Constructs a new PageInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateExperimentRequest. - * @implements IUpdateExperimentRequest + * @classdesc Represents a PageInfo. + * @implements IPageInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set */ - function UpdateExperimentRequest(properties) { + function PageInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -56323,88 +56473,88 @@ } /** - * UpdateExperimentRequest experiment. - * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * PageInfo currentPage. + * @member {string} currentPage + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance */ - UpdateExperimentRequest.prototype.experiment = null; + PageInfo.prototype.currentPage = ""; /** - * UpdateExperimentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * PageInfo formInfo. + * @member {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null|undefined} formInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance */ - UpdateExperimentRequest.prototype.updateMask = null; + PageInfo.prototype.formInfo = null; /** - * Creates a new UpdateExperimentRequest instance using the specified properties. + * Creates a new PageInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo instance */ - UpdateExperimentRequest.create = function create(properties) { - return new UpdateExperimentRequest(properties); + PageInfo.create = function create(properties) { + return new PageInfo(properties); }; /** - * Encodes the specified UpdateExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.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.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest 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 */ - UpdateExperimentRequest.encode = function encode(message, writer) { + PageInfo.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(); + 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(); return writer; }; /** - * Encodes the specified UpdateExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.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.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest} message UpdateExperimentRequest 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 */ - UpdateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + PageInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExperimentRequest 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.UpdateExperimentRequest + * @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.UpdateExperimentRequest} UpdateExperimentRequest + * @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 */ - UpdateExperimentRequest.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.UpdateExperimentRequest(); + 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.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); + message.currentPage = reader.string(); break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 3: + message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -56415,500 +56565,653 @@ }; /** - * Decodes an UpdateExperimentRequest 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.UpdateExperimentRequest + * @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.UpdateExperimentRequest} UpdateExperimentRequest + * @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 */ - UpdateExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + PageInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExperimentRequest message. + * Verifies a PageInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @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 */ - UpdateExperimentRequest.verify = function verify(message) { + PageInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.experiment != null && message.hasOwnProperty("experiment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Experiment.verify(message.experiment); - if (error) - return "experiment." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.currentPage != null && message.hasOwnProperty("currentPage")) + if (!$util.isString(message.currentPage)) + return "currentPage: 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 "updateMask." + error; + return "formInfo." + error; } return null; }; /** - * Creates an UpdateExperimentRequest 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.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo */ - UpdateExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest) + 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.UpdateExperimentRequest(); - if (object.experiment != null) { - if (typeof object.experiment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.experiment: object expected"); - message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3.PageInfo(); + if (object.currentPage != null) + message.currentPage = String(object.currentPage); + 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 an UpdateExperimentRequest 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.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} message UpdateExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.PageInfo} message PageInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExperimentRequest.toObject = function toObject(message, options) { + PageInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.experiment = null; - object.updateMask = null; + object.currentPage = ""; + object.formInfo = null; } - if (message.experiment != null && message.hasOwnProperty("experiment")) - object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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); return object; }; /** - * Converts this UpdateExperimentRequest to JSON. + * Converts this PageInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance * @returns {Object.} JSON object */ - UpdateExperimentRequest.prototype.toJSON = function toJSON() { + PageInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateExperimentRequest; - })(); + PageInfo.FormInfo = (function() { - v3.DeleteExperimentRequest = (function() { + /** + * Properties of a FormInfo. + * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @interface IFormInfo + * @property {Array.|null} [parameterInfo] FormInfo parameterInfo + */ - /** - * Properties of a DeleteExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteExperimentRequest - * @property {string|null} [name] DeleteExperimentRequest name - */ + /** + * 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]]; + } - /** - * 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]]; - } + /** + * FormInfo parameterInfo. + * @member {Array.} parameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo + * @instance + */ + FormInfo.prototype.parameterInfo = $util.emptyArray; - /** - * DeleteExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest - * @instance - */ - DeleteExperimentRequest.prototype.name = ""; + /** + * 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); + }; - /** - * 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); - }; - - /** - * 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; - }; + /** + * 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; + }; - /** - * 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(); - }; + /** + * 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(); + }; - /** - * 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(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * 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; - }; + 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 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 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 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; + } + } + 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 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]); + } + } + 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; - 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 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); + }; - /** - * 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); - }; + FormInfo.ParameterInfo = (function() { - return DeleteExperimentRequest; - })(); + /** + * 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 + */ - v3.StartExperimentRequest = (function() { + /** + * 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]]; + } - /** - * Properties of a StartExperimentRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStartExperimentRequest - * @property {string|null} [name] StartExperimentRequest name - */ + /** + * ParameterInfo displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.displayName = ""; - /** - * 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]]; - } + /** + * ParameterInfo required. + * @member {boolean} required + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.required = false; - /** - * StartExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @instance - */ - StartExperimentRequest.prototype.name = ""; + /** + * 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; - /** - * 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); - }; + /** + * ParameterInfo value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.value = null; - /** - * 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; - }; + /** + * ParameterInfo justCollected. + * @member {boolean} justCollected + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo + * @instance + */ + ParameterInfo.prototype.justCollected = false; - /** - * 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(); - }; + /** + * 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); + }; - /** - * Decodes a StartExperimentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StartExperimentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StartExperimentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * 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; + }; - /** - * 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()); - }; + /** + * 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(); + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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; - }; + /** + * 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()); + }; - /** - * 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; - }; + /** + * 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; + }; - /** - * 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); - }; + /** + * 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) { + 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; + }; - return StartExperimentRequest; + /** + * 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] : 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); + }; + + /** + * 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.StopExperimentRequest = (function() { + v3.SessionInfo = (function() { /** - * Properties of a StopExperimentRequest. + * Properties of a SessionInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IStopExperimentRequest - * @property {string|null} [name] StopExperimentRequest name + * @interface ISessionInfo + * @property {string|null} [session] SessionInfo session + * @property {Object.|null} [parameters] SessionInfo parameters */ /** - * Constructs a new StopExperimentRequest. + * Constructs a new SessionInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a StopExperimentRequest. - * @implements IStopExperimentRequest + * @classdesc Represents a SessionInfo. + * @implements ISessionInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set */ - function StopExperimentRequest(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) @@ -56916,75 +57219,110 @@ } /** - * StopExperimentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * SessionInfo session. + * @member {string} session + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance */ - StopExperimentRequest.prototype.name = ""; + SessionInfo.prototype.session = ""; /** - * Creates a new StopExperimentRequest instance using the specified properties. + * 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. * @function create - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo instance */ - StopExperimentRequest.create = function create(properties) { - return new StopExperimentRequest(properties); + SessionInfo.create = function create(properties) { + return new SessionInfo(properties); }; /** - * Encodes the specified StopExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.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.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest 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 */ - StopExperimentRequest.encode = function encode(message, writer) { + SessionInfo.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.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 StopExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StopExperimentRequest.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.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} message StopExperimentRequest 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 */ - StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + SessionInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StopExperimentRequest 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.StopExperimentRequest + * @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.StopExperimentRequest} StopExperimentRequest + * @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 */ - StopExperimentRequest.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.StopExperimentRequest(); + 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.name = reader.string(); + message.session = 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; break; default: reader.skipType(tag & 7); @@ -56995,373 +57333,416 @@ }; /** - * Decodes a StopExperimentRequest 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.StopExperimentRequest + * @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.StopExperimentRequest} StopExperimentRequest + * @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 */ - StopExperimentRequest.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 StopExperimentRequest message. + * Verifies a SessionInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @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 */ - StopExperimentRequest.verify = function verify(message) { + SessionInfo.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.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 StopExperimentRequest 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.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo */ - StopExperimentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.StopExperimentRequest) + 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.StopExperimentRequest(); - if (object.name != null) - message.name = String(object.name); + 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 StopExperimentRequest 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.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3.StopExperimentRequest} message StopExperimentRequest + * @param {google.cloud.dialogflow.cx.v3.SessionInfo} message SessionInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StopExperimentRequest.toObject = function toObject(message, options) { + SessionInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.parameters = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + 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); + } return object; }; /** - * Converts this StopExperimentRequest to JSON. + * Converts this SessionInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance * @returns {Object.} JSON object */ - StopExperimentRequest.prototype.toJSON = function toJSON() { + SessionInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StopExperimentRequest; + return SessionInfo; })(); - v3.Versions = (function() { + v3.Experiments = (function() { /** - * Constructs a new Versions service. + * Constructs a new Experiments service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Versions + * @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 Versions(rpcImpl, requestDelimited, responseDelimited) { + function Experiments(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (Versions.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Versions; + (Experiments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Experiments; /** - * Creates new Versions service using the specified rpc implementation. + * Creates new Experiments service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Versions + * @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 {Versions} RPC service. Useful where requests and/or responses are streamed. + * @returns {Experiments} RPC service. Useful where requests and/or responses are streamed. */ - Versions.create = function create(rpcImpl, requestDelimited, responseDelimited) { + Experiments.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 + * 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.ListVersionsResponse} [response] ListVersionsResponse + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} [response] ListExperimentsResponse */ /** - * Calls ListVersions. - * @function listVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @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 + * @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(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" }); + 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 ListVersions. - * @function listVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls ListExperiments. + * @function listExperiments + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object - * @returns {Promise} Promise + * @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.Versions#getVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef GetVersionCallback + * 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.Version} [response] Version + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment */ /** - * Calls GetVersion. - * @function getVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @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 + * @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(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" }); + 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 GetVersion. - * @function getVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls GetExperiment. + * @function getExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object - * @returns {Promise} Promise + * @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.Versions#createVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef CreateVersionCallback + * 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.longrunning.Operation} [response] Operation + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment */ /** - * Calls CreateVersion. - * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @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 + * @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(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" }); + 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 CreateVersion. - * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls CreateExperiment. + * @function createExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object - * @returns {Promise} Promise + * @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.Versions#updateVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef UpdateVersionCallback + * 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.Version} [response] Version + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment */ /** - * Calls UpdateVersion. - * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @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 + * @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(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" }); + 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 UpdateVersion. - * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls UpdateExperiment. + * @function updateExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object - * @returns {Promise} Promise + * @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.Versions#deleteVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef DeleteVersionCallback + * 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 DeleteVersion. - * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @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 + * @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(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" }); + 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 DeleteVersion. - * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls DeleteExperiment. + * @function deleteExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @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.Versions#loadVersion}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef LoadVersionCallback + * 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.longrunning.Operation} [response] Operation + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment */ /** - * Calls LoadVersion. - * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @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 + * @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(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" }); + 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 LoadVersion. - * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls StartExperiment. + * @function startExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object - * @returns {Promise} Promise + * @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.Versions#compareVersions}. - * @memberof google.cloud.dialogflow.cx.v3.Versions - * @typedef CompareVersionsCallback + * 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.CompareVersionsResponse} [response] CompareVersionsResponse + * @param {google.cloud.dialogflow.cx.v3.Experiment} [response] Experiment */ /** - * Calls CompareVersions. - * @function compareVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @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 + * @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(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" }); + 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 CompareVersions. - * @function compareVersions - * @memberof google.cloud.dialogflow.cx.v3.Versions + * Calls StopExperiment. + * @function stopExperiment + * @memberof google.cloud.dialogflow.cx.v3.Experiments * @instance - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest} request StopExperimentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return Versions; + return Experiments; })(); - v3.CreateVersionOperationMetadata = (function() { + v3.Experiment = (function() { /** - * Properties of a CreateVersionOperationMetadata. + * Properties of an Experiment. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateVersionOperationMetadata - * @property {string|null} [version] CreateVersionOperationMetadata version + * @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 CreateVersionOperationMetadata. + * Constructs a new Experiment. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateVersionOperationMetadata. - * @implements ICreateVersionOperationMetadata + * @classdesc Represents an Experiment. + * @implements IExperiment * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExperiment=} [properties] Properties to set */ - function CreateVersionOperationMetadata(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) @@ -57369,267 +57750,147 @@ } /** - * CreateVersionOperationMetadata version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * Experiment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @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); - }; - - /** - * 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.v3.CreateVersionOperationMetadata - * @static - * @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 - */ - CreateVersionOperationMetadata.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 CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata - * @static - * @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 - */ - CreateVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Experiment.prototype.name = ""; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. - * @function decode - * @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.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Experiment displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - 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.v3.CreateVersionOperationMetadata(); - 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; - }; + Experiment.prototype.displayName = ""; /** - * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * Experiment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - CreateVersionOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Experiment.prototype.description = ""; /** - * Verifies a CreateVersionOperationMetadata message. - * @function verify - * @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 + * Experiment state. + * @member {google.cloud.dialogflow.cx.v3.Experiment.State} state + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - CreateVersionOperationMetadata.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; - }; + Experiment.prototype.state = 0; /** - * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * Experiment definition. + * @member {google.cloud.dialogflow.cx.v3.Experiment.IDefinition|null|undefined} definition + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - 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.v3.CreateVersionOperationMetadata(); - if (object.version != null) - message.version = String(object.version); - return message; - }; + Experiment.prototype.definition = null; /** - * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata - * @static - * @param {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} message CreateVersionOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Experiment rolloutConfig. + * @member {google.cloud.dialogflow.cx.v3.IRolloutConfig|null|undefined} rolloutConfig + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - CreateVersionOperationMetadata.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; - }; + Experiment.prototype.rolloutConfig = null; /** - * Converts this CreateVersionOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * Experiment rolloutState. + * @member {google.cloud.dialogflow.cx.v3.IRolloutState|null|undefined} rolloutState + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance - * @returns {Object.} JSON object */ - CreateVersionOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateVersionOperationMetadata; - })(); - - v3.Version = (function() { + Experiment.prototype.rolloutState = null; /** - * 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 + * Experiment rolloutFailureReason. + * @member {string} rolloutFailureReason + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ + Experiment.prototype.rolloutFailureReason = ""; /** - * Constructs a new Version. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Version. - * @implements IVersion - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set + * Experiment result. + * @member {google.cloud.dialogflow.cx.v3.Experiment.IResult|null|undefined} result + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @instance */ - function Version(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.result = null; /** - * Version name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Version + * Experiment createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - Version.prototype.name = ""; + Experiment.prototype.createTime = null; /** - * Version displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Version + * Experiment startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - Version.prototype.displayName = ""; + Experiment.prototype.startTime = null; /** - * Version description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Version + * Experiment endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - Version.prototype.description = ""; + Experiment.prototype.endTime = null; /** - * Version nluSettings. - * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings - * @memberof google.cloud.dialogflow.cx.v3.Version + * Experiment lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - Version.prototype.nluSettings = null; + Experiment.prototype.lastUpdateTime = null; /** - * Version createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3.Version + * Experiment experimentLength. + * @member {google.protobuf.IDuration|null|undefined} experimentLength + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - Version.prototype.createTime = null; + Experiment.prototype.experimentLength = null; /** - * Version state. - * @member {google.cloud.dialogflow.cx.v3.Version.State} state - * @memberof google.cloud.dialogflow.cx.v3.Version + * Experiment variantsHistory. + * @member {Array.} variantsHistory + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance */ - Version.prototype.state = 0; + Experiment.prototype.variantsHistory = $util.emptyArray; /** - * Creates a new Version instance using the specified properties. + * Creates a new Experiment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @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.IExperiment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment instance */ - Version.create = function create(properties) { - return new Version(properties); + Experiment.create = function create(properties) { + return new Experiment(properties); }; /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.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.Version + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version 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 */ - Version.encode = function encode(message, writer) { + Experiment.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -57638,43 +57899,62 @@ 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); - return writer; - }; - - /** - * 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.v3.Version + 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 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.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.IVersion} message Version 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 */ - Version.encodeDelimited = function encodeDelimited(message, writer) { + Experiment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Version 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.Version + * @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.Version} Version + * @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 */ - Version.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.Version(); + 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) { @@ -57688,13 +57968,42 @@ message.description = reader.string(); break; case 4: - message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); + message.state = reader.int32(); break; case 5: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + 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.state = reader.int32(); + message.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.decode(reader, reader.uint32()); + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 11: + message.experimentLength = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 12: + if (!(message.variantsHistory && message.variantsHistory.length)) + message.variantsHistory = []; + message.variantsHistory.push($root.google.cloud.dialogflow.cx.v3.VariantsHistory.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -57705,30 +58014,30 @@ }; /** - * Decodes a Version 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.Version + * @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.Version} Version + * @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 */ - Version.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 Version message. + * Verifies an Experiment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Version + * @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 */ - Version.verify = function verify(message) { + Experiment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -57740,16 +58049,6 @@ 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 (error) - return "nluSettings." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } if (message.state != null && message.hasOwnProperty("state")) switch (message.state) { default: @@ -57758,80 +58057,199 @@ 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; + } + 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.rolloutState != null && message.hasOwnProperty("rolloutState")) { + var error = $root.google.cloud.dialogflow.cx.v3.RolloutState.verify(message.rolloutState); + if (error) + return "rolloutState." + error; + } + 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.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + if (message.experimentLength != null && message.hasOwnProperty("experimentLength")) { + var error = $root.google.protobuf.Duration.verify(message.experimentLength); + if (error) + return "experimentLength." + error; + } + if (message.variantsHistory != null && message.hasOwnProperty("variantsHistory")) { + if (!Array.isArray(message.variantsHistory)) + return "variantsHistory: array expected"; + for (var i = 0; i < message.variantsHistory.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.verify(message.variantsHistory[i]); + if (error) + return "variantsHistory." + error; + } + } return null; }; /** - * Creates a Version 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.Version + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Version} Version + * @returns {google.cloud.dialogflow.cx.v3.Experiment} Experiment */ - Version.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Version) + 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.Version(); + 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); - 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); - } switch (object.state) { case "STATE_UNSPECIFIED": case 0: message.state = 0; break; - case "RUNNING": + case "DRAFT": case 1: message.state = 1; break; - case "SUCCEEDED": + case "RUNNING": case 2: message.state = 2; break; - case "FAILED": + 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); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + if (object.experimentLength != null) { + if (typeof object.experimentLength !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.experimentLength: object expected"); + message.experimentLength = $root.google.protobuf.Duration.fromObject(object.experimentLength); + } + if (object.variantsHistory) { + if (!Array.isArray(object.variantsHistory)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: array expected"); + message.variantsHistory = []; + for (var i = 0; i < object.variantsHistory.length; ++i) { + if (typeof object.variantsHistory[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.variantsHistory: object expected"); + message.variantsHistory[i] = $root.google.cloud.dialogflow.cx.v3.VariantsHistory.fromObject(object.variantsHistory[i]); + } } return message; }; /** - * Creates a plain object from a Version 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.Version + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @static - * @param {google.cloud.dialogflow.cx.v3.Version} message Version + * @param {google.cloud.dialogflow.cx.v3.Experiment} message Experiment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Version.toObject = function toObject(message, options) { + Experiment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.variantsHistory = []; if (options.defaults) { object.name = ""; object.displayName = ""; object.description = ""; - object.nluSettings = null; - object.createTime = null; 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.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -57839,1150 +58257,1469 @@ 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.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.State[message.state] : message.state; + if (message.definition != null && message.hasOwnProperty("definition")) + object.definition = $root.google.cloud.dialogflow.cx.v3.Experiment.Definition.toObject(message.definition, options); + if (message.result != null && message.hasOwnProperty("result")) + object.result = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.toObject(message.result, options); if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Version.State[message.state] : message.state; + 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 Version to JSON. + * Converts this Experiment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Version + * @memberof google.cloud.dialogflow.cx.v3.Experiment * @instance * @returns {Object.} JSON object */ - Version.prototype.toJSON = function toJSON() { + Experiment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * 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; - })(); + Experiment.Definition = (function() { - v3.ListVersionsRequest = (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 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 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]]; + } - /** - * Constructs a new ListVersionsRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListVersionsRequest. - * @implements IListVersionsRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set - */ - function ListVersionsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Definition condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + */ + Definition.prototype.condition = ""; - /** - * ListVersionsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @instance - */ - ListVersionsRequest.prototype.parent = ""; + /** + * 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; - /** - * ListVersionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @instance - */ - ListVersionsRequest.prototype.pageSize = 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * ListVersionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @instance - */ - ListVersionsRequest.prototype.pageToken = ""; + /** + * 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 ListVersionsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest instance - */ - ListVersionsRequest.create = function create(properties) { - return new ListVersionsRequest(properties); - }; + /** + * 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 ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @static - * @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 - */ - ListVersionsRequest.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 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 ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @static - * @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 - */ - ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 ListVersionsRequest message from the specified reader or buffer. - * @function decode - * @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.v3.ListVersionsRequest} ListVersionsRequest - * @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) { - 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(); - 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; + /** + * Decodes a Definition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Definition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.condition = reader.string(); + break; + case 2: + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ListVersionsRequest.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 ListVersionsRequest message. - * @function verify - * @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 - */ - ListVersionsRequest.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; - }; + /** + * 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 ListVersionsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest - */ - 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.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); - return message; - }; + /** + * Creates a Definition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Definition} Definition + */ + Definition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Definition) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Definition(); + if (object.condition != null) + message.condition = String(object.condition); + if (object.versionVariants != null) { + if (typeof object.versionVariants !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Definition.versionVariants: object expected"); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.fromObject(object.versionVariants); + } + return message; + }; - /** - * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ListVersionsRequest} message ListVersionsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListVersionsRequest.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; - }; + /** + * Creates a plain object from a Definition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Definition} message Definition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Definition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.condition = ""; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.versionVariants != null && message.hasOwnProperty("versionVariants")) { + object.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.toObject(message.versionVariants, options); + if (options.oneofs) + object.variants = "versionVariants"; + } + return object; + }; - /** - * Converts this ListVersionsRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest - * @instance - * @returns {Object.} JSON object - */ - ListVersionsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Definition to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Definition + * @instance + * @returns {Object.} JSON object + */ + Definition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ListVersionsRequest; - })(); + return Definition; + })(); - v3.ListVersionsResponse = (function() { + Experiment.Result = (function() { - /** - * Properties of a ListVersionsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListVersionsResponse - * @property {Array.|null} [versions] ListVersionsResponse versions - * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken - */ + /** + * Properties of a Result. + * @memberof google.cloud.dialogflow.cx.v3.Experiment + * @interface IResult + * @property {Array.|null} [versionMetrics] Result versionMetrics + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] Result lastUpdateTime + */ - /** - * Constructs a new ListVersionsResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListVersionsResponse. - * @implements IListVersionsResponse - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set - */ - function ListVersionsResponse(properties) { - this.versions = []; - if (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 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]]; + } - /** - * ListVersionsResponse versions. - * @member {Array.} versions - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @instance - */ - ListVersionsResponse.prototype.versions = $util.emptyArray; + /** + * Result versionMetrics. + * @member {Array.} versionMetrics + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @instance + */ + Result.prototype.versionMetrics = $util.emptyArray; - /** - * ListVersionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @instance - */ - ListVersionsResponse.prototype.nextPageToken = ""; + /** + * 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 ListVersionsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse instance - */ - ListVersionsResponse.create = function create(properties) { - return new ListVersionsResponse(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 ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @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 - */ - ListVersionsResponse.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); - 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 ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @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 - */ - ListVersionsResponse.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 ListVersionsResponse message from the specified reader or buffer. - * @function decode - * @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.v3.ListVersionsResponse} ListVersionsResponse - * @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) { - 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(); - 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(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a Result message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result} Result + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Result.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.versionMetrics && message.versionMetrics.length)) + message.versionMetrics = []; + message.versionMetrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics.decode(reader, reader.uint32())); + break; + case 2: + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; + return message; + }; - /** - * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - ListVersionsResponse.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 ListVersionsResponse message. - * @function verify - * @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 - */ - ListVersionsResponse.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]); + /** + * 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 "versions." + error; + return "lastUpdateTime." + error; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + return null; + }; - /** - * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse - */ - 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.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]); + /** + * 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.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; - - /** - * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} message ListVersionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListVersionsResponse.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; - return object; - }; - - /** - * Converts this ListVersionsResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse - * @instance - * @returns {Object.} JSON object - */ - ListVersionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ListVersionsResponse; - })(); - - v3.GetVersionRequest = (function() { - - /** - * Properties of a GetVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetVersionRequest - * @property {string|null} [name] GetVersionRequest name - */ - - /** - * Constructs a new GetVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetVersionRequest. - * @implements IGetVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set - */ - function GetVersionRequest(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]]; - } + 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; + }; - /** - * GetVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @instance - */ - GetVersionRequest.prototype.name = ""; + /** + * 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; + }; - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest instance - */ - GetVersionRequest.create = function create(properties) { - return new GetVersionRequest(properties); - }; + /** + * 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); + }; - /** - * 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.v3.GetVersionRequest - * @static - * @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 - */ - GetVersionRequest.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.ConfidenceInterval = (function() { - /** - * 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.v3.GetVersionRequest - * @static - * @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 - */ - GetVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 + */ - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @function decode - * @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.v3.GetVersionRequest} GetVersionRequest - * @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) { - 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(); - 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 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]]; } - } - return message; - }; - /** - * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - GetVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ConfidenceInterval confidenceLevel. + * @member {number} confidenceLevel + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.confidenceLevel = 0; - /** - * Verifies a GetVersionRequest message. - * @function verify - * @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 - */ - GetVersionRequest.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; - }; + /** + * ConfidenceInterval ratio. + * @member {number} ratio + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.ratio = 0; - /** - * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest - */ - 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.v3.GetVersionRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + /** + * ConfidenceInterval lowerBound. + * @member {number} lowerBound + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.lowerBound = 0; - /** - * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetVersionRequest} message GetVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetVersionRequest.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; - }; + /** + * ConfidenceInterval upperBound. + * @member {number} upperBound + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + */ + ConfidenceInterval.prototype.upperBound = 0; - /** - * Converts this GetVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest - * @instance - * @returns {Object.} JSON object - */ - GetVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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); + }; - return GetVersionRequest; - })(); + /** + * 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; + }; - v3.CreateVersionRequest = (function() { + /** + * 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(); + }; - /** - * 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 - */ + /** + * 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; + }; - /** - * Constructs a new CreateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateVersionRequest. - * @implements ICreateVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set - */ - function CreateVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Decodes a 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()); + }; - /** - * CreateVersionRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @instance - */ - CreateVersionRequest.prototype.parent = ""; + /** + * 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; + }; - /** - * CreateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @instance - */ - CreateVersionRequest.prototype.version = null; + /** + * 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; + }; - /** - * Creates a new CreateVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest instance - */ - CreateVersionRequest.create = function create(properties) { - return new CreateVersionRequest(properties); - }; + /** + * 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; + }; - /** - * 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.v3.CreateVersionRequest - * @static - * @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 - */ - 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.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; - }; + /** + * Converts this ConfidenceInterval to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + * @instance + * @returns {Object.} JSON object + */ + ConfidenceInterval.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @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 - */ - CreateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return ConfidenceInterval; + })(); - /** - * Decodes a CreateVersionRequest message from the specified reader or buffer. - * @function decode - * @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.v3.CreateVersionRequest} CreateVersionRequest - * @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) { - 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(); - 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()); - break; - default: - reader.skipType(tag & 7); - break; + 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]]; } - } - return message; - }; - /** - * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - CreateVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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; - /** - * Verifies a CreateVersionRequest message. - * @function verify - * @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 - */ - 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.version != null && message.hasOwnProperty("version")) { - var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); - if (error) - return "version." + error; - } - return null; - }; + /** + * Metric countType. + * @member {google.cloud.dialogflow.cx.v3.Experiment.Result.CountType} countType + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.countType = 0; - /** - * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest - */ - 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); - } - return message; - }; + /** + * Metric ratio. + * @member {number|null|undefined} ratio + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.ratio = null; - /** - * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.CreateVersionRequest} message CreateVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateVersionRequest.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); - return object; - }; + /** + * Metric count. + * @member {number|null|undefined} count + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + */ + Metric.prototype.count = null; + + /** + * 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; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * 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) + }); + + /** + * 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); + }; + + /** + * 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; + }; + + /** + * 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(); + }; + + /** + * 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; + }; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metric message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.countType != null && message.hasOwnProperty("countType")) + switch (message.countType) { + default: + return "countType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.ratio != null && message.hasOwnProperty("ratio")) { + properties.value = 1; + if (typeof message.ratio !== "number") + return "ratio: number expected"; + } + if (message.count != null && message.hasOwnProperty("count")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.count !== "number") + return "count: number expected"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.verify(message.confidenceInterval); + if (error) + return "confidenceInterval." + error; + } + return null; + }; + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(); + switch (object.type) { + case "METRIC_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "CONTAINED_SESSION_NO_CALLBACK_RATE": + case 1: + message.type = 1; + break; + case "LIVE_AGENT_HANDOFF_RATE": + case 2: + message.type = 2; + break; + case "CALLBACK_SESSION_RATE": + case 3: + message.type = 3; + break; + case "ABANDONED_SESSION_RATE": + case 4: + message.type = 4; + break; + case "SESSION_END_RATE": + case 5: + message.type = 5; + break; + } + switch (object.countType) { + case "COUNT_TYPE_UNSPECIFIED": + case 0: + message.countType = 0; + break; + case "TOTAL_NO_MATCH_COUNT": + case 1: + message.countType = 1; + break; + case "TOTAL_TURN_COUNT": + case 2: + message.countType = 2; + break; + case "AVERAGE_TURN_COUNT": + case 3: + message.countType = 3; + break; + } + if (object.ratio != null) + message.ratio = Number(object.ratio); + if (object.count != null) + message.count = Number(object.count); + if (object.confidenceInterval != null) { + if (typeof object.confidenceInterval !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.confidenceInterval: object expected"); + message.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.fromObject(object.confidenceInterval); + } + return message; + }; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @static + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "METRIC_UNSPECIFIED" : 0; + object.confidenceInterval = null; + object.countType = options.enums === String ? "COUNT_TYPE_UNSPECIFIED" : 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType[message.type] : message.type; + if (message.ratio != null && message.hasOwnProperty("ratio")) { + object.ratio = options.json && !isFinite(message.ratio) ? String(message.ratio) : message.ratio; + if (options.oneofs) + object.value = "ratio"; + } + if (message.confidenceInterval != null && message.hasOwnProperty("confidenceInterval")) + object.confidenceInterval = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.toObject(message.confidenceInterval, options); + if (message.count != null && message.hasOwnProperty("count")) { + object.count = options.json && !isFinite(message.count) ? String(message.count) : message.count; + if (options.oneofs) + object.value = "count"; + } + if (message.countType != null && message.hasOwnProperty("countType")) + object.countType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType[message.countType] : message.countType; + return object; + }; + + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Metric; + })(); + + Result.VersionMetrics = (function() { + + /** + * Properties of a VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @interface IVersionMetrics + * @property {string|null} [version] VersionMetrics version + * @property {Array.|null} [metrics] VersionMetrics metrics + * @property {number|null} [sessionCount] VersionMetrics sessionCount + */ - /** - * Converts this CreateVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest - * @instance - * @returns {Object.} JSON object - */ - CreateVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new VersionMetrics. + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result + * @classdesc Represents a VersionMetrics. + * @implements IVersionMetrics + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Experiment.Result.IVersionMetrics=} [properties] Properties to set + */ + function VersionMetrics(properties) { + this.metrics = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return CreateVersionRequest; - })(); + /** + * VersionMetrics version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.version = ""; - v3.UpdateVersionRequest = (function() { + /** + * VersionMetrics metrics. + * @member {Array.} metrics + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.metrics = $util.emptyArray; - /** - * 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 - */ + /** + * VersionMetrics sessionCount. + * @member {number} sessionCount + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @instance + */ + VersionMetrics.prototype.sessionCount = 0; - /** - * Constructs a new UpdateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateVersionRequest. - * @implements IUpdateVersionRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set - */ - function UpdateVersionRequest(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 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); + }; - /** - * UpdateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @instance - */ - UpdateVersionRequest.prototype.version = 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; + }; - /** - * UpdateVersionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @instance - */ - UpdateVersionRequest.prototype.updateMask = 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(); + }; - /** - * Creates a new UpdateVersionRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest instance - */ - UpdateVersionRequest.create = function create(properties) { - return new UpdateVersionRequest(properties); - }; + /** + * Decodes a VersionMetrics message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics} VersionMetrics + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VersionMetrics.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.decode(reader, reader.uint32())); + break; + case 3: + message.sessionCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @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 - */ - UpdateVersionRequest.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.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 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()); + }; - /** - * 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.v3.UpdateVersionRequest - * @static - * @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 - */ - UpdateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Verifies a VersionMetrics message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VersionMetrics.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + if (message.sessionCount != null && message.hasOwnProperty("sessionCount")) + if (!$util.isInteger(message.sessionCount)) + return "sessionCount: integer expected"; + return null; + }; - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer. - * @function decode - * @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.v3.UpdateVersionRequest} UpdateVersionRequest - * @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) { - 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(); - 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()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a VersionMetrics message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.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; + }; - /** - * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 - */ - UpdateVersionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a VersionMetrics message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.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; + }; - /** - * Verifies an UpdateVersionRequest message. - * @function verify - * @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 - */ - UpdateVersionRequest.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 (error) - return "version." + 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 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); + }; - /** - * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest - */ - 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.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.v3.UpdateVersionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + return VersionMetrics; + })(); - /** - * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} message UpdateVersionRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateVersionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = 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.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + /** + * MetricType enum. + * @name google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType + * @enum {number} + * @property {number} METRIC_UNSPECIFIED=0 METRIC_UNSPECIFIED value + * @property {number} CONTAINED_SESSION_NO_CALLBACK_RATE=1 CONTAINED_SESSION_NO_CALLBACK_RATE value + * @property {number} LIVE_AGENT_HANDOFF_RATE=2 LIVE_AGENT_HANDOFF_RATE value + * @property {number} CALLBACK_SESSION_RATE=3 CALLBACK_SESSION_RATE value + * @property {number} ABANDONED_SESSION_RATE=4 ABANDONED_SESSION_RATE value + * @property {number} SESSION_END_RATE=5 SESSION_END_RATE value + */ + Result.MetricType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METRIC_UNSPECIFIED"] = 0; + values[valuesById[1] = "CONTAINED_SESSION_NO_CALLBACK_RATE"] = 1; + values[valuesById[2] = "LIVE_AGENT_HANDOFF_RATE"] = 2; + values[valuesById[3] = "CALLBACK_SESSION_RATE"] = 3; + values[valuesById[4] = "ABANDONED_SESSION_RATE"] = 4; + values[valuesById[5] = "SESSION_END_RATE"] = 5; + return values; + })(); + + /** + * CountType enum. + * @name google.cloud.dialogflow.cx.v3.Experiment.Result.CountType + * @enum {number} + * @property {number} COUNT_TYPE_UNSPECIFIED=0 COUNT_TYPE_UNSPECIFIED value + * @property {number} TOTAL_NO_MATCH_COUNT=1 TOTAL_NO_MATCH_COUNT value + * @property {number} TOTAL_TURN_COUNT=2 TOTAL_TURN_COUNT value + * @property {number} AVERAGE_TURN_COUNT=3 AVERAGE_TURN_COUNT value + */ + Result.CountType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COUNT_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TOTAL_NO_MATCH_COUNT"] = 1; + values[valuesById[2] = "TOTAL_TURN_COUNT"] = 2; + values[valuesById[3] = "AVERAGE_TURN_COUNT"] = 3; + return values; + })(); + + return Result; + })(); /** - * Converts this UpdateVersionRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest - * @instance - * @returns {Object.} JSON object + * State enum. + * @name google.cloud.dialogflow.cx.v3.Experiment.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} DRAFT=1 DRAFT value + * @property {number} RUNNING=2 RUNNING value + * @property {number} DONE=3 DONE value + * @property {number} ROLLOUT_FAILED=4 ROLLOUT_FAILED value */ - UpdateVersionRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Experiment.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DRAFT"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "DONE"] = 3; + values[valuesById[4] = "ROLLOUT_FAILED"] = 4; + return values; + })(); - return UpdateVersionRequest; + return Experiment; })(); - v3.DeleteVersionRequest = (function() { + v3.VersionVariants = (function() { /** - * Properties of a DeleteVersionRequest. + * Properties of a VersionVariants. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteVersionRequest - * @property {string|null} [name] DeleteVersionRequest name + * @interface IVersionVariants + * @property {Array.|null} [variants] VersionVariants variants */ /** - * Constructs a new DeleteVersionRequest. + * Constructs a new VersionVariants. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteVersionRequest. - * @implements IDeleteVersionRequest + * @classdesc Represents a VersionVariants. + * @implements IVersionVariants * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVersionVariants=} [properties] Properties to set */ - function DeleteVersionRequest(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) @@ -58990,75 +59727,78 @@ } /** - * DeleteVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * VersionVariants variants. + * @member {Array.} variants + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @instance */ - DeleteVersionRequest.prototype.name = ""; + VersionVariants.prototype.variants = $util.emptyArray; /** - * Creates a new DeleteVersionRequest instance using the specified properties. + * Creates a new VersionVariants instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @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.IVersionVariants=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants instance */ - DeleteVersionRequest.create = function create(properties) { - return new DeleteVersionRequest(properties); + VersionVariants.create = function create(properties) { + return new VersionVariants(properties); }; /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.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.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest 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 */ - DeleteVersionRequest.encode = function encode(message, writer) { + VersionVariants.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.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 DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.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.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest 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 */ - DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + VersionVariants.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteVersionRequest 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.DeleteVersionRequest + * @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.DeleteVersionRequest} DeleteVersionRequest + * @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 */ - DeleteVersionRequest.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.DeleteVersionRequest(); + 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.name = reader.string(); + if (!(message.variants && message.variants.length)) + message.variants = []; + message.variants.push($root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -59069,108 +59809,357 @@ }; /** - * Decodes a DeleteVersionRequest 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.DeleteVersionRequest + * @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.DeleteVersionRequest} DeleteVersionRequest + * @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 */ - DeleteVersionRequest.decodeDelimited = function decodeDelimited(reader) { + VersionVariants.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteVersionRequest message. + * Verifies a VersionVariants message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @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 */ - DeleteVersionRequest.verify = function verify(message) { + VersionVariants.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.variants != null && message.hasOwnProperty("variants")) { + if (!Array.isArray(message.variants)) + return "variants: array expected"; + for (var i = 0; i < message.variants.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify(message.variants[i]); + if (error) + return "variants." + error; + } + } return null; }; /** - * Creates a DeleteVersionRequest 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.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants} VersionVariants */ - DeleteVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest) + 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.DeleteVersionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants(); + if (object.variants) { + if (!Array.isArray(object.variants)) + throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: array expected"); + message.variants = []; + for (var i = 0; i < object.variants.length; ++i) { + if (typeof object.variants[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.VersionVariants.variants: object expected"); + message.variants[i] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.fromObject(object.variants[i]); + } + } return message; }; /** - * Creates a plain object from a DeleteVersionRequest 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.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} message DeleteVersionRequest + * @param {google.cloud.dialogflow.cx.v3.VersionVariants} message VersionVariants * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteVersionRequest.toObject = function toObject(message, options) { + VersionVariants.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.variants = []; + if (message.variants && message.variants.length) { + object.variants = []; + for (var j = 0; j < message.variants.length; ++j) + object.variants[j] = $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant.toObject(message.variants[j], options); + } return object; }; /** - * Converts this DeleteVersionRequest to JSON. + * Converts this VersionVariants to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants * @instance * @returns {Object.} JSON object */ - DeleteVersionRequest.prototype.toJSON = function toJSON() { + VersionVariants.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteVersionRequest; + VersionVariants.Variant = (function() { + + /** + * Properties of a Variant. + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @interface IVariant + * @property {string|null} [version] Variant version + * @property {number|null} [trafficAllocation] Variant trafficAllocation + * @property {boolean|null} [isControlGroup] Variant isControlGroup + */ + + /** + * Constructs a new Variant. + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants + * @classdesc Represents a Variant. + * @implements IVariant + * @constructor + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set + */ + function Variant(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Variant version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + */ + Variant.prototype.version = ""; + + /** + * Variant trafficAllocation. + * @member {number} trafficAllocation + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + */ + Variant.prototype.trafficAllocation = 0; + + /** + * Variant isControlGroup. + * @member {boolean} isControlGroup + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + */ + Variant.prototype.isControlGroup = false; + + /** + * Creates a new Variant instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant instance + */ + Variant.create = function create(properties) { + return new Variant(properties); + }; + + /** + * Encodes the specified Variant message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Variant.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.trafficAllocation != null && Object.hasOwnProperty.call(message, "trafficAllocation")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.trafficAllocation); + if (message.isControlGroup != null && Object.hasOwnProperty.call(message, "isControlGroup")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isControlGroup); + return writer; + }; + + /** + * Encodes the specified Variant message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VersionVariants.Variant.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.IVariant} message Variant message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Variant.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Variant message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Variant.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + message.trafficAllocation = reader.float(); + break; + case 3: + message.isControlGroup = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Variant message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Variant.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Variant message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Variant.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + if (typeof message.trafficAllocation !== "number") + return "trafficAllocation: number expected"; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + if (typeof message.isControlGroup !== "boolean") + return "isControlGroup: boolean expected"; + return null; + }; + + /** + * Creates a Variant message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} Variant + */ + Variant.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(); + if (object.version != null) + message.version = String(object.version); + if (object.trafficAllocation != null) + message.trafficAllocation = Number(object.trafficAllocation); + if (object.isControlGroup != null) + message.isControlGroup = Boolean(object.isControlGroup); + return message; + }; + + /** + * Creates a plain object from a Variant message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @static + * @param {google.cloud.dialogflow.cx.v3.VersionVariants.Variant} message Variant + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Variant.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.version = ""; + object.trafficAllocation = 0; + object.isControlGroup = false; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.trafficAllocation != null && message.hasOwnProperty("trafficAllocation")) + object.trafficAllocation = options.json && !isFinite(message.trafficAllocation) ? String(message.trafficAllocation) : message.trafficAllocation; + if (message.isControlGroup != null && message.hasOwnProperty("isControlGroup")) + object.isControlGroup = message.isControlGroup; + return object; + }; + + /** + * Converts this Variant to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.VersionVariants.Variant + * @instance + * @returns {Object.} JSON object + */ + Variant.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Variant; + })(); + + return VersionVariants; })(); - v3.LoadVersionRequest = (function() { + v3.VariantsHistory = (function() { /** - * Properties of a LoadVersionRequest. + * Properties of a VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ILoadVersionRequest - * @property {string|null} [name] LoadVersionRequest name - * @property {boolean|null} [allowOverrideAgentResources] LoadVersionRequest allowOverrideAgentResources + * @interface IVariantsHistory + * @property {google.cloud.dialogflow.cx.v3.IVersionVariants|null} [versionVariants] VariantsHistory versionVariants + * @property {google.protobuf.ITimestamp|null} [updateTime] VariantsHistory updateTime */ /** - * Constructs a new LoadVersionRequest. + * Constructs a new VariantsHistory. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a LoadVersionRequest. - * @implements ILoadVersionRequest + * @classdesc Represents a VariantsHistory. + * @implements IVariantsHistory * @constructor - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVariantsHistory=} [properties] Properties to set */ - function LoadVersionRequest(properties) { + function VariantsHistory(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59178,88 +60167,102 @@ } /** - * LoadVersionRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * VariantsHistory versionVariants. + * @member {google.cloud.dialogflow.cx.v3.IVersionVariants|null|undefined} versionVariants + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance */ - LoadVersionRequest.prototype.name = ""; + VariantsHistory.prototype.versionVariants = null; /** - * LoadVersionRequest allowOverrideAgentResources. - * @member {boolean} allowOverrideAgentResources - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * VariantsHistory updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance */ - LoadVersionRequest.prototype.allowOverrideAgentResources = false; + VariantsHistory.prototype.updateTime = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new LoadVersionRequest instance using the specified properties. + * 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.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @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.IVariantsHistory=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory instance */ - LoadVersionRequest.create = function create(properties) { - return new LoadVersionRequest(properties); + VariantsHistory.create = function create(properties) { + return new VariantsHistory(properties); }; /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.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.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest 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 */ - LoadVersionRequest.encode = function encode(message, writer) { + VariantsHistory.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.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 LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.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.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} message LoadVersionRequest 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 */ - LoadVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + VariantsHistory.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LoadVersionRequest 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.LoadVersionRequest + * @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.LoadVersionRequest} LoadVersionRequest + * @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 */ - LoadVersionRequest.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.LoadVersionRequest(); + 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.name = reader.string(); + message.versionVariants = $root.google.cloud.dialogflow.cx.v3.VersionVariants.decode(reader, reader.uint32()); break; case 2: - message.allowOverrideAgentResources = reader.bool(); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -59270,118 +60273,134 @@ }; /** - * Decodes a LoadVersionRequest 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.LoadVersionRequest + * @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.LoadVersionRequest} LoadVersionRequest + * @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 */ - LoadVersionRequest.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 LoadVersionRequest message. + * Verifies a VariantsHistory message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @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 */ - LoadVersionRequest.verify = function verify(message) { + VariantsHistory.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"; + 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 LoadVersionRequest 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.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.VariantsHistory} VariantsHistory */ - LoadVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest) + 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.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.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 LoadVersionRequest 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.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @static - * @param {google.cloud.dialogflow.cx.v3.LoadVersionRequest} message LoadVersionRequest + * @param {google.cloud.dialogflow.cx.v3.VariantsHistory} message VariantsHistory * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LoadVersionRequest.toObject = function toObject(message, options) { + VariantsHistory.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.allowOverrideAgentResources = false; + 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) - object.allowOverrideAgentResources = message.allowOverrideAgentResources; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this LoadVersionRequest to JSON. + * Converts this VariantsHistory to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.VariantsHistory * @instance * @returns {Object.} JSON object */ - LoadVersionRequest.prototype.toJSON = function toJSON() { + VariantsHistory.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LoadVersionRequest; + return VariantsHistory; })(); - v3.CompareVersionsRequest = (function() { + v3.RolloutConfig = (function() { /** - * Properties of a CompareVersionsRequest. + * Properties of a RolloutConfig. * @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 IRolloutConfig + * @property {Array.|null} [rolloutSteps] RolloutConfig rolloutSteps + * @property {string|null} [rolloutCondition] RolloutConfig rolloutCondition + * @property {string|null} [failureCondition] RolloutConfig failureCondition */ /** - * Constructs a new CompareVersionsRequest. + * Constructs a new RolloutConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CompareVersionsRequest. - * @implements ICompareVersionsRequest + * @classdesc Represents a RolloutConfig. + * @implements IRolloutConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRolloutConfig=} [properties] Properties to set */ - function CompareVersionsRequest(properties) { + function RolloutConfig(properties) { + this.rolloutSteps = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59389,101 +60408,104 @@ } /** - * CompareVersionsRequest baseVersion. - * @member {string} baseVersion - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * RolloutConfig rolloutSteps. + * @member {Array.} rolloutSteps + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance */ - CompareVersionsRequest.prototype.baseVersion = ""; + RolloutConfig.prototype.rolloutSteps = $util.emptyArray; /** - * CompareVersionsRequest targetVersion. - * @member {string} targetVersion - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * RolloutConfig rolloutCondition. + * @member {string} rolloutCondition + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance */ - CompareVersionsRequest.prototype.targetVersion = ""; + RolloutConfig.prototype.rolloutCondition = ""; /** - * CompareVersionsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * RolloutConfig failureCondition. + * @member {string} failureCondition + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance */ - CompareVersionsRequest.prototype.languageCode = ""; + RolloutConfig.prototype.failureCondition = ""; /** - * Creates a new CompareVersionsRequest instance using the specified properties. + * Creates a new RolloutConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @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.IRolloutConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig instance */ - CompareVersionsRequest.create = function create(properties) { - return new CompareVersionsRequest(properties); + RolloutConfig.create = function create(properties) { + return new RolloutConfig(properties); }; /** - * Encodes the specified CompareVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.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.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest 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 */ - CompareVersionsRequest.encode = function encode(message, writer) { + RolloutConfig.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.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 CompareVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsRequest.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.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} message CompareVersionsRequest 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 */ - CompareVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RolloutConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompareVersionsRequest 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.CompareVersionsRequest + * @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.CompareVersionsRequest} CompareVersionsRequest + * @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 */ - CompareVersionsRequest.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.CompareVersionsRequest(); + 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: - message.baseVersion = reader.string(); + 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.targetVersion = reader.string(); + message.rolloutCondition = reader.string(); break; case 3: - message.languageCode = reader.string(); + message.failureCondition = reader.string(); break; default: reader.skipType(tag & 7); @@ -59494,126 +60516,381 @@ }; /** - * Decodes a CompareVersionsRequest 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.CompareVersionsRequest + * @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.CompareVersionsRequest} CompareVersionsRequest + * @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 */ - CompareVersionsRequest.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 CompareVersionsRequest message. + * Verifies a RolloutConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @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 */ - CompareVersionsRequest.verify = function verify(message) { + RolloutConfig.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.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 CompareVersionsRequest 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.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} CompareVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3.RolloutConfig} RolloutConfig */ - CompareVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsRequest) + 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.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.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 CompareVersionsRequest 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.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @static - * @param {google.cloud.dialogflow.cx.v3.CompareVersionsRequest} message CompareVersionsRequest + * @param {google.cloud.dialogflow.cx.v3.RolloutConfig} message RolloutConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompareVersionsRequest.toObject = function toObject(message, options) { + RolloutConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.rolloutSteps = []; if (options.defaults) { - object.baseVersion = ""; - object.targetVersion = ""; - object.languageCode = ""; + object.rolloutCondition = ""; + object.failureCondition = ""; } - 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.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 CompareVersionsRequest to JSON. + * Converts this RolloutConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.RolloutConfig * @instance * @returns {Object.} JSON object */ - CompareVersionsRequest.prototype.toJSON = function toJSON() { + RolloutConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CompareVersionsRequest; + 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); + }; + + return RolloutStep; + })(); + + return RolloutConfig; })(); - v3.CompareVersionsResponse = (function() { + v3.RolloutState = (function() { /** - * Properties of a CompareVersionsResponse. + * Properties of a RolloutState. * @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 IRolloutState + * @property {string|null} [step] RolloutState step + * @property {number|null} [stepIndex] RolloutState stepIndex + * @property {google.protobuf.ITimestamp|null} [startTime] RolloutState startTime */ /** - * Constructs a new CompareVersionsResponse. + * Constructs a new RolloutState. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CompareVersionsResponse. - * @implements ICompareVersionsResponse + * @classdesc Represents a RolloutState. + * @implements IRolloutState * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRolloutState=} [properties] Properties to set */ - function CompareVersionsResponse(properties) { + function RolloutState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -59621,101 +60898,101 @@ } /** - * CompareVersionsResponse baseVersionContentJson. - * @member {string} baseVersionContentJson - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * RolloutState step. + * @member {string} step + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance */ - CompareVersionsResponse.prototype.baseVersionContentJson = ""; + RolloutState.prototype.step = ""; /** - * CompareVersionsResponse targetVersionContentJson. - * @member {string} targetVersionContentJson - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * RolloutState stepIndex. + * @member {number} stepIndex + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance */ - CompareVersionsResponse.prototype.targetVersionContentJson = ""; + RolloutState.prototype.stepIndex = 0; /** - * CompareVersionsResponse compareTime. - * @member {google.protobuf.ITimestamp|null|undefined} compareTime - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * RolloutState startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance */ - CompareVersionsResponse.prototype.compareTime = null; + RolloutState.prototype.startTime = null; /** - * Creates a new CompareVersionsResponse instance using the specified properties. + * Creates a new RolloutState instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @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.IRolloutState=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState instance */ - CompareVersionsResponse.create = function create(properties) { - return new CompareVersionsResponse(properties); + RolloutState.create = function create(properties) { + return new RolloutState(properties); }; /** - * Encodes the specified CompareVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.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.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse 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 */ - CompareVersionsResponse.encode = function encode(message, writer) { + RolloutState.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.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 CompareVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CompareVersionsResponse.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.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse} message CompareVersionsResponse 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 */ - CompareVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + RolloutState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompareVersionsResponse 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.CompareVersionsResponse + * @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.CompareVersionsResponse} CompareVersionsResponse + * @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 */ - CompareVersionsResponse.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.CompareVersionsResponse(); + 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.baseVersionContentJson = reader.string(); - break; - case 2: - message.targetVersionContentJson = reader.string(); + message.step = reader.string(); break; case 3: - message.compareTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.stepIndex = reader.int32(); + break; + case 2: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -59726,334 +61003,131 @@ }; /** - * Decodes a CompareVersionsResponse 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.CompareVersionsResponse + * @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.CompareVersionsResponse} CompareVersionsResponse + * @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 */ - CompareVersionsResponse.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 CompareVersionsResponse message. + * Verifies a RolloutState message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @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 */ - CompareVersionsResponse.verify = function verify(message) { + RolloutState.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 (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 "compareTime." + error; + return "startTime." + error; } return null; }; /** - * Creates a CompareVersionsResponse 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.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3.RolloutState} RolloutState */ - CompareVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CompareVersionsResponse) + 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.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.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 CompareVersionsResponse 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.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @static - * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} message CompareVersionsResponse + * @param {google.cloud.dialogflow.cx.v3.RolloutState} message RolloutState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompareVersionsResponse.toObject = function toObject(message, options) { + RolloutState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.baseVersionContentJson = ""; - object.targetVersionContentJson = ""; - object.compareTime = null; + object.step = ""; + object.startTime = null; + object.stepIndex = 0; } - 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 (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 CompareVersionsResponse to JSON. + * Converts this RolloutState to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.RolloutState * @instance * @returns {Object.} JSON object */ - CompareVersionsResponse.prototype.toJSON = function toJSON() { + RolloutState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CompareVersionsResponse; - })(); - - v3.Webhooks = (function() { - - /** - * Constructs a new Webhooks service. - * @memberof google.cloud.dialogflow.cx.v3 - * @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; - - /** - * 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. - */ - Webhooks.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 - * @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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - return Webhooks; + return RolloutState; })(); - v3.Webhook = (function() { + v3.ListExperimentsRequest = (function() { /** - * Properties of a Webhook. + * Properties of a ListExperimentsRequest. * @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 IListExperimentsRequest + * @property {string|null} [parent] ListExperimentsRequest parent + * @property {number|null} [pageSize] ListExperimentsRequest pageSize + * @property {string|null} [pageToken] ListExperimentsRequest pageToken */ /** - * Constructs a new Webhook. + * Constructs a new ListExperimentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Webhook. - * @implements IWebhook + * @classdesc Represents a ListExperimentsRequest. + * @implements IListExperimentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsRequest=} [properties] Properties to set */ - function Webhook(properties) { + function ListExperimentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60061,154 +61135,101 @@ } /** - * Webhook name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - */ - Webhook.prototype.name = ""; - - /** - * Webhook 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 + * ListExperimentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance */ - Webhook.prototype.timeout = null; + ListExperimentsRequest.prototype.parent = ""; /** - * Webhook disabled. - * @member {boolean} disabled - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * ListExperimentsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance */ - Webhook.prototype.disabled = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListExperimentsRequest.prototype.pageSize = 0; /** - * Webhook webhook. - * @member {"genericWebService"|"serviceDirectory"|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * ListExperimentsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @instance */ - Object.defineProperty(Webhook.prototype, "webhook", { - get: $util.oneOfGetter($oneOfFields = ["genericWebService", "serviceDirectory"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListExperimentsRequest.prototype.pageToken = ""; /** - * Creates a new Webhook instance using the specified properties. + * Creates a new ListExperimentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @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.IListExperimentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest instance */ - Webhook.create = function create(properties) { - return new Webhook(properties); + ListExperimentsRequest.create = function create(properties) { + return new ListExperimentsRequest(properties); }; /** - * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.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.Webhook + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook 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 */ - Webhook.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.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(); + 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 Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Webhook.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.Webhook + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhook} message Webhook 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 */ - Webhook.encodeDelimited = function encodeDelimited(message, writer) { + ListExperimentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Webhook 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.Webhook + * @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.Webhook} Webhook + * @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 */ - Webhook.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.Webhook(); + 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.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()); + message.pageSize = reader.int32(); break; - case 5: - message.disabled = reader.bool(); + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -60219,725 +61240,543 @@ }; /** - * Decodes a Webhook 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.Webhook + * @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.Webhook} Webhook + * @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 */ - Webhook.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 Webhook message. + * Verifies a ListExperimentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Webhook + * @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 */ - Webhook.verify = function verify(message) { + ListExperimentsRequest.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 (error) - return "serviceDirectory." + 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"; + 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 Webhook 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.Webhook + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} ListExperimentsRequest */ - Webhook.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook) + 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.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.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.disabled != null) - message.disabled = Boolean(object.disabled); + 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 Webhook 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.Webhook + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Webhook} message Webhook + * @param {google.cloud.dialogflow.cx.v3.ListExperimentsRequest} message ListExperimentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Webhook.toObject = function toObject(message, options) { + ListExperimentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; 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"; - } - return object; - }; - - /** - * Converts this Webhook to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Webhook - * @instance - * @returns {Object.} JSON object - */ - Webhook.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - 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 - */ - - /** - * 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 = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + object.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; + }; - /** - * 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 = ""; - - /** - * 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; - - /** - * 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); - }; - - /** - * 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]); - 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(); - }; - - /** - * 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; - default: - reader.skipType(tag & 7); - 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"; - } - 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) - message.allowedCaCerts[i] = object.allowedCaCerts[i]; - } - 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 = {}; - if (options.defaults) { - object.uri = ""; - object.username = ""; - object.password = ""; - } - 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]; - } - return object; - }; - - /** - * 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); - }; - - return GenericWebService; - })(); + /** + * Converts this ListExperimentsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsRequest + * @instance + * @returns {Object.} JSON object + */ + ListExperimentsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - Webhook.ServiceDirectoryConfig = (function() { + return ListExperimentsRequest; + })(); - /** - * 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 - */ + v3.ListExperimentsResponse = (function() { - /** - * 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]]; - } + /** + * Properties of a ListExperimentsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListExperimentsResponse + * @property {Array.|null} [experiments] ListExperimentsResponse experiments + * @property {string|null} [nextPageToken] ListExperimentsResponse nextPageToken + */ - /** - * ServiceDirectoryConfig service. - * @member {string} service - * @memberof google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig - * @instance - */ - ServiceDirectoryConfig.prototype.service = ""; + /** + * Constructs a new ListExperimentsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListExperimentsResponse. + * @implements IListExperimentsResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse=} [properties] Properties to set + */ + function ListExperimentsResponse(properties) { + this.experiments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * 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; + /** + * ListExperimentsResponse experiments. + * @member {Array.} experiments + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @instance + */ + ListExperimentsResponse.prototype.experiments = $util.emptyArray; - /** - * 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); - }; + /** + * ListExperimentsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @instance + */ + ListExperimentsResponse.prototype.nextPageToken = ""; - /** - * 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; - }; + /** + * 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 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(); - }; + /** + * Encodes the specified ListExperimentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListExperimentsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.experiments != null && message.experiments.length) + for (var i = 0; i < message.experiments.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Experiment.encode(message.experiments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * 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; - } + /** + * Encodes the specified ListExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListExperimentsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListExperimentsResponse} message ListExperimentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListExperimentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListExperimentsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListExperimentsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ListExperimentsResponse} ListExperimentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListExperimentsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.experiments && message.experiments.length)) + message.experiments = []; + message.experiments.push($root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + 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()); - }; + /** + * 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 + */ + ListExperimentsResponse.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); + /** + * 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 + */ + 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 "genericWebService." + error; + return "experiments." + error; } - return null; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + 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); + /** + * 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 + */ + 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]); } - return message; - }; + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + 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; + /** + * 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 + */ + 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 + * @instance + * @returns {Object.} JSON object + */ + ListExperimentsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListExperimentsResponse; + })(); + + v3.GetExperimentRequest = (function() { + + /** + * Properties of a GetExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetExperimentRequest + * @property {string|null} [name] GetExperimentRequest name + */ + + /** + * Constructs a new GetExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetExperimentRequest. + * @implements IGetExperimentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set + */ + function GetExperimentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @instance + */ + GetExperimentRequest.prototype.name = ""; + + /** + * Creates a new GetExperimentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest instance + */ + GetExperimentRequest.create = function create(properties) { + return new GetExperimentRequest(properties); + }; + + /** + * Encodes the specified GetExperimentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetExperimentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetExperimentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetExperimentRequest} message GetExperimentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetExperimentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetExperimentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; } - 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 message; + }; + + /** + * Decodes a GetExperimentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetExperimentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetExperimentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetExperimentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GetExperimentRequest} GetExperimentRequest + */ + GetExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.GetExperimentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * 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); - }; + /** + * Creates a plain object from a GetExperimentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.GetExperimentRequest} message GetExperimentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - return ServiceDirectoryConfig; - })(); + /** + * Converts this GetExperimentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetExperimentRequest + * @instance + * @returns {Object.} JSON object + */ + GetExperimentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Webhook; + return GetExperimentRequest; })(); - v3.ListWebhooksRequest = (function() { + v3.CreateExperimentRequest = (function() { /** - * Properties of a ListWebhooksRequest. + * Properties of a CreateExperimentRequest. * @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 ICreateExperimentRequest + * @property {string|null} [parent] CreateExperimentRequest parent + * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] CreateExperimentRequest experiment */ /** - * Constructs a new ListWebhooksRequest. + * Constructs a new CreateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListWebhooksRequest. - * @implements IListWebhooksRequest + * @classdesc Represents a CreateExperimentRequest. + * @implements ICreateExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateExperimentRequest=} [properties] Properties to set */ - function ListWebhooksRequest(properties) { + function CreateExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60945,90 +61784,80 @@ } /** - * ListWebhooksRequest parent. + * CreateExperimentRequest 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 + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @instance */ - ListWebhooksRequest.prototype.pageSize = 0; + CreateExperimentRequest.prototype.parent = ""; /** - * ListWebhooksRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * CreateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @instance */ - ListWebhooksRequest.prototype.pageToken = ""; + CreateExperimentRequest.prototype.experiment = null; /** - * Creates a new ListWebhooksRequest instance using the specified properties. + * Creates a new CreateExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @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.ICreateExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest instance */ - ListWebhooksRequest.create = function create(properties) { - return new ListWebhooksRequest(properties); + CreateExperimentRequest.create = function create(properties) { + return new CreateExperimentRequest(properties); }; /** - * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.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.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest 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 */ - ListWebhooksRequest.encode = function encode(message, writer) { + CreateExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.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.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 ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksRequest.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.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest} message ListWebhooksRequest 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 */ - ListWebhooksRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebhooksRequest 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.ListWebhooksRequest + * @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.ListWebhooksRequest} ListWebhooksRequest + * @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 */ - ListWebhooksRequest.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.ListWebhooksRequest(); + 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) { @@ -61036,10 +61865,7 @@ message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); - break; - case 3: - message.pageToken = reader.string(); + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -61050,126 +61876,122 @@ }; /** - * Decodes a ListWebhooksRequest 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.ListWebhooksRequest + * @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.ListWebhooksRequest} ListWebhooksRequest + * @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 */ - ListWebhooksRequest.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 ListWebhooksRequest message. + * Verifies a CreateExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @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 */ - ListWebhooksRequest.verify = function verify(message) { + CreateExperimentRequest.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.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 ListWebhooksRequest 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.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} CreateExperimentRequest */ - ListWebhooksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest) + 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.ListWebhooksRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(); 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.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 ListWebhooksRequest 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.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} message ListWebhooksRequest + * @param {google.cloud.dialogflow.cx.v3.CreateExperimentRequest} message CreateExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebhooksRequest.toObject = function toObject(message, options) { + CreateExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.experiment = 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.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); return object; }; /** - * Converts this ListWebhooksRequest to JSON. + * Converts this CreateExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateExperimentRequest * @instance * @returns {Object.} JSON object */ - ListWebhooksRequest.prototype.toJSON = function toJSON() { + CreateExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebhooksRequest; + return CreateExperimentRequest; })(); - v3.ListWebhooksResponse = (function() { + v3.UpdateExperimentRequest = (function() { /** - * Properties of a ListWebhooksResponse. + * Properties of an UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListWebhooksResponse - * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks - * @property {string|null} [nextPageToken] ListWebhooksResponse nextPageToken + * @interface IUpdateExperimentRequest + * @property {google.cloud.dialogflow.cx.v3.IExperiment|null} [experiment] UpdateExperimentRequest experiment + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExperimentRequest updateMask */ /** - * Constructs a new ListWebhooksResponse. + * Constructs a new UpdateExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListWebhooksResponse. - * @implements IListWebhooksResponse + * @classdesc Represents an UpdateExperimentRequest. + * @implements IUpdateExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateExperimentRequest=} [properties] Properties to set */ - function ListWebhooksResponse(properties) { - this.webhooks = []; + function UpdateExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61177,91 +61999,294 @@ } /** - * ListWebhooksResponse webhooks. - * @member {Array.} webhooks - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * UpdateExperimentRequest experiment. + * @member {google.cloud.dialogflow.cx.v3.IExperiment|null|undefined} experiment + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @instance */ - ListWebhooksResponse.prototype.webhooks = $util.emptyArray; + UpdateExperimentRequest.prototype.experiment = null; /** - * ListWebhooksResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * UpdateExperimentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest * @instance */ - ListWebhooksResponse.prototype.nextPageToken = ""; + 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; + } + } + 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 (error) + return "experiment." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} UpdateExperimentRequest + */ + UpdateExperimentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(); + if (object.experiment != null) { + if (typeof object.experiment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.experiment: object expected"); + message.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.fromObject(object.experiment); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateExperimentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateExperimentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} message UpdateExperimentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateExperimentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.experiment = null; + object.updateMask = null; + } + if (message.experiment != null && message.hasOwnProperty("experiment")) + object.experiment = $root.google.cloud.dialogflow.cx.v3.Experiment.toObject(message.experiment, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateExperimentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.UpdateExperimentRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateExperimentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateExperimentRequest; + })(); + + v3.DeleteExperimentRequest = (function() { + + /** + * Properties of a DeleteExperimentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteExperimentRequest + * @property {string|null} [name] DeleteExperimentRequest name + */ + + /** + * 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]]; + } + + /** + * DeleteExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest + * @instance + */ + DeleteExperimentRequest.prototype.name = ""; /** - * Creates a new ListWebhooksResponse instance using the specified properties. + * Creates a new DeleteExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @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.IDeleteExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest instance */ - ListWebhooksResponse.create = function create(properties) { - return new ListWebhooksResponse(properties); + DeleteExperimentRequest.create = function create(properties) { + return new DeleteExperimentRequest(properties); }; /** - * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.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.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse 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 */ - ListWebhooksResponse.encode = function encode(message, writer) { + DeleteExperimentRequest.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); 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 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.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse 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 */ - ListWebhooksResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListWebhooksResponse 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.ListWebhooksResponse + * @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.ListWebhooksResponse} ListWebhooksResponse + * @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 */ - ListWebhooksResponse.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.ListWebhooksResponse(); + 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: - 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.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -61272,133 +62297,107 @@ }; /** - * Decodes a ListWebhooksResponse 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.ListWebhooksResponse + * @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.ListWebhooksResponse} ListWebhooksResponse + * @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 */ - ListWebhooksResponse.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 ListWebhooksResponse message. + * Verifies a DeleteExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @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 */ - ListWebhooksResponse.verify = function verify(message) { + DeleteExperimentRequest.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"; return null; }; /** - * Creates a ListWebhooksResponse 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.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse + * @returns {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} DeleteExperimentRequest */ - ListWebhooksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse) + 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.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.DeleteExperimentRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListWebhooksResponse 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.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} message ListWebhooksResponse + * @param {google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} message DeleteExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListWebhooksResponse.toObject = function toObject(message, options) { + DeleteExperimentRequest.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 (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 ListWebhooksResponse to JSON. + * Converts this DeleteExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteExperimentRequest * @instance * @returns {Object.} JSON object */ - ListWebhooksResponse.prototype.toJSON = function toJSON() { + DeleteExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListWebhooksResponse; + return DeleteExperimentRequest; })(); - v3.GetWebhookRequest = (function() { + v3.StartExperimentRequest = (function() { /** - * Properties of a GetWebhookRequest. + * Properties of a StartExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetWebhookRequest - * @property {string|null} [name] GetWebhookRequest name + * @interface IStartExperimentRequest + * @property {string|null} [name] StartExperimentRequest name */ /** - * Constructs a new GetWebhookRequest. + * Constructs a new StartExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetWebhookRequest. - * @implements IGetWebhookRequest + * @classdesc Represents a StartExperimentRequest. + * @implements IStartExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStartExperimentRequest=} [properties] Properties to set */ - function GetWebhookRequest(properties) { + function StartExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61406,35 +62405,35 @@ } /** - * GetWebhookRequest name. + * StartExperimentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @instance */ - GetWebhookRequest.prototype.name = ""; + StartExperimentRequest.prototype.name = ""; /** - * Creates a new GetWebhookRequest instance using the specified properties. + * Creates a new StartExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @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.IStartExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest instance */ - GetWebhookRequest.create = function create(properties) { - return new GetWebhookRequest(properties); + StartExperimentRequest.create = function create(properties) { + return new StartExperimentRequest(properties); }; /** - * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.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.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest 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 */ - GetWebhookRequest.encode = function encode(message, writer) { + StartExperimentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -61443,33 +62442,33 @@ }; /** - * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetWebhookRequest.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.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest} message GetWebhookRequest 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 */ - GetWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + StartExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetWebhookRequest 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.GetWebhookRequest + * @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.GetWebhookRequest} GetWebhookRequest + * @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 */ - GetWebhookRequest.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.GetWebhookRequest(); + 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) { @@ -61485,30 +62484,30 @@ }; /** - * Decodes a GetWebhookRequest 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.GetWebhookRequest + * @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.GetWebhookRequest} GetWebhookRequest + * @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 */ - GetWebhookRequest.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 GetWebhookRequest message. + * Verifies a StartExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @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 */ - GetWebhookRequest.verify = function verify(message) { + StartExperimentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -61518,32 +62517,32 @@ }; /** - * Creates a GetWebhookRequest 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.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.StartExperimentRequest} StartExperimentRequest */ - GetWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest) + 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.GetWebhookRequest(); + 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 GetWebhookRequest 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.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetWebhookRequest} message GetWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.StartExperimentRequest} message StartExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetWebhookRequest.toObject = function toObject(message, options) { + StartExperimentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -61555,38 +62554,37 @@ }; /** - * Converts this GetWebhookRequest to JSON. + * Converts this StartExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StartExperimentRequest * @instance * @returns {Object.} JSON object */ - GetWebhookRequest.prototype.toJSON = function toJSON() { + StartExperimentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetWebhookRequest; + return StartExperimentRequest; })(); - v3.CreateWebhookRequest = (function() { + v3.StopExperimentRequest = (function() { /** - * Properties of a CreateWebhookRequest. + * Properties of a StopExperimentRequest. * @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 IStopExperimentRequest + * @property {string|null} [name] StopExperimentRequest name */ /** - * Constructs a new CreateWebhookRequest. + * Constructs a new StopExperimentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateWebhookRequest. - * @implements ICreateWebhookRequest + * @classdesc Represents a StopExperimentRequest. + * @implements IStopExperimentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStopExperimentRequest=} [properties] Properties to set */ - function CreateWebhookRequest(properties) { + function StopExperimentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61594,88 +62592,75 @@ } /** - * CreateWebhookRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest - * @instance - */ - CreateWebhookRequest.prototype.parent = ""; - - /** - * CreateWebhookRequest webhook. - * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * StopExperimentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @instance */ - CreateWebhookRequest.prototype.webhook = null; + StopExperimentRequest.prototype.name = ""; /** - * Creates a new CreateWebhookRequest instance using the specified properties. + * Creates a new StopExperimentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @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.IStopExperimentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest instance */ - CreateWebhookRequest.create = function create(properties) { - return new CreateWebhookRequest(properties); + StopExperimentRequest.create = function create(properties) { + return new StopExperimentRequest(properties); }; /** - * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateWebhookRequest.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.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest 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 */ - CreateWebhookRequest.encode = function encode(message, writer) { + StopExperimentRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); 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 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.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest} message CreateWebhookRequest 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 */ - CreateWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + StopExperimentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateWebhookRequest 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.CreateWebhookRequest + * @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.CreateWebhookRequest} CreateWebhookRequest + * @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 */ - CreateWebhookRequest.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.CreateWebhookRequest(); + 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.parent = reader.string(); - break; - case 2: - message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -61686,342 +62671,373 @@ }; /** - * Decodes a CreateWebhookRequest 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.CreateWebhookRequest + * @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.CreateWebhookRequest} CreateWebhookRequest + * @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 */ - CreateWebhookRequest.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 CreateWebhookRequest message. + * Verifies a StopExperimentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @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 */ - CreateWebhookRequest.verify = function verify(message) { + StopExperimentRequest.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 (error) - return "webhook." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateWebhookRequest 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.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.StopExperimentRequest} StopExperimentRequest */ - CreateWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest) + 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.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); - } + 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 CreateWebhookRequest 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.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.StopExperimentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} message CreateWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.StopExperimentRequest} message StopExperimentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateWebhookRequest.toObject = function toObject(message, options) { + StopExperimentRequest.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); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateWebhookRequest to JSON. + * Converts this StopExperimentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest + * @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); + }; + + return StopExperimentRequest; + })(); + + 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 - * @returns {Object.} JSON object + * @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 */ - CreateWebhookRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateWebhookRequest; - })(); - - v3.UpdateWebhookRequest = (function() { + 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" }); /** - * 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 + * 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 */ /** - * 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 + * 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 */ - 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 + * 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 */ - UpdateWebhookRequest.prototype.webhook = null; + 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" }); /** - * UpdateWebhookRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * 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 */ - 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 + * 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 */ - 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 + * 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 */ - 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; - }; + 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" }); /** - * 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 + * 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 */ - 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 + * 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 */ - 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 + * 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 */ - UpdateWebhookRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + 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" }); /** - * 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 + * 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 */ - 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 + * 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 */ - 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; - }; /** - * 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 + * 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 */ - 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; - }; + 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" }); /** - * Converts this UpdateWebhookRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest + * Calls CompareVersions. + * @function compareVersions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsRequest} request CompareVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - UpdateWebhookRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return UpdateWebhookRequest; + return Versions; })(); - v3.DeleteWebhookRequest = (function() { + v3.CreateVersionOperationMetadata = (function() { /** - * Properties of a DeleteWebhookRequest. + * Properties of a CreateVersionOperationMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteWebhookRequest - * @property {string|null} [name] DeleteWebhookRequest name - * @property {boolean|null} [force] DeleteWebhookRequest force + * @interface ICreateVersionOperationMetadata + * @property {string|null} [version] CreateVersionOperationMetadata version */ /** - * Constructs a new DeleteWebhookRequest. + * Constructs a new CreateVersionOperationMetadata. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteWebhookRequest. - * @implements IDeleteWebhookRequest + * @classdesc Represents a CreateVersionOperationMetadata. + * @implements ICreateVersionOperationMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set */ - function DeleteWebhookRequest(properties) { + function CreateVersionOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -62029,88 +63045,75 @@ } /** - * DeleteWebhookRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest - * @instance - */ - DeleteWebhookRequest.prototype.name = ""; - - /** - * DeleteWebhookRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * CreateVersionOperationMetadata version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @instance */ - DeleteWebhookRequest.prototype.force = false; + CreateVersionOperationMetadata.prototype.version = ""; /** - * Creates a new DeleteWebhookRequest instance using the specified properties. + * Creates a new CreateVersionOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @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.ICreateVersionOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata instance */ - DeleteWebhookRequest.create = function create(properties) { - return new DeleteWebhookRequest(properties); + CreateVersionOperationMetadata.create = function create(properties) { + return new CreateVersionOperationMetadata(properties); }; /** - * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.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.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest 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 */ - DeleteWebhookRequest.encode = function encode(message, writer) { + CreateVersionOperationMetadata.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.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); return writer; }; /** - * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteWebhookRequest.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.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} message DeleteWebhookRequest 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 */ - DeleteWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateVersionOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteWebhookRequest message from the specified reader or buffer. + * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @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.v3.DeleteWebhookRequest} DeleteWebhookRequest + * @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 */ - DeleteWebhookRequest.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.v3.DeleteWebhookRequest(); + 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.name = reader.string(); - break; - case 2: - message.force = reader.bool(); + message.version = reader.string(); break; default: reader.skipType(tag & 7); @@ -62121,378 +63124,253 @@ }; /** - * Decodes a DeleteWebhookRequest 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.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @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.CreateVersionOperationMetadata} CreateVersionOperationMetadata * @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) { + CreateVersionOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteWebhookRequest message. + * Verifies a CreateVersionOperationMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest + * @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 */ - DeleteWebhookRequest.verify = function verify(message) { + CreateVersionOperationMetadata.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.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; return null; }; /** - * Creates a DeleteWebhookRequest 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.v3.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata */ - DeleteWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest) + 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.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 DeleteWebhookRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} message DeleteWebhookRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteWebhookRequest.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 DeleteWebhookRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteWebhookRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteWebhookRequest; - })(); - - v3.WebhookRequest = (function() { - - /** - * Properties of a WebhookRequest. - * @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} [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 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 - */ - 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]]; - } - - /** - * WebhookRequest detectIntentResponseId. - * @member {string} detectIntentResponseId - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.detectIntentResponseId = ""; - - /** - * WebhookRequest text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.text = null; + var message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata(); + if (object.version != null) + message.version = String(object.version); + return message; + }; /** - * WebhookRequest triggerIntent. - * @member {string|null|undefined} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance + * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata + * @static + * @param {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} message CreateVersionOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - WebhookRequest.prototype.triggerIntent = null; + CreateVersionOperationMetadata.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; + }; /** - * WebhookRequest transcript. - * @member {string|null|undefined} transcript - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Converts this CreateVersionOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @instance + * @returns {Object.} JSON object */ - WebhookRequest.prototype.transcript = null; + CreateVersionOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * WebhookRequest triggerEvent. - * @member {string|null|undefined} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.triggerEvent = null; + return CreateVersionOperationMetadata; + })(); - /** - * WebhookRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance - */ - WebhookRequest.prototype.languageCode = ""; + v3.Version = (function() { /** - * WebhookRequest fulfillmentInfo. - * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance + * 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 */ - WebhookRequest.prototype.fulfillmentInfo = null; /** - * WebhookRequest intentInfo. - * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null|undefined} intentInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @instance + * Constructs a new Version. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Version. + * @implements IVersion + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set */ - WebhookRequest.prototype.intentInfo = null; + function Version(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]]; + } /** - * WebhookRequest pageInfo. - * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Version name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - WebhookRequest.prototype.pageInfo = null; + Version.prototype.name = ""; /** - * WebhookRequest sessionInfo. - * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Version displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - WebhookRequest.prototype.sessionInfo = null; + Version.prototype.displayName = ""; /** - * WebhookRequest messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Version description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - WebhookRequest.prototype.messages = $util.emptyArray; + Version.prototype.description = ""; /** - * WebhookRequest payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Version nluSettings. + * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - WebhookRequest.prototype.payload = null; + Version.prototype.nluSettings = null; /** - * WebhookRequest sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Version createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - WebhookRequest.prototype.sentimentAnalysisResult = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Version.prototype.createTime = null; /** - * WebhookRequest query. - * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * Version state. + * @member {google.cloud.dialogflow.cx.v3.Version.State} state + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ - Object.defineProperty(WebhookRequest.prototype, "query", { - get: $util.oneOfGetter($oneOfFields = ["text", "triggerIntent", "transcript", "triggerEvent"]), - set: $util.oneOfSetter($oneOfFields) - }); + Version.prototype.state = 0; /** - * Creates a new WebhookRequest instance using the specified properties. + * Creates a new Version instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Version * @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.IVersion=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Version} Version instance */ - WebhookRequest.create = function create(properties) { - return new WebhookRequest(properties); + Version.create = function create(properties) { + return new Version(properties); }; /** - * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.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.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest 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 */ - WebhookRequest.encode = function encode(message, writer) { + Version.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.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); 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 Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest} message WebhookRequest 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 */ - WebhookRequest.encodeDelimited = function encodeDelimited(message, writer) { + Version.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebhookRequest message from the specified reader or buffer. + * Decodes a Version message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @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.v3.WebhookRequest} WebhookRequest + * @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 */ - WebhookRequest.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.v3.WebhookRequest(); + 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) { 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 15: - message.languageCode = reader.string(); + message.name = reader.string(); break; - case 6: - message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); + case 2: + message.displayName = reader.string(); break; case 3: - message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); + message.description = reader.string(); break; case 4: - message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); break; case 5: - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3.SessionInfo.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())); - break; - case 8: - message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; - case 9: - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.decode(reader, reader.uint32()); + case 6: + message.state = reader.int32(); break; default: reader.skipType(tag & 7); @@ -62503,1189 +63381,850 @@ }; /** - * Decodes a WebhookRequest 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.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Version * @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.Version} Version * @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) { + Version.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebhookRequest message. + * Verifies a Version message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @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 */ - WebhookRequest.verify = function verify(message) { + Version.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.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 (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 (error) - return "pageInfo." + error; + return "nluSettings." + error; } - if (message.sessionInfo != null && message.hasOwnProperty("sessionInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "sessionInfo." + error; + return "createTime." + 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 (error) - return "messages." + 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; } - } - 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 a WebhookRequest 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.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Version * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.Version} Version */ - WebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest) + 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.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.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); - } - 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.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); - } - return message; - }; - - /** - * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest} message WebhookRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - WebhookRequest.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"; + 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 (message.triggerIntent != null && message.hasOwnProperty("triggerIntent")) { - object.triggerIntent = message.triggerIntent; - if (options.oneofs) - object.query = "triggerIntent"; + 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 (message.transcript != null && message.hasOwnProperty("transcript")) { - object.transcript = message.transcript; - if (options.oneofs) - object.query = "transcript"; + switch (object.state) { + 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 (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { - object.triggerEvent = message.triggerEvent; - if (options.oneofs) - object.query = "triggerEvent"; + return message; + }; + + /** + * Creates a plain object from a Version message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Version + * @static + * @param {google.cloud.dialogflow.cx.v3.Version} message Version + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Version.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; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.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.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] : message.state; return object; }; /** - * Converts this WebhookRequest to JSON. + * Converts this Version to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance * @returns {Object.} JSON object */ - WebhookRequest.prototype.toJSON = function toJSON() { + Version.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - WebhookRequest.FulfillmentInfo = (function() { - - /** - * Properties of a FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @interface IFulfillmentInfo - * @property {string|null} [tag] FulfillmentInfo tag - */ - - /** - * Constructs a new FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @classdesc Represents a FulfillmentInfo. - * @implements IFulfillmentInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set - */ - function FulfillmentInfo(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]]; - } - - /** - * FulfillmentInfo tag. - * @member {string} tag - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @instance - */ - FulfillmentInfo.prototype.tag = ""; - - /** - * Creates a new FulfillmentInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo instance - */ - FulfillmentInfo.create = function create(properties) { - return new FulfillmentInfo(properties); - }; - - /** - * 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.WebhookRequest.FulfillmentInfo - * @static - * @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 - */ - FulfillmentInfo.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); - return writer; - }; - - /** - * 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.WebhookRequest.FulfillmentInfo - * @static - * @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 - */ - FulfillmentInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer. - * @function decode - * @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.WebhookRequest.FulfillmentInfo} FulfillmentInfo - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tag = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.WebhookRequest.FulfillmentInfo} FulfillmentInfo - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FulfillmentInfo message. - * @function verify - * @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 - */ - FulfillmentInfo.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"; - return null; - }; - - /** - * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo - */ - 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.WebhookRequest.FulfillmentInfo(); - if (object.tag != null) - message.tag = String(object.tag); - return message; - }; - - /** - * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} message FulfillmentInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FulfillmentInfo.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; - return object; - }; - - /** - * Converts this FulfillmentInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo - * @instance - * @returns {Object.} JSON object - */ - FulfillmentInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FulfillmentInfo; + /** + * 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; })(); - WebhookRequest.IntentInfo = (function() { + return Version; + })(); - /** - * 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 - */ + v3.ListVersionsRequest = (function() { - /** - * Constructs a new IntentInfo. - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest - * @classdesc Represents an IntentInfo. - * @implements IIntentInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set - */ - function IntentInfo(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]]; - } + /** + * 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 + */ - /** - * IntentInfo lastMatchedIntent. - * @member {string} lastMatchedIntent - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.lastMatchedIntent = ""; + /** + * Constructs a new ListVersionsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListVersionsRequest. + * @implements IListVersionsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set + */ + function ListVersionsRequest(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]]; + } - /** - * IntentInfo displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.displayName = ""; + /** + * ListVersionsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.parent = ""; - /** - * IntentInfo parameters. - * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.parameters = $util.emptyObject; + /** + * ListVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.pageSize = 0; - /** - * IntentInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - */ - IntentInfo.prototype.confidence = 0; + /** + * ListVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @instance + */ + ListVersionsRequest.prototype.pageToken = ""; - /** - * Creates a new IntentInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo instance - */ - IntentInfo.create = function create(properties) { - return new IntentInfo(properties); - }; + /** + * Creates a new ListVersionsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest instance + */ + ListVersionsRequest.create = function create(properties) { + return new ListVersionsRequest(properties); + }; - /** - * 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.WebhookRequest.IntentInfo - * @static - * @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 - */ - IntentInfo.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); - return writer; - }; + /** + * 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.v3.ListVersionsRequest + * @static + * @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 + */ + ListVersionsRequest.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 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.WebhookRequest.IntentInfo - * @static - * @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 - */ - IntentInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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.v3.ListVersionsRequest + * @static + * @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 + */ + ListVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an IntentInfo message from the specified reader or buffer. - * @function decode - * @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.WebhookRequest.IntentInfo} IntentInfo - * @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) { - 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; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.lastMatchedIntent = reader.string(); - break; - case 3: - message.displayName = 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(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a ListVersionsRequest message from the specified reader or buffer. + * @function decode + * @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.v3.ListVersionsRequest} ListVersionsRequest + * @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) { + 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(); + 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 an IntentInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.WebhookRequest.IntentInfo} IntentInfo - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies an IntentInfo message. - * @function verify - * @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 - */ - IntentInfo.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.confidence != null && message.hasOwnProperty("confidence")) - if (typeof message.confidence !== "number") - return "confidence: number expected"; - return null; - }; + /** + * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ListVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo - */ - 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.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.confidence != null) - message.confidence = Number(object.confidence); - return message; - }; + /** + * Verifies a ListVersionsRequest message. + * @function verify + * @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 + */ + ListVersionsRequest.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 an IntentInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} message IntentInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntentInfo.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); - } - 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; + /** + * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest + */ + 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.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); + return message; + }; - /** - * Converts this IntentInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo - * @instance - * @returns {Object.} JSON object - */ - IntentInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ListVersionsRequest} message ListVersionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListVersionsRequest.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; + }; - IntentInfo.IntentParameterValue = (function() { + /** + * Converts this ListVersionsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListVersionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * 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 ListVersionsRequest; + })(); - /** - * 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.ListVersionsResponse = (function() { - /** - * IntentParameterValue originalValue. - * @member {string} originalValue - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue - * @instance - */ - IntentParameterValue.prototype.originalValue = ""; + /** + * Properties of a ListVersionsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListVersionsResponse + * @property {Array.|null} [versions] ListVersionsResponse versions + * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken + */ - /** - * 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 ListVersionsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListVersionsResponse. + * @implements IListVersionsResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set + */ + function ListVersionsResponse(properties) { + this.versions = []; + if (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); - }; + /** + * ListVersionsResponse versions. + * @member {Array.} versions + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @instance + */ + ListVersionsResponse.prototype.versions = $util.emptyArray; - /** - * 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; - }; + /** + * ListVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @instance + */ + ListVersionsResponse.prototype.nextPageToken = ""; - /** - * 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(); - }; + /** + * Creates a new ListVersionsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse instance + */ + ListVersionsResponse.create = function create(properties) { + return new ListVersionsResponse(properties); + }; - /** - * 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; - }; + /** + * 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.v3.ListVersionsResponse + * @static + * @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 + */ + ListVersionsResponse.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); + return writer; + }; - /** - * 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()); - }; + /** + * 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.v3.ListVersionsResponse + * @static + * @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 + */ + ListVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * 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; - }; + /** + * Decodes a ListVersionsResponse message from the specified reader or buffer. + * @function decode + * @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.v3.ListVersionsResponse} ListVersionsResponse + * @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) { + 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(); + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * 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; - }; + /** + * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ListVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * 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; - } - 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; - }; + /** + * Verifies a ListVersionsResponse message. + * @function verify + * @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 + */ + ListVersionsResponse.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"; + return null; + }; - /** - * 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); - }; + /** + * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse + */ + 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.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); + return message; + }; - return IntentParameterValue; - })(); + /** + * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} message ListVersionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListVersionsResponse.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; + return object; + }; - return IntentInfo; - })(); + /** + * Converts this ListVersionsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse + * @instance + * @returns {Object.} JSON object + */ + ListVersionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - WebhookRequest.SentimentAnalysisResult = (function() { + return ListVersionsResponse; + })(); - /** - * 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 - */ + v3.GetVersionRequest = (function() { - /** - * 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]]; - } + /** + * Properties of a GetVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetVersionRequest + * @property {string|null} [name] GetVersionRequest name + */ - /** - * SentimentAnalysisResult score. - * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.score = 0; + /** + * Constructs a new GetVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetVersionRequest. + * @implements IGetVersionRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set + */ + function GetVersionRequest(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 magnitude. - * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult - * @instance - */ - SentimentAnalysisResult.prototype.magnitude = 0; + /** + * GetVersionRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @instance + */ + GetVersionRequest.prototype.name = ""; - /** - * 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); - }; + /** + * Creates a new GetVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest instance + */ + GetVersionRequest.create = function create(properties) { + return new GetVersionRequest(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 GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @static + * @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 + */ + GetVersionRequest.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 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(); - }; + /** + * 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.v3.GetVersionRequest + * @static + * @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 + */ + GetVersionRequest.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); - break; - } + /** + * Decodes a GetVersionRequest message from the specified reader or buffer. + * @function decode + * @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.v3.GetVersionRequest} GetVersionRequest + * @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) { + 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(); + 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 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 GetVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetVersionRequest.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 GetVersionRequest message. + * @function verify + * @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 + */ + GetVersionRequest.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 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 GetVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest + */ + 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.v3.GetVersionRequest(); + if (object.name != null) + message.name = String(object.name); + 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 GetVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.GetVersionRequest} message GetVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetVersionRequest.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 SentimentAnalysisResult; - })(); + /** + * Converts this GetVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest + * @instance + * @returns {Object.} JSON object + */ + GetVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return WebhookRequest; + return GetVersionRequest; })(); - v3.WebhookResponse = (function() { + v3.CreateVersionRequest = (function() { /** - * 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 + * 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 WebhookResponse. + * Constructs a new CreateVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a WebhookResponse. - * @implements IWebhookResponse + * @classdesc Represents a CreateVersionRequest. + * @implements ICreateVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set */ - function WebhookResponse(properties) { + function CreateVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -63693,154 +64232,509 @@ } /** - * WebhookResponse fulfillmentResponse. - * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * CreateVersionRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance */ - WebhookResponse.prototype.fulfillmentResponse = null; + CreateVersionRequest.prototype.parent = ""; /** - * WebhookResponse pageInfo. - * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * CreateVersionRequest version. + * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance */ - WebhookResponse.prototype.pageInfo = null; + CreateVersionRequest.prototype.version = null; /** - * WebhookResponse sessionInfo. - * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance + * Creates a new CreateVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest instance */ - WebhookResponse.prototype.sessionInfo = null; + CreateVersionRequest.create = function create(properties) { + return new CreateVersionRequest(properties); + }; /** - * WebhookResponse payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance + * 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.v3.CreateVersionRequest + * @static + * @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 */ - WebhookResponse.prototype.payload = null; + 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.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; + }; /** - * WebhookResponse targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse - * @instance + * 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.v3.CreateVersionRequest + * @static + * @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 */ - WebhookResponse.prototype.targetPage = null; + CreateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * WebhookResponse targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * Decodes a CreateVersionRequest message from the specified reader or buffer. + * @function decode + * @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.v3.CreateVersionRequest} CreateVersionRequest + * @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) { + 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(); + 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()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + CreateVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateVersionRequest message. + * @function verify + * @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 + */ + 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.version != null && message.hasOwnProperty("version")) { + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); + if (error) + return "version." + error; + } + return null; + }; + + /** + * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest + */ + 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); + } + return message; + }; + + /** + * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.CreateVersionRequest} message CreateVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateVersionRequest.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); + return object; + }; + + /** + * Converts this CreateVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance + * @returns {Object.} JSON object */ - WebhookResponse.prototype.targetFlow = null; + CreateVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + return CreateVersionRequest; + })(); + + v3.UpdateVersionRequest = (function() { /** - * WebhookResponse transition. - * @member {"targetPage"|"targetFlow"|undefined} transition - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * 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 UpdateVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdateVersionRequest. + * @implements IUpdateVersionRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set + */ + function UpdateVersionRequest(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]]; + } + + /** + * UpdateVersionRequest version. + * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance */ - Object.defineProperty(WebhookResponse.prototype, "transition", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateVersionRequest.prototype.version = null; /** - * Creates a new WebhookResponse instance using the specified properties. + * UpdateVersionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @instance + */ + UpdateVersionRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @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.IUpdateVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest instance */ - WebhookResponse.create = function create(properties) { - return new WebhookResponse(properties); + UpdateVersionRequest.create = function create(properties) { + return new UpdateVersionRequest(properties); }; /** - * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.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.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse 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 */ - WebhookResponse.encode = function encode(message, writer) { + UpdateVersionRequest.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.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 WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.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.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse} message WebhookResponse 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 */ - WebhookResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WebhookResponse message from the specified reader or buffer. + * Decodes an UpdateVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @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.v3.WebhookResponse} WebhookResponse + * @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 */ - WebhookResponse.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.v3.WebhookResponse(); + 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.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.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()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; - case 5: - message.targetPage = reader.string(); + default: + reader.skipType(tag & 7); break; - case 6: - message.targetFlow = reader.string(); + } + } + return message; + }; + + /** + * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UpdateVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateVersionRequest message. + * @function verify + * @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 + */ + UpdateVersionRequest.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 (error) + return "version." + 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 UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest + */ + 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.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.v3.UpdateVersionRequest.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. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} message UpdateVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.version = 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.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateVersionRequest; + })(); + + v3.DeleteVersionRequest = (function() { + + /** + * Properties of a DeleteVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteVersionRequest + * @property {string|null} [name] DeleteVersionRequest name + */ + + /** + * Constructs a new DeleteVersionRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeleteVersionRequest. + * @implements IDeleteVersionRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set + */ + function DeleteVersionRequest(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]]; + } + + /** + * DeleteVersionRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @instance + */ + DeleteVersionRequest.prototype.name = ""; + + /** + * Creates a new DeleteVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest instance + */ + DeleteVersionRequest.create = function create(properties) { + return new DeleteVersionRequest(properties); + }; + + /** + * 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.v3.DeleteVersionRequest + * @static + * @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 + */ + DeleteVersionRequest.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 DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest + * @static + * @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 + */ + DeleteVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteVersionRequest message from the specified reader or buffer. + * @function decode + * @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.v3.DeleteVersionRequest} DeleteVersionRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -63851,445 +64745,108 @@ }; /** - * Decodes a WebhookResponse 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.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @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.DeleteVersionRequest} DeleteVersionRequest * @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) { + DeleteVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WebhookResponse message. + * Verifies a DeleteVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @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 */ - WebhookResponse.verify = function verify(message) { + DeleteVersionRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a WebhookResponse 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.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest */ - WebhookResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse) + 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.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); + 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 WebhookResponse 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.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.WebhookResponse} message WebhookResponse + * @param {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} message DeleteVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WebhookResponse.toObject = function toObject(message, options) { + DeleteVersionRequest.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.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this WebhookResponse to JSON. + * Converts this DeleteVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @instance * @returns {Object.} JSON object */ - WebhookResponse.prototype.toJSON = function toJSON() { + DeleteVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - WebhookResponse.FulfillmentResponse = (function() { - - /** - * 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 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]]; - } - - /** - * FulfillmentResponse messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse - * @instance - */ - FulfillmentResponse.prototype.messages = $util.emptyArray; - - /** - * 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; - - /** - * 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); - }; - - /** - * 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 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(); - }; - - /** - * 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: - 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) { - 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 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] : message.mergeBehavior; - return object; - }; - - /** - * 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); - }; - - /** - * 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 WebhookResponse; + return DeleteVersionRequest; })(); - v3.PageInfo = (function() { + v3.LoadVersionRequest = (function() { /** - * Properties of a PageInfo. + * Properties of a LoadVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IPageInfo - * @property {string|null} [currentPage] PageInfo currentPage - * @property {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo + * @interface ILoadVersionRequest + * @property {string|null} [name] LoadVersionRequest name + * @property {boolean|null} [allowOverrideAgentResources] LoadVersionRequest allowOverrideAgentResources */ /** - * Constructs a new PageInfo. + * Constructs a new LoadVersionRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a PageInfo. - * @implements IPageInfo + * @classdesc Represents a LoadVersionRequest. + * @implements ILoadVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set */ - function PageInfo(properties) { + function LoadVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -64297,88 +64854,88 @@ } /** - * PageInfo currentPage. - * @member {string} currentPage - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * LoadVersionRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance */ - PageInfo.prototype.currentPage = ""; + LoadVersionRequest.prototype.name = ""; /** - * PageInfo formInfo. - * @member {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null|undefined} formInfo - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * LoadVersionRequest allowOverrideAgentResources. + * @member {boolean} allowOverrideAgentResources + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance */ - PageInfo.prototype.formInfo = null; + LoadVersionRequest.prototype.allowOverrideAgentResources = false; /** - * Creates a new PageInfo instance using the specified properties. + * Creates a new LoadVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @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.ILoadVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest instance */ - PageInfo.create = function create(properties) { - return new PageInfo(properties); + LoadVersionRequest.create = function create(properties) { + return new LoadVersionRequest(properties); }; /** - * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.PageInfo.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.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo 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 */ - PageInfo.encode = function encode(message, writer) { + LoadVersionRequest.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.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); 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 LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPageInfo} message PageInfo 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 */ - PageInfo.encodeDelimited = function encodeDelimited(message, writer) { + LoadVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PageInfo message from the specified reader or buffer. + * Decodes a LoadVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @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.v3.PageInfo} PageInfo + * @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 */ - PageInfo.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.v3.PageInfo(); + 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) { case 1: - message.currentPage = reader.string(); + message.name = reader.string(); break; - case 3: - message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.decode(reader, reader.uint32()); + case 2: + message.allowOverrideAgentResources = reader.bool(); break; default: reader.skipType(tag & 7); @@ -64389,653 +64946,350 @@ }; /** - * Decodes a PageInfo 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.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @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.LoadVersionRequest} LoadVersionRequest * @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) { + LoadVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PageInfo message. + * Verifies a LoadVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @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 */ - PageInfo.verify = function verify(message) { + LoadVersionRequest.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.formInfo != null && message.hasOwnProperty("formInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify(message.formInfo); - if (error) - return "formInfo." + error; - } + 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"; return null; }; /** - * Creates a PageInfo 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.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest */ - PageInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo) + 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.v3.PageInfo(); - if (object.currentPage != null) - message.currentPage = String(object.currentPage); - 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.LoadVersionRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.allowOverrideAgentResources != null) + message.allowOverrideAgentResources = Boolean(object.allowOverrideAgentResources); return message; }; /** - * Creates a plain object from a PageInfo 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.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3.PageInfo} message PageInfo + * @param {google.cloud.dialogflow.cx.v3.LoadVersionRequest} message LoadVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PageInfo.toObject = function toObject(message, options) { + LoadVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.currentPage = ""; - object.formInfo = null; + object.name = ""; + object.allowOverrideAgentResources = false; } - 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.allowOverrideAgentResources != null && message.hasOwnProperty("allowOverrideAgentResources")) + object.allowOverrideAgentResources = message.allowOverrideAgentResources; return object; }; /** - * Converts this PageInfo to JSON. + * Converts this LoadVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance * @returns {Object.} JSON object */ - PageInfo.prototype.toJSON = function toJSON() { + LoadVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - PageInfo.FormInfo = (function() { - - /** - * Properties of a FormInfo. - * @memberof google.cloud.dialogflow.cx.v3.PageInfo - * @interface IFormInfo - * @property {Array.|null} [parameterInfo] FormInfo parameterInfo - */ - - /** - * 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]]; - } - - /** - * FormInfo parameterInfo. - * @member {Array.} parameterInfo - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo - * @instance - */ - FormInfo.prototype.parameterInfo = $util.emptyArray; - - /** - * 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); - }; - - /** - * 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; - }; - - /** - * 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(); - }; - - /** - * 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; - }; - - /** - * 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 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; - } - } - 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]); - } - } - 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; - }; - - /** - * 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); - }; - - 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; + return LoadVersionRequest; + })(); - /** - * 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; + v3.CompareVersionsRequest = (function() { - /** - * ParameterInfo value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.value = null; + /** + * 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 + */ - /** - * ParameterInfo justCollected. - * @member {boolean} justCollected - * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo - * @instance - */ - ParameterInfo.prototype.justCollected = false; + /** + * 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]]; + } - /** - * 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); - }; + /** + * CompareVersionsRequest baseVersion. + * @member {string} baseVersion + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @instance + */ + CompareVersionsRequest.prototype.baseVersion = ""; - /** - * 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; - }; + /** + * CompareVersionsRequest targetVersion. + * @member {string} targetVersion + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @instance + */ + CompareVersionsRequest.prototype.targetVersion = ""; - /** - * 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(); - }; + /** + * CompareVersionsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsRequest + * @instance + */ + CompareVersionsRequest.prototype.languageCode = ""; - /** - * 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; - }; + /** + * 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); + }; - /** - * 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()); - }; + /** + * 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; + }; - /** - * 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; - }; + /** + * 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(); + }; - /** - * 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) { - 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; - }; + /** + * 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; + }; - /** - * 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] : 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; - }; + /** + * 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()); + }; - /** - * 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); - }; + /** + * 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; + }; - /** - * 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; - })(); + /** + * 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; + }; - return ParameterInfo; - })(); + /** + * 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; + }; - return FormInfo; - })(); + /** + * 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 PageInfo; + return CompareVersionsRequest; })(); - v3.SessionInfo = (function() { + v3.CompareVersionsResponse = (function() { /** - * Properties of a SessionInfo. + * Properties of a CompareVersionsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ISessionInfo - * @property {string|null} [session] SessionInfo session - * @property {Object.|null} [parameters] SessionInfo parameters + * @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 SessionInfo. + * Constructs a new CompareVersionsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SessionInfo. - * @implements ISessionInfo + * @classdesc Represents a CompareVersionsResponse. + * @implements ICompareVersionsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICompareVersionsResponse=} [properties] Properties to set */ - function SessionInfo(properties) { - this.parameters = {}; + function CompareVersionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -65043,110 +65297,101 @@ } /** - * SessionInfo session. - * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * CompareVersionsResponse baseVersionContentJson. + * @member {string} baseVersionContentJson + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance */ - SessionInfo.prototype.session = ""; + CompareVersionsResponse.prototype.baseVersionContentJson = ""; /** - * SessionInfo parameters. - * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * CompareVersionsResponse targetVersionContentJson. + * @member {string} targetVersionContentJson + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance */ - SessionInfo.prototype.parameters = $util.emptyObject; + CompareVersionsResponse.prototype.targetVersionContentJson = ""; /** - * Creates a new SessionInfo instance using the specified properties. + * CompareVersionsResponse compareTime. + * @member {google.protobuf.ITimestamp|null|undefined} compareTime + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse + * @instance + */ + CompareVersionsResponse.prototype.compareTime = null; + + /** + * Creates a new CompareVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @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.ICompareVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse instance */ - SessionInfo.create = function create(properties) { - return new SessionInfo(properties); + CompareVersionsResponse.create = function create(properties) { + return new CompareVersionsResponse(properties); }; /** - * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.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.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo 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 */ - SessionInfo.encode = function encode(message, writer) { + CompareVersionsResponse.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.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 SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionInfo.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.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ISessionInfo} message SessionInfo 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 */ - SessionInfo.encodeDelimited = function encodeDelimited(message, writer) { + CompareVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SessionInfo message from the specified reader or buffer. + * Decodes a CompareVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @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.v3.SessionInfo} SessionInfo + * @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 */ - SessionInfo.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.v3.SessionInfo(), key, value; + 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.session = reader.string(); + message.baseVersionContentJson = 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.targetVersionContentJson = reader.string(); + break; + case 3: + message.compareTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -65157,115 +65402,109 @@ }; /** - * Decodes a SessionInfo 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.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @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.CompareVersionsResponse} CompareVersionsResponse * @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) { + CompareVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SessionInfo message. + * Verifies a CompareVersionsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @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 */ - SessionInfo.verify = function verify(message) { + CompareVersionsResponse.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.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 a SessionInfo 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.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} CompareVersionsResponse */ - SessionInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionInfo) + 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.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.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 a SessionInfo 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.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.SessionInfo} message SessionInfo + * @param {google.cloud.dialogflow.cx.v3.CompareVersionsResponse} message CompareVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SessionInfo.toObject = function toObject(message, options) { + CompareVersionsResponse.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.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 SessionInfo to JSON. + * Converts this CompareVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.CompareVersionsResponse * @instance * @returns {Object.} JSON object */ - SessionInfo.prototype.toJSON = function toJSON() { + CompareVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SessionInfo; + return CompareVersionsResponse; })(); return v3; diff --git a/protos/protos.json b/protos/protos.json index e44fee97..225e037d 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -14,7 +14,7 @@ "csharp_namespace": "Google.Cloud.Dialogflow.Cx.V3", "go_package": "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx", "java_multiple_files": true, - "java_outer_classname": "WebhookProto", + "java_outer_classname": "VersionProto", "java_package": "com.google.cloud.dialogflow.cx.v3", "objc_class_prefix": "DF", "ruby_package": "Google::Cloud::Dialogflow::CX::V3", @@ -1633,7 +1633,8 @@ "liveAgentHandoff", "endInteraction", "playAudio", - "mixedAudio" + "mixedAudio", + "telephonyTransferCall" ] } }, @@ -1675,6 +1676,10 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "telephonyTransferCall": { + "type": "TelephonyTransferCall", + "id": 18 } }, "nested": { @@ -1798,6 +1803,21 @@ } } } + }, + "TelephonyTransferCall": { + "oneofs": { + "endpoint": { + "oneof": [ + "phoneNumber" + ] + } + }, + "fields": { + "phoneNumber": { + "type": "string", + "id": 1 + } + } } } }, @@ -2155,6 +2175,18 @@ } } }, + "AudioEncoding": { + "values": { + "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 + } + }, "SpeechWordInfo": { "fields": { "word": { @@ -2175,18 +2207,6 @@ } } }, - "AudioEncoding": { - "values": { - "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 - } - }, "InputAudioConfig": { "fields": { "audioEncoding": { @@ -5946,23 +5966,23 @@ } } }, - "Experiments": { + "Webhooks": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, "methods": { - "ListExperiments": { - "requestType": "ListExperimentsRequest", - "responseType": "ListExperimentsResponse", + "ListWebhooks": { + "requestType": "ListWebhooksRequest", + "responseType": "ListWebhooksResponse", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" } }, { @@ -5970,17 +5990,17 @@ } ] }, - "GetExperiment": { - "requestType": "GetExperimentRequest", - "responseType": "Experiment", + "GetWebhook": { + "requestType": "GetWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { @@ -5988,97 +6008,57 @@ } ] }, - "CreateExperiment": { - "requestType": "CreateExperimentRequest", - "responseType": "Experiment", + "CreateWebhook": { + "requestType": "CreateWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "parent,experiment" + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", + "(google.api.http).body": "webhook", + "(google.api.method_signature)": "parent,webhook" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", - "body": "experiment" + "post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", + "body": "webhook" } }, { - "(google.api.method_signature)": "parent,experiment" + "(google.api.method_signature)": "parent,webhook" } ] }, - "UpdateExperiment": { - "requestType": "UpdateExperimentRequest", - "responseType": "Experiment", + "UpdateWebhook": { + "requestType": "UpdateWebhookRequest", + "responseType": "Webhook", "options": { - "(google.api.http).patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.http).body": "experiment", - "(google.api.method_signature)": "experiment,update_mask" + "(google.api.http).patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).body": "webhook", + "(google.api.method_signature)": "webhook,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "body": "experiment" + "patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "body": "webhook" } }, { - "(google.api.method_signature)": "experiment,update_mask" + "(google.api.method_signature)": "webhook,update_mask" } ] }, - "DeleteExperiment": { - "requestType": "DeleteExperimentRequest", + "DeleteWebhook": { + "requestType": "DeleteWebhookRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "StartExperiment": { - "requestType": "StartExperimentRequest", - "responseType": "Experiment", - "options": { - "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "StopExperiment": { - "requestType": "StopExperimentRequest", - "responseType": "Experiment", - "options": { - "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", - "(google.api.http).body": "*", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", - "body": "*" + "delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { @@ -6088,10 +6068,18 @@ } } }, - "Experiment": { + "Webhook": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" + "(google.api.resource).type": "dialogflow.googleapis.com/Webhook", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}" + }, + "oneofs": { + "webhook": { + "oneof": [ + "genericWebService", + "serviceDirectory" + ] + } }, "fields": { "name": { @@ -6105,301 +6093,88 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "description": { - "type": "string", - "id": 3 - }, - "state": { - "type": "State", + "genericWebService": { + "type": "GenericWebService", "id": 4 }, - "definition": { - "type": "Definition", - "id": 5 - }, - "rolloutConfig": { - "type": "RolloutConfig", - "id": 14 - }, - "rolloutState": { - "type": "RolloutState", - "id": 15 - }, - "rolloutFailureReason": { - "type": "string", - "id": 16 - }, - "result": { - "type": "Result", - "id": 6 - }, - "createTime": { - "type": "google.protobuf.Timestamp", + "serviceDirectory": { + "type": "ServiceDirectoryConfig", "id": 7 }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 8 - }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 9 - }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 10 - }, - "experimentLength": { + "timeout": { "type": "google.protobuf.Duration", - "id": 11 + "id": 6 }, - "variantsHistory": { - "rule": "repeated", - "type": "VariantsHistory", - "id": 12 + "disabled": { + "type": "bool", + "id": 5 } }, "nested": { - "Definition": { - "oneofs": { - "variants": { - "oneof": [ - "versionVariants" - ] - } - }, + "GenericWebService": { "fields": { - "condition": { + "uri": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "versionVariants": { - "type": "VersionVariants", - "id": 2 - } - } - }, - "Result": { - "fields": { - "versionMetrics": { - "rule": "repeated", - "type": "VersionMetrics", - "id": 1 + "username": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } }, - "lastUpdateTime": { - "type": "google.protobuf.Timestamp", - "id": 2 - } - }, - "nested": { - "ConfidenceInterval": { - "fields": { - "confidenceLevel": { - "type": "double", - "id": 1 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "lowerBound": { - "type": "double", - "id": 3 - }, - "upperBound": { - "type": "double", - "id": 4 - } - } - }, - "Metric": { - "oneofs": { - "value": { - "oneof": [ - "ratio", - "count" - ] - } - }, - "fields": { - "type": { - "type": "MetricType", - "id": 1 - }, - "countType": { - "type": "CountType", - "id": 5 - }, - "ratio": { - "type": "double", - "id": 2 - }, - "count": { - "type": "double", - "id": 4 - }, - "confidenceInterval": { - "type": "ConfidenceInterval", - "id": 3 - } - } - }, - "VersionMetrics": { - "fields": { - "version": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - }, - "metrics": { - "rule": "repeated", - "type": "Metric", - "id": 2 - }, - "sessionCount": { - "type": "int32", - "id": 3 - } - } - }, - "MetricType": { - "values": { - "METRIC_UNSPECIFIED": 0, - "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, - "LIVE_AGENT_HANDOFF_RATE": 2, - "CALLBACK_SESSION_RATE": 3, - "ABANDONED_SESSION_RATE": 4, - "SESSION_END_RATE": 5 + "password": { + "type": "string", + "id": 3, + "options": { + "deprecated": true } }, - "CountType": { - "values": { - "COUNT_TYPE_UNSPECIFIED": 0, - "TOTAL_NO_MATCH_COUNT": 1, - "TOTAL_TURN_COUNT": 2, - "AVERAGE_TURN_COUNT": 3 - } - } - } - }, - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "DRAFT": 1, - "RUNNING": 2, - "DONE": 3, - "ROLLOUT_FAILED": 4 - } - } - } - }, - "VersionVariants": { - "fields": { - "variants": { - "rule": "repeated", - "type": "Variant", - "id": 1 - } - }, - "nested": { - "Variant": { - "fields": { - "version": { + "requestHeaders": { + "keyType": "string", "type": "string", - "id": 1 - }, - "trafficAllocation": { - "type": "float", - "id": 2 + "id": 4 }, - "isControlGroup": { - "type": "bool", - "id": 3 + "allowedCaCerts": { + "rule": "repeated", + "type": "bytes", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } - } - } - }, - "VariantsHistory": { - "oneofs": { - "variants": { - "oneof": [ - "versionVariants" - ] - } - }, - "fields": { - "versionVariants": { - "type": "VersionVariants", - "id": 1 - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 2 - } - } - }, - "RolloutConfig": { - "fields": { - "rolloutSteps": { - "rule": "repeated", - "type": "RolloutStep", - "id": 1 - }, - "rolloutCondition": { - "type": "string", - "id": 2 }, - "failureCondition": { - "type": "string", - "id": 3 - } - }, - "nested": { - "RolloutStep": { + "ServiceDirectoryConfig": { "fields": { - "displayName": { + "service": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "servicedirectory.googleapis.com/Service" + } }, - "trafficPercent": { - "type": "int32", + "genericWebService": { + "type": "GenericWebService", "id": 2 - }, - "minDuration": { - "type": "google.protobuf.Duration", - "id": 3 } } } } }, - "RolloutState": { - "fields": { - "step": { - "type": "string", - "id": 1 - }, - "stepIndex": { - "type": "int32", - "id": 3 - }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 2 - } - } - }, - "ListExperimentsRequest": { + "ListWebhooksRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" } }, "pageSize": { @@ -6412,11 +6187,11 @@ } } }, - "ListExperimentsResponse": { + "ListWebhooksResponse": { "fields": { - "experiments": { + "webhooks": { "rule": "repeated", - "type": "Experiment", + "type": "Webhook", "id": 1 }, "nextPageToken": { @@ -6425,30 +6200,30 @@ } } }, - "GetExperimentRequest": { + "GetWebhookRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" } } } }, - "CreateExperimentRequest": { + "CreateWebhookRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" } }, - "experiment": { - "type": "Experiment", + "webhook": { + "type": "Webhook", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -6456,10 +6231,10 @@ } } }, - "UpdateExperimentRequest": { + "UpdateWebhookRequest": { "fields": { - "experiment": { - "type": "Experiment", + "webhook": { + "type": "Webhook", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -6467,515 +6242,433 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 2 } } }, - "DeleteExperimentRequest": { + "DeleteWebhookRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" } + }, + "force": { + "type": "bool", + "id": 2 } } }, - "StartExperimentRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" - } - } - } - }, - "StopExperimentRequest": { + "WebhookRequest": { + "oneofs": { + "query": { + "oneof": [ + "text", + "triggerIntent", + "transcript", + "triggerEvent" + ] + } + }, "fields": { - "name": { + "detectIntentResponseId": { "type": "string", - "id": 1, + "id": 1 + }, + "text": { + "type": "string", + "id": 10 + }, + "triggerIntent": { + "type": "string", + "id": 11, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" } + }, + "transcript": { + "type": "string", + "id": 12 + }, + "triggerEvent": { + "type": "string", + "id": 14 + }, + "languageCode": { + "type": "string", + "id": 15 + }, + "fulfillmentInfo": { + "type": "FulfillmentInfo", + "id": 6 + }, + "intentInfo": { + "type": "IntentInfo", + "id": 3 + }, + "pageInfo": { + "type": "PageInfo", + "id": 4 + }, + "sessionInfo": { + "type": "SessionInfo", + "id": 5 + }, + "messages": { + "rule": "repeated", + "type": "ResponseMessage", + "id": 7 + }, + "payload": { + "type": "google.protobuf.Struct", + "id": 8 + }, + "sentimentAnalysisResult": { + "type": "SentimentAnalysisResult", + "id": 9 } - } - }, - "Versions": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, - "methods": { - "ListVersions": { - "requestType": "ListVersionsRequest", - "responseType": "ListVersionsResponse", - "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", - "(google.api.method_signature)": "parent" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" - } - }, - { - "(google.api.method_signature)": "parent" + "nested": { + "FulfillmentInfo": { + "fields": { + "tag": { + "type": "string", + "id": 1 } - ] + } }, - "GetVersion": { - "requestType": "GetVersionRequest", - "responseType": "Version", - "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + "IntentInfo": { + "fields": { + "lastMatchedIntent": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" } }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "CreateVersion": { - "requestType": "CreateVersionRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", - "(google.api.http).body": "version", - "(google.api.method_signature)": "parent,version", - "(google.longrunning.operation_info).response_type": "Version", - "(google.longrunning.operation_info).metadata_type": "CreateVersionOperationMetadata" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", - "body": "version" - } + "displayName": { + "type": "string", + "id": 3 }, - { - "(google.api.method_signature)": "parent,version" + "parameters": { + "keyType": "string", + "type": "IntentParameterValue", + "id": 2 }, - { - "(google.longrunning.operation_info)": { - "response_type": "Version", - "metadata_type": "CreateVersionOperationMetadata" - } + "confidence": { + "type": "float", + "id": 4 } - ] - }, - "UpdateVersion": { - "requestType": "UpdateVersionRequest", - "responseType": "Version", - "options": { - "(google.api.http).patch": "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", - "(google.api.http).body": "version", - "(google.api.method_signature)": "version,update_mask" }, - "parsedOptions": [ - { - "(google.api.http)": { - "patch": "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", - "body": "version" + "nested": { + "IntentParameterValue": { + "fields": { + "originalValue": { + "type": "string", + "id": 1 + }, + "resolvedValue": { + "type": "google.protobuf.Value", + "id": 2 + } } - }, - { - "(google.api.method_signature)": "version,update_mask" } - ] + } }, - "DeleteVersion": { - "requestType": "DeleteVersionRequest", - "responseType": "google.protobuf.Empty", - "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" - } + "SentimentAnalysisResult": { + "fields": { + "score": { + "type": "float", + "id": 1 }, - { - "(google.api.method_signature)": "name" + "magnitude": { + "type": "float", + "id": 2 } + } + } + } + }, + "WebhookResponse": { + "oneofs": { + "transition": { + "oneof": [ + "targetPage", + "targetFlow" ] + } + }, + "fields": { + "fulfillmentResponse": { + "type": "FulfillmentResponse", + "id": 1 }, - "LoadVersion": { - "requestType": "LoadVersionRequest", - "responseType": "google.longrunning.Operation", - "options": { - "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name", - "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", - "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - }, - { - "(google.longrunning.operation_info)": { - "response_type": "google.protobuf.Empty", - "metadata_type": "google.protobuf.Struct" - } - } - ] + "pageInfo": { + "type": "PageInfo", + "id": 2 }, - "CompareVersions": { - "requestType": "CompareVersionsRequest", - "responseType": "CompareVersionsResponse", - "options": { - "(google.api.http).post": "/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions", - "(google.api.http).body": "*", - "(google.api.method_signature)": "base_version" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions", - "body": "*" - } - }, - { - "(google.api.method_signature)": "base_version" - } - ] - } - } - }, - "CreateVersionOperationMetadata": { - "fields": { - "version": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - } - } - }, - "Version": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Version", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}" - }, - "fields": { - "name": { - "type": "string", - "id": 1 - }, - "displayName": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "description": { - "type": "string", + "sessionInfo": { + "type": "SessionInfo", "id": 3 }, - "nluSettings": { - "type": "NluSettings", - "id": 4, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } + "payload": { + "type": "google.protobuf.Struct", + "id": 4 }, - "createTime": { - "type": "google.protobuf.Timestamp", + "targetPage": { + "type": "string", "id": 5, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" } }, - "state": { - "type": "State", + "targetFlow": { + "type": "string", "id": 6, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" } } }, "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "RUNNING": 1, - "SUCCEEDED": 2, - "FAILED": 3 + "FulfillmentResponse": { + "fields": { + "messages": { + "rule": "repeated", + "type": "ResponseMessage", + "id": 1 + }, + "mergeBehavior": { + "type": "MergeBehavior", + "id": 2 + } + }, + "nested": { + "MergeBehavior": { + "values": { + "MERGE_BEHAVIOR_UNSPECIFIED": 0, + "APPEND": 1, + "REPLACE": 2 + } + } } } } }, - "ListVersionsRequest": { + "PageInfo": { "fields": { - "parent": { + "currentPage": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" } }, - "pageSize": { - "type": "int32", - "id": 2 - }, - "pageToken": { - "type": "string", + "formInfo": { + "type": "FormInfo", "id": 3 } - } - }, - "ListVersionsResponse": { - "fields": { - "versions": { - "rule": "repeated", - "type": "Version", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 - } - } - }, - "GetVersionRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + }, + "nested": { + "FormInfo": { + "fields": { + "parameterInfo": { + "rule": "repeated", + "type": "ParameterInfo", + "id": 2 + } + }, + "nested": { + "ParameterInfo": { + "fields": { + "displayName": { + "type": "string", + "id": 1 + }, + "required": { + "type": "bool", + "id": 2 + }, + "state": { + "type": "ParameterState", + "id": 3 + }, + "value": { + "type": "google.protobuf.Value", + "id": 4 + }, + "justCollected": { + "type": "bool", + "id": 5 + } + }, + "nested": { + "ParameterState": { + "values": { + "PARAMETER_STATE_UNSPECIFIED": 0, + "EMPTY": 1, + "INVALID": 2, + "FILLED": 3 + } + } + } + } } } } }, - "CreateVersionRequest": { + "SessionInfo": { "fields": { - "parent": { + "session": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" } }, - "version": { - "type": "Version", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "parameters": { + "keyType": "string", + "type": "google.protobuf.Value", + "id": 2 } } }, - "UpdateVersionRequest": { - "fields": { - "version": { - "type": "Version", - "id": 1, + "Experiments": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" + }, + "methods": { + "ListExperiments": { + "requestType": "ListExperimentsRequest", + "responseType": "ListExperimentsResponse", "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] }, - "updateMask": { - "type": "google.protobuf.FieldMask", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "DeleteVersionRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + "GetExperiment": { + "requestType": "GetExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - } - } - }, - "LoadVersionRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - }, - "allowOverrideAgentResources": { - "type": "bool", - "id": 2 - } - } - }, - "CompareVersionsRequest": { - "fields": { - "baseVersion": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - }, - "targetVersion": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" - } - }, - "languageCode": { - "type": "string", - "id": 3 - } - } - }, - "CompareVersionsResponse": { - "fields": { - "baseVersionContentJson": { - "type": "string", - "id": 1 - }, - "targetVersionContentJson": { - "type": "string", - "id": 2 + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] }, - "compareTime": { - "type": "google.protobuf.Timestamp", - "id": 3 - } - } - }, - "Webhooks": { - "options": { - "(google.api.default_host)": "dialogflow.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" - }, - "methods": { - "ListWebhooks": { - "requestType": "ListWebhooksRequest", - "responseType": "ListWebhooksResponse", + "CreateExperiment": { + "requestType": "CreateExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", - "(google.api.method_signature)": "parent" + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "parent,experiment" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" + "post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments", + "body": "experiment" } }, { - "(google.api.method_signature)": "parent" + "(google.api.method_signature)": "parent,experiment" } ] }, - "GetWebhook": { - "requestType": "GetWebhookRequest", - "responseType": "Webhook", + "UpdateExperiment": { + "requestType": "UpdateExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", - "(google.api.method_signature)": "name" + "(google.api.http).patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.http).body": "experiment", + "(google.api.method_signature)": "experiment,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" + "patch": "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "body": "experiment" } }, { - "(google.api.method_signature)": "name" + "(google.api.method_signature)": "experiment,update_mask" } ] }, - "CreateWebhook": { - "requestType": "CreateWebhookRequest", - "responseType": "Webhook", + "DeleteExperiment": { + "requestType": "DeleteExperimentRequest", + "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", - "(google.api.http).body": "webhook", - "(google.api.method_signature)": "parent,webhook" + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", - "body": "webhook" + "delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" } }, { - "(google.api.method_signature)": "parent,webhook" + "(google.api.method_signature)": "name" } ] }, - "UpdateWebhook": { - "requestType": "UpdateWebhookRequest", - "responseType": "Webhook", + "StartExperiment": { + "requestType": "StartExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", - "(google.api.http).body": "webhook", - "(google.api.method_signature)": "webhook,update_mask" + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", - "body": "webhook" + "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start", + "body": "*" } }, { - "(google.api.method_signature)": "webhook,update_mask" + "(google.api.method_signature)": "name" } ] }, - "DeleteWebhook": { - "requestType": "DeleteWebhookRequest", - "responseType": "google.protobuf.Empty", + "StopExperiment": { + "requestType": "StopExperimentRequest", + "responseType": "Experiment", "options": { - "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "(google.api.http).body": "*", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" + "post": "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop", + "body": "*" } }, { @@ -6985,18 +6678,10 @@ } } }, - "Webhook": { + "Experiment": { "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/Webhook", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}" - }, - "oneofs": { - "webhook": { - "oneof": [ - "genericWebService", - "serviceDirectory" - ] - } + "(google.api.resource).type": "dialogflow.googleapis.com/Experiment", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" }, "fields": { "name": { @@ -7010,88 +6695,301 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "genericWebService": { - "type": "GenericWebService", + "description": { + "type": "string", + "id": 3 + }, + "state": { + "type": "State", "id": 4 }, - "serviceDirectory": { - "type": "ServiceDirectoryConfig", + "definition": { + "type": "Definition", + "id": 5 + }, + "rolloutConfig": { + "type": "RolloutConfig", + "id": 14 + }, + "rolloutState": { + "type": "RolloutState", + "id": 15 + }, + "rolloutFailureReason": { + "type": "string", + "id": 16 + }, + "result": { + "type": "Result", + "id": 6 + }, + "createTime": { + "type": "google.protobuf.Timestamp", "id": 7 }, - "timeout": { + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 8 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 9 + }, + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 10 + }, + "experimentLength": { "type": "google.protobuf.Duration", - "id": 6 + "id": 11 }, - "disabled": { - "type": "bool", - "id": 5 + "variantsHistory": { + "rule": "repeated", + "type": "VariantsHistory", + "id": 12 } }, "nested": { - "GenericWebService": { + "Definition": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } + }, "fields": { - "uri": { + "condition": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 1 }, - "username": { - "type": "string", - "id": 2, - "options": { - "deprecated": true - } + "versionVariants": { + "type": "VersionVariants", + "id": 2 + } + } + }, + "Result": { + "fields": { + "versionMetrics": { + "rule": "repeated", + "type": "VersionMetrics", + "id": 1 }, - "password": { - "type": "string", - "id": 3, - "options": { - "deprecated": true - } + "lastUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + }, + "nested": { + "ConfidenceInterval": { + "fields": { + "confidenceLevel": { + "type": "double", + "id": 1 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "lowerBound": { + "type": "double", + "id": 3 + }, + "upperBound": { + "type": "double", + "id": 4 + } + } }, - "requestHeaders": { - "keyType": "string", - "type": "string", - "id": 4 + "Metric": { + "oneofs": { + "value": { + "oneof": [ + "ratio", + "count" + ] + } + }, + "fields": { + "type": { + "type": "MetricType", + "id": 1 + }, + "countType": { + "type": "CountType", + "id": 5 + }, + "ratio": { + "type": "double", + "id": 2 + }, + "count": { + "type": "double", + "id": 4 + }, + "confidenceInterval": { + "type": "ConfidenceInterval", + "id": 3 + } + } }, - "allowedCaCerts": { - "rule": "repeated", - "type": "bytes", - "id": 5, - "options": { - "(google.api.field_behavior)": "OPTIONAL" + "VersionMetrics": { + "fields": { + "version": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + }, + "metrics": { + "rule": "repeated", + "type": "Metric", + "id": 2 + }, + "sessionCount": { + "type": "int32", + "id": 3 + } + } + }, + "MetricType": { + "values": { + "METRIC_UNSPECIFIED": 0, + "CONTAINED_SESSION_NO_CALLBACK_RATE": 1, + "LIVE_AGENT_HANDOFF_RATE": 2, + "CALLBACK_SESSION_RATE": 3, + "ABANDONED_SESSION_RATE": 4, + "SESSION_END_RATE": 5 + } + }, + "CountType": { + "values": { + "COUNT_TYPE_UNSPECIFIED": 0, + "TOTAL_NO_MATCH_COUNT": 1, + "TOTAL_TURN_COUNT": 2, + "AVERAGE_TURN_COUNT": 3 } } } }, - "ServiceDirectoryConfig": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "DRAFT": 1, + "RUNNING": 2, + "DONE": 3, + "ROLLOUT_FAILED": 4 + } + } + } + }, + "VersionVariants": { + "fields": { + "variants": { + "rule": "repeated", + "type": "Variant", + "id": 1 + } + }, + "nested": { + "Variant": { "fields": { - "service": { + "version": { "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "servicedirectory.googleapis.com/Service" - } + "id": 1 }, - "genericWebService": { - "type": "GenericWebService", + "trafficAllocation": { + "type": "float", "id": 2 + }, + "isControlGroup": { + "type": "bool", + "id": 3 } } } } }, - "ListWebhooksRequest": { + "VariantsHistory": { + "oneofs": { + "variants": { + "oneof": [ + "versionVariants" + ] + } + }, + "fields": { + "versionVariants": { + "type": "VersionVariants", + "id": 1 + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, + "RolloutConfig": { + "fields": { + "rolloutSteps": { + "rule": "repeated", + "type": "RolloutStep", + "id": 1 + }, + "rolloutCondition": { + "type": "string", + "id": 2 + }, + "failureCondition": { + "type": "string", + "id": 3 + } + }, + "nested": { + "RolloutStep": { + "fields": { + "displayName": { + "type": "string", + "id": 1 + }, + "trafficPercent": { + "type": "int32", + "id": 2 + }, + "minDuration": { + "type": "google.protobuf.Duration", + "id": 3 + } + } + } + } + }, + "RolloutState": { + "fields": { + "step": { + "type": "string", + "id": 1 + }, + "stepIndex": { + "type": "int32", + "id": 3 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, + "ListExperimentsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, "pageSize": { @@ -7104,11 +7002,11 @@ } } }, - "ListWebhooksResponse": { + "ListExperimentsResponse": { "fields": { - "webhooks": { + "experiments": { "rule": "repeated", - "type": "Webhook", + "type": "Experiment", "id": 1 }, "nextPageToken": { @@ -7117,30 +7015,30 @@ } } }, - "GetWebhookRequest": { + "GetExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } } } }, - "CreateWebhookRequest": { + "CreateExperimentRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Experiment" } }, - "webhook": { - "type": "Webhook", + "experiment": { + "type": "Experiment", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -7148,10 +7046,10 @@ } } }, - "UpdateWebhookRequest": { + "UpdateExperimentRequest": { "fields": { - "webhook": { - "type": "Webhook", + "experiment": { + "type": "Experiment", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -7159,297 +7057,419 @@ }, "updateMask": { "type": "google.protobuf.FieldMask", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "DeleteWebhookRequest": { + "DeleteExperimentRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Webhook" + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } - }, - "force": { - "type": "bool", - "id": 2 } } }, - "WebhookRequest": { - "oneofs": { - "query": { - "oneof": [ - "text", - "triggerIntent", - "transcript", - "triggerEvent" - ] - } - }, + "StartExperimentRequest": { "fields": { - "detectIntentResponseId": { - "type": "string", - "id": 1 - }, - "text": { - "type": "string", - "id": 10 - }, - "triggerIntent": { + "name": { "type": "string", - "id": 11, + "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" } - }, - "transcript": { - "type": "string", - "id": 12 - }, - "triggerEvent": { - "type": "string", - "id": 14 - }, - "languageCode": { + } + } + }, + "StopExperimentRequest": { + "fields": { + "name": { "type": "string", - "id": 15 - }, - "fulfillmentInfo": { - "type": "FulfillmentInfo", - "id": 6 - }, - "intentInfo": { - "type": "IntentInfo", - "id": 3 - }, - "pageInfo": { - "type": "PageInfo", - "id": 4 - }, - "sessionInfo": { - "type": "SessionInfo", - "id": 5 - }, - "messages": { - "rule": "repeated", - "type": "ResponseMessage", - "id": 7 - }, - "payload": { - "type": "google.protobuf.Struct", - "id": 8 - }, - "sentimentAnalysisResult": { - "type": "SentimentAnalysisResult", - "id": 9 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Experiment" + } } + } + }, + "Versions": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" }, - "nested": { - "FulfillmentInfo": { - "fields": { - "tag": { - "type": "string", - "id": 1 + "methods": { + "ListVersions": { + "requestType": "ListVersionsRequest", + "responseType": "ListVersionsResponse", + "options": { + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" + } + }, + { + "(google.api.method_signature)": "parent" } - } + ] }, - "IntentInfo": { - "fields": { - "lastMatchedIntent": { - "type": "string", - "id": 1, - "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Intent" + "GetVersion": { + "requestType": "GetVersionRequest", + "responseType": "Version", + "options": { + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" } }, - "displayName": { - "type": "string", - "id": 3 + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateVersion": { + "requestType": "CreateVersionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "(google.api.http).body": "version", + "(google.api.method_signature)": "parent,version", + "(google.longrunning.operation_info).response_type": "Version", + "(google.longrunning.operation_info).metadata_type": "CreateVersionOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "body": "version" + } }, - "parameters": { - "keyType": "string", - "type": "IntentParameterValue", - "id": 2 + { + "(google.api.method_signature)": "parent,version" }, - "confidence": { - "type": "float", - "id": 4 + { + "(google.longrunning.operation_info)": { + "response_type": "Version", + "metadata_type": "CreateVersionOperationMetadata" + } } + ] + }, + "UpdateVersion": { + "requestType": "UpdateVersionRequest", + "responseType": "Version", + "options": { + "(google.api.http).patch": "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.http).body": "version", + "(google.api.method_signature)": "version,update_mask" }, - "nested": { - "IntentParameterValue": { - "fields": { - "originalValue": { - "type": "string", - "id": 1 - }, - "resolvedValue": { - "type": "google.protobuf.Value", - "id": 2 - } + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "body": "version" } + }, + { + "(google.api.method_signature)": "version,update_mask" } - } + ] }, - "SentimentAnalysisResult": { - "fields": { - "score": { - "type": "float", - "id": 1 + "DeleteVersion": { + "requestType": "DeleteVersionRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + } }, - "magnitude": { - "type": "float", - "id": 2 + { + "(google.api.method_signature)": "name" } - } + ] + }, + "LoadVersion": { + "requestType": "LoadVersionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "google.protobuf.Struct" + } + } + ] + }, + "CompareVersions": { + "requestType": "CompareVersionsRequest", + "responseType": "CompareVersionsResponse", + "options": { + "(google.api.http).post": "/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions", + "(google.api.http).body": "*", + "(google.api.method_signature)": "base_version" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions", + "body": "*" + } + }, + { + "(google.api.method_signature)": "base_version" + } + ] } } }, - "WebhookResponse": { - "oneofs": { - "transition": { - "oneof": [ - "targetPage", - "targetFlow" - ] + "CreateVersionOperationMetadata": { + "fields": { + "version": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } } + } + }, + "Version": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/Version", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}" }, "fields": { - "fulfillmentResponse": { - "type": "FulfillmentResponse", + "name": { + "type": "string", "id": 1 }, - "pageInfo": { - "type": "PageInfo", - "id": 2 + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "sessionInfo": { - "type": "SessionInfo", + "description": { + "type": "string", "id": 3 }, - "payload": { - "type": "google.protobuf.Struct", - "id": 4 + "nluSettings": { + "type": "NluSettings", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "targetPage": { - "type": "string", + "createTime": { + "type": "google.protobuf.Timestamp", "id": 5, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "targetFlow": { - "type": "string", + "state": { + "type": "State", "id": 6, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } }, "nested": { - "FulfillmentResponse": { - "fields": { - "messages": { - "rule": "repeated", - "type": "ResponseMessage", - "id": 1 - }, - "mergeBehavior": { - "type": "MergeBehavior", - "id": 2 - } - }, - "nested": { - "MergeBehavior": { - "values": { - "MERGE_BEHAVIOR_UNSPECIFIED": 0, - "APPEND": 1, - "REPLACE": 2 - } - } + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "RUNNING": 1, + "SUCCEEDED": 2, + "FAILED": 3 } } } }, - "PageInfo": { + "ListVersionsRequest": { "fields": { - "currentPage": { + "parent": { "type": "string", "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" } }, - "formInfo": { - "type": "FormInfo", + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", "id": 3 } - }, - "nested": { - "FormInfo": { - "fields": { - "parameterInfo": { - "rule": "repeated", - "type": "ParameterInfo", - "id": 2 - } - }, - "nested": { - "ParameterInfo": { - "fields": { - "displayName": { - "type": "string", - "id": 1 - }, - "required": { - "type": "bool", - "id": 2 - }, - "state": { - "type": "ParameterState", - "id": 3 - }, - "value": { - "type": "google.protobuf.Value", - "id": 4 - }, - "justCollected": { - "type": "bool", - "id": 5 - } - }, - "nested": { - "ParameterState": { - "values": { - "PARAMETER_STATE_UNSPECIFIED": 0, - "EMPTY": 1, - "INVALID": 2, - "FILLED": 3 - } - } - } - } + } + }, + "ListVersionsResponse": { + "fields": { + "versions": { + "rule": "repeated", + "type": "Version", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetVersionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" } } } }, - "SessionInfo": { + "CreateVersionRequest": { "fields": { - "session": { + "parent": { "type": "string", "id": 1, "options": { - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Session" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/Version" } }, - "parameters": { - "keyType": "string", - "type": "google.protobuf.Value", + "version": { + "type": "Version", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateVersionRequest": { + "fields": { + "version": { + "type": "Version", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteVersionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + } + } + }, + "LoadVersionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + }, + "allowOverrideAgentResources": { + "type": "bool", + "id": 2 + } + } + }, + "CompareVersionsRequest": { + "fields": { + "baseVersion": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + }, + "targetVersion": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Version" + } + }, + "languageCode": { + "type": "string", + "id": 3 + } + } + }, + "CompareVersionsResponse": { + "fields": { + "baseVersionContentJson": { + "type": "string", + "id": 1 + }, + "targetVersionContentJson": { + "type": "string", "id": 2 + }, + "compareTime": { + "type": "google.protobuf.Timestamp", + "id": 3 } } } diff --git a/samples/generated/v3/versions.compare_versions.js b/samples/generated/v3/versions.compare_versions.js index d6ad886d..6f90f48a 100644 --- a/samples/generated/v3/versions.compare_versions.js +++ b/samples/generated/v3/versions.compare_versions.js @@ -20,17 +20,17 @@ function main(baseVersion, targetVersion) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. Name of the base flow version to compare with the target version. - * Use version ID `0` to indicate the draft version of the specified flow. - * Format: - * `projects//locations//agents//flows//versions/`. + * Required. Name of the base flow version to compare with the target version. Use + * version ID `0` to indicate the draft version of the specified flow. + * Format: `projects//locations//agents/ + * /flows//versions/`. */ // const baseVersion = 'abc123' /** * Required. Name of the target flow version to compare with the * base version. Use version ID `0` to indicate the draft version of the - * specified flow. Format: - * `projects//locations//agents//flows//versions/`. + * specified flow. Format: `projects//locations//agents//flows//versions/`. */ // const targetVersion = 'abc123' /** diff --git a/samples/generated/v3/versions.create_version.js b/samples/generated/v3/versions.create_version.js index f4c1e039..6e4b03fd 100644 --- a/samples/generated/v3/versions.create_version.js +++ b/samples/generated/v3/versions.create_version.js @@ -20,9 +20,9 @@ function main(parent, version) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The Flow google.cloud.dialogflow.cx.v3.Flow to create an - * Version google.cloud.dialogflow.cx.v3.Version for. Format: - * `projects//locations//agents//flows/`. + * Required. The Flow google.cloud.dialogflow.cx.v3.Flow to create an Version google.cloud.dialogflow.cx.v3.Version for. + * Format: `projects//locations//agents//flows/`. */ // const parent = 'abc123' /** diff --git a/samples/generated/v3/versions.delete_version.js b/samples/generated/v3/versions.delete_version.js index 683cacca..04e22508 100644 --- a/samples/generated/v3/versions.delete_version.js +++ b/samples/generated/v3/versions.delete_version.js @@ -20,9 +20,9 @@ function main(name) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The name of the Version google.cloud.dialogflow.cx.v3.Version - * to delete. Format: - * `projects//locations//agents//flows//versions/`. + * Required. The name of the Version google.cloud.dialogflow.cx.v3.Version to delete. + * Format: `projects//locations//agents//flows//versions/`. */ // const name = 'abc123' diff --git a/samples/generated/v3/versions.get_version.js b/samples/generated/v3/versions.get_version.js index 67d8b4c5..2afa6cfb 100644 --- a/samples/generated/v3/versions.get_version.js +++ b/samples/generated/v3/versions.get_version.js @@ -21,8 +21,8 @@ function main(name) { */ /** * Required. The name of the Version google.cloud.dialogflow.cx.v3.Version. - * Format: - * `projects//locations//agents//flows//versions/`. + * Format: `projects//locations//agents//flows//versions/`. */ // const name = 'abc123' diff --git a/samples/generated/v3/versions.list_versions.js b/samples/generated/v3/versions.list_versions.js index 0b76a1e2..54553d10 100644 --- a/samples/generated/v3/versions.list_versions.js +++ b/samples/generated/v3/versions.list_versions.js @@ -20,9 +20,9 @@ function main(parent) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The Flow google.cloud.dialogflow.cx.v3.Flow to list all - * versions for. Format: - * `projects//locations//agents//flows/`. + * Required. The Flow google.cloud.dialogflow.cx.v3.Flow to list all versions for. + * Format: `projects//locations//agents//flows/`. */ // const parent = 'abc123' /** diff --git a/samples/generated/v3/versions.load_version.js b/samples/generated/v3/versions.load_version.js index 4da33998..6f0e434d 100644 --- a/samples/generated/v3/versions.load_version.js +++ b/samples/generated/v3/versions.load_version.js @@ -20,9 +20,9 @@ function main(name) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The Version google.cloud.dialogflow.cx.v3.Version to be loaded - * to draft flow. Format: - * `projects//locations//agents//flows//versions/`. + * Required. The Version google.cloud.dialogflow.cx.v3.Version to be loaded to draft flow. + * Format: `projects//locations//agents//flows//versions/`. */ // const name = 'abc123' /** diff --git a/samples/generated/v3/versions.update_version.js b/samples/generated/v3/versions.update_version.js index 352aa1f8..f891f78e 100644 --- a/samples/generated/v3/versions.update_version.js +++ b/samples/generated/v3/versions.update_version.js @@ -24,8 +24,8 @@ function main(version, updateMask) { */ // const version = {} /** - * Required. The mask to control which fields get updated. Currently only - * `description` and `display_name` can be updated. + * Required. The mask to control which fields get updated. Currently only `description` + * and `display_name` can be updated. */ // const updateMask = {} diff --git a/samples/generated/v3/webhooks.delete_webhook.js b/samples/generated/v3/webhooks.delete_webhook.js index 4ea903c9..8a20ce89 100644 --- a/samples/generated/v3/webhooks.delete_webhook.js +++ b/samples/generated/v3/webhooks.delete_webhook.js @@ -31,10 +31,9 @@ function main(name) { * * If `force` is set to false, an error will be returned with message * indicating the referenced resources. * * If `force` is set to true, Dialogflow will remove the webhook, as well - * as any references to the webhook (i.e. - * Webhook google.cloud.dialogflow.cx.v3.Fulfillment.webhook and - * tag google.cloud.dialogflow.cx.v3.Fulfillment.tag in fulfillments that - * point to this webhook will be removed). + * as any references to the webhook (i.e. Webhook google.cloud.dialogflow.cx.v3.Fulfillment.webhook + * and tag google.cloud.dialogflow.cx.v3.Fulfillment.tag in fulfillments that point to this webhook + * will be removed). */ // const force = true diff --git a/src/v3/versions_client.ts b/src/v3/versions_client.ts index af445317..5f128a00 100644 --- a/src/v3/versions_client.ts +++ b/src/v3/versions_client.ts @@ -437,8 +437,8 @@ export class VersionsClient { * The request object that will be sent. * @param {string} request.name * Required. The name of the {@link google.cloud.dialogflow.cx.v3.Version|Version}. - * Format: - * `projects//locations//agents//flows//versions/`. + * Format: `projects//locations//agents//flows//versions/`. * @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. @@ -531,8 +531,8 @@ export class VersionsClient { * @param {google.cloud.dialogflow.cx.v3.Version} request.version * Required. The version to update. * @param {google.protobuf.FieldMask} request.updateMask - * Required. The mask to control which fields get updated. Currently only - * `description` and `display_name` can be updated. + * Required. The mask to control which fields get updated. Currently only `description` + * and `display_name` can be updated. * @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. @@ -623,9 +623,9 @@ export class VersionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the {@link google.cloud.dialogflow.cx.v3.Version|Version} - * to delete. Format: - * `projects//locations//agents//flows//versions/`. + * Required. The name of the {@link google.cloud.dialogflow.cx.v3.Version|Version} to delete. + * Format: `projects//locations//agents//flows//versions/`. * @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. @@ -716,16 +716,16 @@ export class VersionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.baseVersion - * Required. Name of the base flow version to compare with the target version. - * Use version ID `0` to indicate the draft version of the specified flow. + * Required. Name of the base flow version to compare with the target version. Use + * version ID `0` to indicate the draft version of the specified flow. * - * Format: - * `projects//locations//agents//flows//versions/`. + * Format: `projects//locations//agents/ + * /flows//versions/`. * @param {string} request.targetVersion * Required. Name of the target flow version to compare with the * base version. Use version ID `0` to indicate the draft version of the - * specified flow. Format: - * `projects//locations//agents//flows//versions/`. + * specified flow. Format: `projects//locations//agents//flows//versions/`. * @param {string} request.languageCode * The language to compare the flow versions for. * @@ -820,23 +820,21 @@ export class VersionsClient { } /** - * Creates a {@link google.cloud.dialogflow.cx.v3.Version|Version} in the specified - * {@link google.cloud.dialogflow.cx.v3.Flow|Flow}. + * Creates a {@link google.cloud.dialogflow.cx.v3.Version|Version} in the specified {@link google.cloud.dialogflow.cx.v3.Flow|Flow}. * * 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 google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata|CreateVersionOperationMetadata} + * - `metadata`: {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata|CreateVersionOperationMetadata} * - `response`: {@link google.cloud.dialogflow.cx.v3.Version|Version} * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to create an - * {@link google.cloud.dialogflow.cx.v3.Version|Version} for. Format: - * `projects//locations//agents//flows/`. + * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to create an {@link google.cloud.dialogflow.cx.v3.Version|Version} for. + * Format: `projects//locations//agents//flows/`. * @param {google.cloud.dialogflow.cx.v3.Version} request.version * Required. The version to create. * @param {object} [options] @@ -984,9 +982,9 @@ export class VersionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The {@link google.cloud.dialogflow.cx.v3.Version|Version} to be loaded - * to draft flow. Format: - * `projects//locations//agents//flows//versions/`. + * Required. The {@link google.cloud.dialogflow.cx.v3.Version|Version} to be loaded to draft flow. + * Format: `projects//locations//agents//flows//versions/`. * @param {boolean} request.allowOverrideAgentResources * This field is used to prevent accidental overwrite of other agent * resources, which can potentially impact other flow's behavior. If @@ -1120,15 +1118,14 @@ export class VersionsClient { >; } /** - * Returns the list of all versions in the specified - * {@link google.cloud.dialogflow.cx.v3.Flow|Flow}. + * Returns the list of all versions in the specified {@link google.cloud.dialogflow.cx.v3.Flow|Flow}. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to list all - * versions for. Format: - * `projects//locations//agents//flows/`. + * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to list all versions for. + * Format: `projects//locations//agents//flows/`. * @param {number} request.pageSize * The maximum number of items to return in a single page. By default 20 and * at most 100. @@ -1227,9 +1224,9 @@ export class VersionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to list all - * versions for. Format: - * `projects//locations//agents//flows/`. + * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to list all versions for. + * Format: `projects//locations//agents//flows/`. * @param {number} request.pageSize * The maximum number of items to return in a single page. By default 20 and * at most 100. @@ -1276,9 +1273,9 @@ export class VersionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to list all - * versions for. Format: - * `projects//locations//agents//flows/`. + * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to list all versions for. + * Format: `projects//locations//agents//flows/`. * @param {number} request.pageSize * The maximum number of items to return in a single page. By default 20 and * at most 100. diff --git a/src/v3/webhooks_client.ts b/src/v3/webhooks_client.ts index 15a847e7..da96b811 100644 --- a/src/v3/webhooks_client.ts +++ b/src/v3/webhooks_client.ts @@ -689,10 +689,9 @@ export class WebhooksClient { * * If `force` is set to false, an error will be returned with message * indicating the referenced resources. * * If `force` is set to true, Dialogflow will remove the webhook, as well - * as any references to the webhook (i.e. - * {@link google.cloud.dialogflow.cx.v3.Fulfillment.webhook|Webhook} and - * {@link google.cloud.dialogflow.cx.v3.Fulfillment.tag|tag}in fulfillments that - * point to this webhook will be removed). + * as any references to the webhook (i.e. {@link google.cloud.dialogflow.cx.v3.Fulfillment.webhook|Webhook} + * and {@link google.cloud.dialogflow.cx.v3.Fulfillment.tag|tag}in fulfillments that point to this webhook + * will be removed). * @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.